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

    摘要: http://www.microsoft.com/china/community/columns/lihonggen/4.mspx 运行到 dim col as datacolumn dim row as datarow for each col in table.columns colindex = colindex + 1 xlapp.cells(1, colinde......
    摘要: 我想在用listctrl控件实现像access数据库定义表字段数据类型那样的效果,数据是从下拉列表中选择的,没一列都可以编辑 小弟请各位高手帮忙解决! 先谢谢! ......


取得当前DLL路径用哪个API

比如我要运行HelloWorld.dll,   哪个API可以帮我取得这个dll的路径(比如c:\source\HelloWorld.dll)

NO.1   作者: fancyf

System.Reflection.Assembly.GetExecutingAssembly().Location

NO.2   作者: Crystaltianshi

//   Get   the   DLL   file   Path  
  private   static   string   DLLPathWithDLLName                       =   System.Reflection.Assembly.GetExecutingAssembly().CodeBase.Substring(8);  
   
  //截取掉DLL的文件名,得到DLL当前的路径  
  private   static   int   Length     =   DLLPathWithDLLName.LastIndexOf("/");  
  private   static   string   DLLPath                                             =   DLLPathWithDLLName.Substring(0,Length);

NO.3   作者: BigIdiot628

AppDomain.CurrentDomain.BaseDirectory.ToString();


    摘要: 同上,插入到库里的数据,在网页上显示正常,只是在库里是乱的,这样的话,如果要到库里看点什么东西,就不舒服了。不知道是我的方法有问题,还是本来就是这样的,希望各位能帮一下忙,头大了! 1、插入到数据库前,我没有对数据作iconv 和utf8-unicode的处理! ......
» 本期热门文章:

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