如何在线程中调用dll中的函数??我写的,线程中的get函数是调用dll中的get函数;
function Get(URL: string;id:string):string;stdcall;external 'pdll.dll' name 'get';但是编译器指示错误,,光标停留在external上了。该怎么办啊

解决方案 »

  1.   

    这个声明没有问题,最好把具体的错误发上来。也许是别的错误,比如Get函数重名等等。
      

  2.   

    field definition not allowed after methods or properties僵哥,是这个错误!!
      

  3.   

    是这个错误:在方法或属性后不允许域定义。
    我把函数function Get(URL: string;id:string):string;stdcall;external 'pdll.dll' name 'get';
    写到了线程的private上了,,后面我写到了publich和end的 后面,,
    又出现了这个错误::无法定位程序输入点gethtml于动态链接库pdll.dll上
      

  4.   

    相关DLL的声明不能放在类当中,应该放在类的外部,不能当成类方法。