10/03/08 13:04:40 rNrFTGhf0
こんな感じでやってみたのですがご指摘お願いします
C:\c\の中にhello.cとhello.defを作成
↓
コンパイル実行(BCC32 -WD -hello.dll hello.c) ←パスは登録してあるので通ってます
【hello.cの中身】
#define HIDEMARU_MACRO_DLL __declspec(dllexport)
HIDEMARU_MACRO_DLL /* __declspec(dllexport) */
LPCSTR hello(void) /* LPCSTR は const char* の typedef */
{
return "hello world!";
}
【hello.defの中身】
EXPORTS
hello=_hello