Re: [ROOT] ROOT in COM DLL on win32

From: Valery Fine (fine@bnl.gov)
Date: Fri Apr 13 2001 - 15:51:20 MEST


> Hi rooters,
> 
> I am trying to develop a COM dll for MSVC/VB bridge in rquant project.
> The dll should be able to initialize ROOT whenever it is loaded. The
> very first and straightforward try has failed:
> 
> after I include TROOT call to DllMain entry point function root starts
> to conflict with MS string definition saying
> 
> StrDupA redefinition. c:\root\include\tsrtring.h
> 


> 
> Could you comment on this? Does someone has experience with ROOT in a
> stand alone dll  (com dll)? Any further problems and pitfalls?

  I believe you faced the "well-known" clash between ROOT and Microsoft.
  It is interesting   occasionally  ROOT team used to choose  the name 
  those exactly  match those Microsoft  did for the same purposes.

  However the Microsoft names are the names of the CPP macros
 (They did this to preserve the backward/forward comatibilitis across
 different platforms). 

 Look up " Windows4Root.h" to see what I am speaking about and to see 
 how the problem can be cured


> 
> Regards,
> Anton
> 
> www.smartquant.com
> 
> 
> 
> 
> 
> 
> 
> 
> 



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:22 MEST