DLL call in C COM Client
I'm using a C# dll (as a COM onject) from a C++ unmanaged code. The compiler is the C++ of Visual Studio 2008. It works fine.
I want now to replace C++ code with C and I get the "include" and "using" statements not supported by my imposed (i.e. change the source file type to .c instead of .cpp) compiling.
Again the dll is perfectly seen and used by C++. I just I'm missing the dll (under COM model) import declarations in C; long time ago i knew it ...
Thanks for your help.
PS: It's about the COM model!
do you mean?
//in DLL header (not to be included in the calling app)
#define DLLExport __declspec(dllexport)
//in header (to be included in calling app and DLL) containing funtions
// 'if not defined' allows the same header to be used in both
// if include order is correct in DLL
#define DLLExport __declspec (dllimport)