delphi中如何调用vc编写的动态链接库!
现有一个用vc写的动态链接库DrawDll.dll,其中的一个导出函数为:
extern "C" _declspec(dllexport)void OnDll_Draw(CDC *pDC,CRect rc,BOOL showreseau);
我现在需要在delphi中调用这个函数,应该怎么写?另外,CDC *pD,CRect rc在delphi下应该怎么写!
谢谢大家!!
[解决办法]
extern "C" _declspec(dllexport) void OnDll_Draw(CDC *pDC,CRect rc,BOOL showreseau);
uses windows;
//HDC = type LongWord;
procedure (var pdc:HDC ; rc:TRect;showreseau:boolean);stdcall;