[求助]用c++怎么制作dll文件?
[求助]用c++怎么制作dll文件?
2006-12-06 10:52
2006-12-06 16:33
2007-01-30 17:11
看你要做什麼,下面是傳回一個cstring
dll
extern "C"__declspec(dllexport) CString* biosversion()
{
CString *data=new CString;
(*data)="wwww";
return data;
}
main
HINSTANCE dllHandle = NULL;
MYPROC ProcAdd;
CString* temp;
dllHandle = LoadLibrary("biosversion.dll");
ProcAdd = (MYPROC) GetProcAddress(dllHandle,"Batterycapability");
temp = (ProcAdd)();
2007-01-31 08:47
2007-01-31 21:18
2007-02-01 14:08