H
hncshjh
Unregistered / Unconfirmed
GUEST, unregistred user!
在delphi中导入dll后,获取函数指针时,为何要在导入函数前加下划号,怎样消<br>除下划号也能正常获取函数指针。如下:<br>BCB中定义: extern "C" int __declspec(dllexport) Query(int i);<br>delphi中调用:<br>m_hLib := LoadLibrary('dllcoll.dll'));<br>proc:=GetProcAddress( m_hLib, '_Query' );<br>