一个用vc写的动态链接'MapDrawDll.dll',其中有一个函数是:
extern "C" _declspec(dllexport) void OnDll_DrawMap(CDC *pDC,CRect rc,BOOL showreseau);
我在delphi中是这样写的:
procedure OnDll_DrawMap(canvas:TCanvas;rc:TRect;showreseau:boolean)stdcall;external 'MapDrawDll.dll';
编译通过了,但运行时有错误:...'External exception E06D7363'...
请大家帮忙啊,多谢多谢!!!
extern "C" _declspec(dllexport) void OnDll_DrawMap(CDC *pDC,CRect rc,BOOL showreseau);
我在delphi中是这样写的:
procedure OnDll_DrawMap(canvas:TCanvas;rc:TRect;showreseau:boolean)stdcall;external 'MapDrawDll.dll';
编译通过了,但运行时有错误:...'External exception E06D7363'...
请大家帮忙啊,多谢多谢!!!
这样才对dc 的参数是Canvas.Handle
procedure OnDll_DrawMap(var dc: THandle; rc:TRect;showreseau:boolean)stdcall;external 'MapDrawDll.dll ';为什么要用指针送 device context,难道里面可以改?