Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

請問在 Visual C++ 4.0 中造出 DLL

0 views
Skip to first unread message

喵~~~

unread,
Oct 18, 1996, 3:00:00 AM10/18/96
to

Hello All :

請教各位先進,我想在 Visual C++ v4.0 中造出 DLL 檔
給 Delphi 2.0 用,以下是我的 export 的宣告方式:

#define DllExport __declspec( dllexport )
extern "C" DllExport void testfun(void)
{
..
}


VC 就會出現 error C2059: syntax error : 'string'
的錯誤訊息,我不懂這是什麼錯誤,誰能告訴我呢?
可是我如果把那個 "C" 給去掉就沒有問題了,
這樣子給 Delphi 呼叫也沒有問題,但是現在是沒有傳參數,
如果傳了參數的時候,沒有加 "C" 會不會出問題呢?

困惑者

0 new messages