Hi Everyone,

I have a DLL in my application that exports 5 functions. This DLL internally uses a few C++ classes and finally provide the functionality to DLL client applications by means of those exposed 5 functions.

The application has started crashing when the DLL started using C++ classes to implement functionality. The code inside C++ classes, when added a simple C code, then the crash doesn't happen.

I am aware of calling conventions, like- __stdcall and __cdecl etc. But not aware, how to use use both __cdecl and __stdcall in the same DLL.

Any suggestion from anyone ?

Any help is greatly appreciated.