当前位置:首页 » 多媒体相关

C#如何调用API函数


c#中如何调用api函数。

推荐阅读

  • 全球液晶电视品牌市场进入大幅淘汰赛 [详细内容]
  • 走到哪用到哪 双飞燕X6-6KK到蓉城 [详细内容]
  • 酷睿廉价之选!映泰775整合板499 [详细内容]
  • 进入倒计时 夏普903SH中文版型号泄露 [详细内容]
  • I607的两个短信BUG [详细内容]
  • 家庭组网利器 阿尔法G3路由器99元 [详细内容]
  • 中外手机品牌战斗进入胶着状态 [详细内容]
  • 网友回答:
    网友:freeboy0002

    声明一下即可  
       
      [dllimport("kernel32.dll")]  
      protected   static   extern   uint   getlasterror();  
       
       
       
     

    网友:montaque

    http://www.digitalearth.net.cn/gisrelateditissues/csharp/ccapture.htm

    网友:czsd

    还有一定要在开头声明using   system.runtime.interopservices   ;

    网友:kuangren

    像上面一样,声明一下就可以调用了~  
      http://expert.csdn.net/expert/topic/2065/2065226.xml?temp=.182873

    网友:doose

    http://www.yesky.com/softchannel/72342380468109312/20020719/1621165.shtml  
       
      http://www.yesky.com/softchannel/72342380468109312/20030522/1702593.shtml

    网友:zynjj

    public   class   win32   {    
      [dllimport("user32.dll",   entrypoint="messagebox")]    
      public   static   extern   int   msgbox(int   hwnd,   string   text,   string   caption,   uint   type);    
      }    
     

    网友:ldy

    看看:  
      <root>\sdk\v1.1\samples\technologies\interop\platforminvoke

    .

    讨论区

    Login