调用vc写的dll,声明如下:
procedure GBW(abc:HDC; gwidth: integer; gheight: integer; frColor: TColor; bkColor: TColor) Stdcall; external 'GBJdll.dll' index 1结果每次都现实一个出错对话框
Project MDIAPP.exe raised exception class EAccessViolation with message 'Access violation at address
00000000. read of address 00000000'. Process stopped. Use Step or Run to continue.
请问原因何在?
procedure GBW(abc:HDC; gwidth: integer; gheight: integer; frColor: TColor; bkColor: TColor) Stdcall; external 'GBJdll.dll' index 1结果每次都现实一个出错对话框
Project MDIAPP.exe raised exception class EAccessViolation with message 'Access violation at address
00000000. read of address 00000000'. Process stopped. Use Step or Run to continue.
请问原因何在?
procedure是可以的,这我确定,因为我曾用过
procedure是可以的,这我确定,因为我曾用过
procedure是可以的,这我确定,因为我曾用过
特別注意 TColor;
用函数绝对可以的
function GBW(abc:HDC; gwidth: integer; gheight: integer; frColor: TColor; bkColor: TColor) Stdcall; external 'GBJdll.dll';你这个没有返回值的吗?别那么死心眼
用函数可以达到要求为什么要用过程呢?
和function无关,本来就无返回值的
和function无关,本来就无返回值的0,0,90,0,0,0,0,0,0,10,0
贴子回复次数大于跟给分次数
这个什么意思?为何无法结帐?
和function无关,本来就无返回值的0,0,90,0,0,0,0,0,0,10,0
贴子回复次数大于跟给分次数
这个什么意思?为何无法结帐?