Re: [Mingw-w64-public] Linking directly to DLLs on windows.

2012-04-18 Thread JonY
On 4/19/2012 00:16, MARTIN Pierre wrote: >> Nope, as long as it is in C++, there is no guarantees that it will work >> with a different compiler. What you could do is to thunk the code via a >> C bridge from the MSVC side. >> eg for Simple C++: >> rettype C_Shutdown(unsigned long a){ >> return Shu

Re: [Mingw-w64-public] Linking directly to DLLs on windows.

2012-04-18 Thread MARTIN Pierre
> Nope, as long as it is in C++, there is no guarantees that it will work > with a different compiler. What you could do is to thunk the code via a > C bridge from the MSVC side. > eg for Simple C++: > rettype C_Shutdown(unsigned long a){ > return Shutdown(a); > } > and for class/members > rettype

Re: [Mingw-w64-public] Linking directly to DLLs on windows.

2012-04-18 Thread JonY
On 4/18/2012 23:32, MARTIN Pierre wrote: > JonY, you see perfectly right. > >> Please check the DLL with gendef, see if the functions are mangled. Do >> you see ShutDown or something that begins with a '?'? >> If the former, you are likely missing extern "C" declarations when you >> included your

Re: [Mingw-w64-public] Linking directly to DLLs on windows.

2012-04-18 Thread MARTIN Pierre
JonY, you see perfectly right. > Please check the DLL with gendef, see if the functions are mangled. Do > you see ShutDown or something that begins with a '?'? > If the former, you are likely missing extern "C" declarations when you > included your vendor headers. > If the latter, the vendor DLL i

Re: [Mingw-w64-public] Linking directly to DLLs on windows.

2012-04-18 Thread JonY
On 4/18/2012 21:53, MARTIN Pierre wrote: > Hello dear list readers, > > This topic is a whole new one, this is on purpose, and i'd like to solve this > in parallel with the other one (Delay-loading my libraries). > In this one, it is more about loading third-party DLLs directly in my > projects.

[Mingw-w64-public] Linking directly to DLLs on windows.

2012-04-18 Thread MARTIN Pierre
Hello dear list readers, This topic is a whole new one, this is on purpose, and i'd like to solve this in parallel with the other one (Delay-loading my libraries). In this one, it is more about loading third-party DLLs directly in my projects. The DLLs i would like to use from my project (And i'