Re: MSVC-dll under cygwin

2004-12-03 Thread Shankar Unni
Reini Urban wrote: You can actually. g++ emulates the msvc vtable layout. Wow, that must be new, then. I'm not too familiar with the ABI changes that have gone in since 3.something. Thanks for the correction. (OT alert: I was under the impression that the Msft vtable layout algorithm was "patent

Re: MSVC-dll under cygwin

2004-12-02 Thread Reini Urban
Shankar Unni schrieb: Mikael Åsberg wrote: You cannot mix Visual C++ ("real" C++, I mean, not C) and Gnu C++ modules in any way whatsoever. The two have completely different class and virtual-table layout algorithms. You can actually. g++ emulates the msvc vtable layout. But you should not becaus

Re: MSVC-dll under cygwin

2004-12-02 Thread Shankar Unni
Mikael Åsberg wrote: HKEY create_registry_key(const HKEY parent_key, const std::string& name); You cannot mix Visual C++ ("real" C++, I mean, not C) and Gnu C++ modules in any way whatsoever. The two have completely different class and virtual-table layout algorithms. If you need to link a Gcc-c

Re: MSVC-dll under Cygwin

2004-12-02 Thread Mikael Åsberg
"Fred Kulack" wrote: Perhaps I'm untrusting, but I'm not sure I'd expect you to be able to use a standard C++ library object like string from one C++ binary in Cygwin to a non-C++ binary. I.e. cygwin std::string is probably not the same definition as MSVC std::string. Why would it be? You are mo

RE: MSVC-dll under cygwin

2004-12-02 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Mikael Åsberg > Sent: 02 December 2004 16:52 > Okay, now I have tested the code and something is still not > right. The DLL > contains functions for working with the Windows registry and > my problem > is that if I call, for example,

Re: MSVC-dll under cygwin

2004-12-02 Thread Fred Kulack
On 12/02/2004 at 11:00:57 AM, cygwin-owner wrote: from one C++ binary in Cygwin to a non-C++ binary --- end of excerpt --- Doh! I meant "...to a non-Cygwin C++ binary" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Docume

Re: MSVC-dll under cygwin

2004-12-02 Thread Fred Kulack
Perhaps I'm untrusting, but I'm not sure I'd expect you to be able to use a standard C++ library object like string from one C++ binary in Cygwin to a non-C++ binary. I.e. cygwin std::string is probably not the same definition as MSVC std::string. Why would it be? "The stuff we call "softw

Re: MSVC-dll under cygwin

2004-12-02 Thread Mikael Åsberg
On Thu, Dec 02, 2004 at 04:30:56PM +0100, Mikael ?sberg wrote: Hello, I was under the impression that using a Cygwin-compiled DLL under MSVC was extremely difficult, if not impossible, but using a MSVC-compiled DLL with programs compiled under Cygwin is possible? I have test program that first

Re: MSVC-dll under cygwin

2004-12-02 Thread Mikael Åsberg
On Thu, Dec 02, 2004 at 04:30:56PM +0100, Mikael ?sberg wrote: Hello, I was under the impression that using a Cygwin-compiled DLL under MSVC was extremely difficult, if not impossible, but using a MSVC-compiled DLL with programs compiled under Cygwin is possible? I have test program that first c

Re: MSVC-dll under cygwin

2004-12-02 Thread Christopher Faylor
On Thu, Dec 02, 2004 at 04:30:56PM +0100, Mikael ?sberg wrote: >Hello, I was under the impression that using a Cygwin-compiled DLL >under MSVC was extremely difficult, if not impossible, but using a >MSVC-compiled DLL with programs compiled under Cygwin is possible? I >have test program that first

MSVC-dll under cygwin

2004-12-02 Thread Mikael Åsberg
Hello, I was under the impression that using a Cygwin-compiled DLL under MSVC was extremely difficult, if not impossible, but using a MSVC-compiled DLL with programs compiled under Cygwin is possible? I have test program that first calls LoadLibrary() and then for each function in the DLL it wan