F
fbms
Unregistered / Unconfirmed
GUEST, unregistred user!
动态调用dll:
dllInst = NULL;
dllInst = LoadLibrary(sl->Strings.c_str());
try {
aaa= (String(__stdcall *)(void))GetProcAddress(dllInst, "Test"
}
catch (...)
{
ShowMessage(""
}
Test函数是dll里没有的,这就会造成一个异常.我想捕获它,但是上面的代码并不管用.
showmessage()没有执行.
弹出错误如下
something has occured - project1
Access violation at address 00000000. Read of address 00000000
dllInst = NULL;
dllInst = LoadLibrary(sl->Strings.c_str());
try {
aaa= (String(__stdcall *)(void))GetProcAddress(dllInst, "Test"
}
catch (...)
{
ShowMessage(""
}
Test函数是dll里没有的,这就会造成一个异常.我想捕获它,但是上面的代码并不管用.
showmessage()没有执行.
弹出错误如下
something has occured - project1
Access violation at address 00000000. Read of address 00000000