Calling function from 64bit app from a 32bit dll
I have a 32bit dll (no source code) that I need to access from 64bit C# application. I've read this article and took a look into the corresponding code from here . I've also read this post. I'm not sure that I'm asking the right question, so please help me. There are 3 projects: dotnetclient , x86Library and x86x64 . The x86x64 has x86LibraryProxy.cpp which loads the x86library.dll and calls the GetTemperature function: STDMETHODIMP Cx86LibraryProxy::GetTemperature(ULONG sensorId, FLOAT* temperature) { *temperature = -1; typedef float (__cdecl *PGETTEMPERATURE)(int); PGETTEMPERATURE pFunc;