win32,win98下把far; external 'h:\datadic\swaic\NWCALLS';
改为 externl 'NWCALLS' ; stdcall;
注意,32位编程没有far 的概念,far只是向下兼容.
加入 stdcall;
不加绝对路径,会在window的搜索路径中查找nwcalls的dll,移植性好.

解决方案 »

  1.   

    在delphi5 中我早已经把far 去掉了
      

  2.   

    [Error] UNIT1.PAS(37): Declaration of 'NWGetConnectionInformation' differs from previous declaration
      

  3.   

      procedure beVersion(var pbeVersion : TBEVersion); cdecl; external 'BLADEENC.DLL';implementation 之前如上写
    //这里不写
      

  4.   

    在delphi5.0下编译,运行时出错,说nwcall.dll已经损坏,调用错误.这应该是32位程序
    调用16位dll出错,应该要一个转换程序,谁有这方面的例子吗?([email protected])
    这段程序在delphi1.0下编译通过,但在win32下运行结果错误,在win98 下运行结果
    正确.这又是为什么?
      

  5.   

    就在这个网站的Delphi开发文档就有相应的资料, 连接是:
    http://www.midatech.com/csdn/Delphi/Document/thunk95.htm
    祝你好运......