extern "C" int FAR PASCAL CastelStreamInCallBack(VOID (CALLBACK *func)(char *Ipaddr, char *buf,int buflen));
VOID (CALLBACK Stream)(char *Ipaddr, char *buf,int buflen)
{}调用:CastelStreamInCallBack(Stream)

解决方案 »

  1.   

    function CastelStreamInCallBack(func: Pointer): Integer; stdcall; external 'dllname.dll';procedure Stream(Ipaddr: PChar; buf: PChar; buflen: Integer); stdcall;
    beginend;调用CastelStreamInCallBack(@Stream);
      

  2.   

    function CastelStreamInCallBack(func: Pointer): Integer; stdcall; external 'dllname.dll';procedure Stream(Ipaddr: PChar; buf: PChar; buflen: Integer); stdcall;
    beginend;调用CastelStreamInCallBack(@Stream);
      

  3.   

    照你的做,但是Steam过程并没有执行呀
      

  4.   

    那就是dll里面的问题了呀,它不调用肯定不会执行咯,你看看为什么它不调用了!