请教:delphi 调用vc++动态链接库问题
vc中声明
_declspec(dllexport) CString LLL(LPCTSTR filename)
并用1.def 中加上LLL变量,防止变量名改变
用vc++调用LLL没有问题
_declspec(dllimport) CString LLL(LPCTSTR filename);
delphi中调用
function LLL(filename:string):string;cdecl; external '1.dll';
在执行aa:=LLL('d:\1.bmp');时出现错误:
Project Project2.exe raised exception class EAccessViolation with message 'Access violation at address 5F437BAO in module'mfc42d.dll'.Read of address 00000000'.Process stoped.
[此贴子已经被作者于2006-12-7 16:22:10编辑过]