当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 用xsl把xml转变成相同的xml的最简单方法? xsl该怎么写? ......
    摘要: 我装了个sql2000 server,用delphi的ado连接,并且在线上网! 我想通过访问我在网上的ip来连接数据库!也就是说通过inter网来连接我的数据库而不是通过本地机器直接连接! 可现在怎么也连不上!不指导如何操作???? ......


dll动态调用不成功如何用其它方法调用

程序定义如下:使用一个hsc3836.dll文件  
  function   hs_state(state:integer):integer;stdcall;  
  function   del_dbf(dbfno:integer):integer;stdcall;  
  function   down_dbf(filename:pchar;dbfno:integer):integer;stdcall;  
  function   down_prg(filename:pchar):integer;stdcall;  
  function   down_psd(filename:pchar):integer;stdcall;  
  function   up_dbf(filename:pchar;dbfno:integer):integer;stdcall;  
   
  implementation  
   
   
  function   hs_state;external   hsc3836.dll   name   hs_state;  
  function   del_dbf;external   hsc3836.dll   name   del_dbf;  
  function   down_dbf;external   hsc3836.dll   name   down_dbf;  
  function   down_prg;external   hsc3836.dll   name   down_prg;  
  function   down_psd;external   hsc3836.dll   name   down_psd;  
  function   up_dbf;external   hsc3836.dll   name   up_dbf;  
   
   
  程序事件:  
  procedure   Tcbjsl_fm.xz_buttonClick(Sender:   TObject);  
  var  
  a,state,returnvalue,i:integer;  
  filename:string;  
  begin  
  state:=hs_state(5);//一调用这个就出错,只有在delphi7.0才出错,这说明调用不成功!!!  
   
  ....  
  end;  
   
   
   
  请问我要使用什么方法才能调用成功?  
 

NO.1   作者: wlw88

function   hs_state(state:integer):integer;stdcall;   far     external   hsc3836.dll   ;  
  这样写应该没有问题


    摘要: 有谁知道荆州的程序员考试报名点,请告诉一声好吗?最好是具体地址,谢谢 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE