L
Lio
Hi
I am using the MFC DLL project in .NET platform and i try to use [extern
"C"] infront of the function decleration to get a clean function name in the
DLL.
this is my simple code:
1 class CTestDllApp : public CWinApp
2 {
3 public:
4 CTestDllApp();
5 extern "C" __declspec(dllexport) int MyFunction(int);
6 // Overrides
7 public:
8 virtual BOOL InitInstance();
9 DECLARE_MESSAGE_MAP()
10 };
at line 5 i get error for the 'string' decleration
(g:\TestDll\TestDll\TestDll.h(21): error C2059: syntax error : 'string')
What is the problem???
thanks
Lio
I am using the MFC DLL project in .NET platform and i try to use [extern
"C"] infront of the function decleration to get a clean function name in the
DLL.
this is my simple code:
1 class CTestDllApp : public CWinApp
2 {
3 public:
4 CTestDllApp();
5 extern "C" __declspec(dllexport) int MyFunction(int);
6 // Overrides
7 public:
8 virtual BOOL InitInstance();
9 DECLARE_MESSAGE_MAP()
10 };
at line 5 i get error for the 'string' decleration
(g:\TestDll\TestDll\TestDll.h(21): error C2059: syntax error : 'string')
What is the problem???
thanks
Lio