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

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't be

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 gcc compiled

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 msvc/c++

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

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 general, C++

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 general, C++

.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