Initializing a dll question / advise wanted

2003-11-04 Thread Joost Kraaijeveld
Hi all, I need to load two dll's and each dll must, upon loading, initialize a data structure. Both dll's must run on Windows 2000 and Linux. I have written some small code that should do the trick (see below). At this moment I make a distinction between Cygwin/MinGW on Windows and GCC on Linux

Re: .dll question

2002-10-02 Thread Shankar Unni
On 10/2/2002 4:19 PM, Robert Collins wrote: > No it can't. In general, C++ compilers don't interoperate. The C++-Lite > FAQ has a section on this. > From memory, the issues are: > *VMT layout > [..] And before someone jumps up and asks why this can't be reverse engineered - apart from the gene

Re: .dll question

2002-10-02 Thread Paul G.
Thank you, Rob. On 3 Oct 2002 at 9:19, Robert Collins wrote: > On Thu, 2002-10-03 at 09:13, Paul G. wrote: > > > On a related note, can Cygwin generate c++ .dlls which are loadable by msvc++ >or > > does Microsofts' method of name mangling prohibit such things? > > No it can't. In gener

Re: .dll question

2002-10-02 Thread Paul G.
Thank you, Rob. On 3 Oct 2002 at 9:19, Robert Collins wrote: > On Thu, 2002-10-03 at 09:13, Paul G. wrote: > > > On a related note, can Cygwin generate c++ .dlls which are loadable by msvc++ >or > > does Microsofts' method of name mangling prohibit such things? > > No it can't. In gener

Re: .dll question

2002-10-02 Thread Robert Collins
On Thu, 2002-10-03 at 09:13, Paul G. wrote: > On a related note, can Cygwin generate c++ .dlls which are loadable by msvc++ >or > does Microsofts' method of name mangling prohibit such things? No it can't. In general, C++ compilers don't interoperate. The C++-Lite FAQ has a section on t

Re: .dll question

2002-10-02 Thread Paul G.
Hi folks, Thank you, ahead of time, for your consideration and your replies. On 2 Oct 2002 at 17:09, Phil Dempster wrote: > > Try not to add to noise for this list unless it > > seems necessary for something I am currently > > porting. That is my apology ahead of time. > > > > Does ms

Re: .dll question

2002-10-02 Thread Igor Pechtchanski
On Wed, 2 Oct 2002, [iso-8859-1] Phil Dempster wrote: > > Try not to add to noise for this list unless it > > seems necessary for something I am currently > > porting. That is my apology ahead of time. > > > > Does msvc/c++ load .dlls generated using > > gcc -shared -mno-cygwin? > > You can use

Re: .dll question

2002-10-02 Thread Phil Dempster
> Try not to add to noise for this list unless it > seems necessary for something I am currently > porting. That is my apology ahead of time. > > Does msvc/c++ load .dlls generated using > gcc -shared -mno-cygwin? You can use gcc compiled DLLs with MSVC compiled executables. However, you won'

.dll question

2002-10-01 Thread Paul G.
Hi folks, Try not to add to noise for this list unless it seems necessary for something I am currently porting. That is my apology ahead of time. Does msvc/c++ load .dlls generated using gcc -shared -mno-cygwin? I've not ever had msvc/c++ so can't say one way or the