2014年10月17日

摘要: 今天尝试写了一个简单的C++DLL,并且用另一个CPP调用它,啥都不说,先贴代码1.DLL(冒泡算法)extern "C"_declspec(dllexport) void maopao(int *p,int count);void maopao(int *p,int count){ int tem... 阅读全文
posted @ 2014-10-17 09:29 程序员乌鸦 阅读(332) 评论(0) 推荐(0) 编辑

2014年8月19日

摘要: 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/handsing/archive/2010/04/08/5461070.aspx最近在做个数据库程序,因为有些数据用户要求导出到Excel文件显示(需要报给其他单位)。所以查阅了一下相关的VC的Excel编程操作,总结一... 阅读全文
posted @ 2014-08-19 15:00 程序员乌鸦 阅读(239) 评论(0) 推荐(0) 编辑

2014年7月21日

摘要: NX支持外部读取修改部件属性,修改后注意需要保存,UF_PART_save();外部exe启动UG NX 1 用.net2003建立一个控制台应用程序 2 将目录ugii\managed下除ManagedLoader.dll外的dll文件加入到你的工程里面的References 3 将下面的代码复制... 阅读全文
posted @ 2014-07-21 09:45 程序员乌鸦 阅读(1248) 评论(0) 推荐(0) 编辑

2014年6月30日

摘要: char simplePartName[124] = "";char dspec[124] = "";uc4576( part_fspec , 0 , dspec , simplePartName );char part_fspec [ MAX_FSPEC_SIZE+1 ] ;UF_PART_ask... 阅读全文
posted @ 2014-06-30 10:26 程序员乌鸦 阅读(383) 评论(0) 推荐(0) 编辑

2014年6月9日

摘要: //***** //变量定义_Application app; Workbooks books; _Workbook book; Worksheets sheets; _Worksheet sheet; Range range; Range iCell; LPDISPATCH lpDisp; C... 阅读全文
posted @ 2014-06-09 15:14 程序员乌鸦 阅读(665) 评论(0) 推荐(0) 编辑

2014年5月19日

摘要: 1. string转const char* string s = "abc"; const char* c_s = s.c_str();2. const char*转string 直接赋值即可 const char* c_s = "abc"; string s(c_s);3. string转char... 阅读全文
posted @ 2014-05-19 20:18 程序员乌鸦 阅读(172) 评论(0) 推荐(0) 编辑
摘要: char*itoa(intvalue,char*string,intradix);int value 被转换的整数,char *string 转换后储存的字符数组,int radix 转换进制数,如2,8,10,16 进制等头文件: atof(将字符串转换成浮点型数)atoi(将字符串转换成整型数)... 阅读全文
posted @ 2014-05-19 13:30 程序员乌鸦 阅读(296) 评论(0) 推荐(0) 编辑

2014年4月21日

摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inclu... 阅读全文
posted @ 2014-04-21 13:51 程序员乌鸦 阅读(510) 评论(0) 推荐(0) 编辑

2014年4月3日

摘要: #undef CreateDialog CreateDialogA#undef CreateDialog CreateDialogA 阅读全文
posted @ 2014-04-03 15:09 程序员乌鸦 阅读(381) 评论(0) 推荐(0) 编辑

2014年3月17日

摘要: Const ForReading = 1 CLineCount = 14LineCount = 8 LineCount_1 = 2Index = 0 Index_1 = 0row_no=13 strProgramPath = "C:\SUN\config\test.xls"Set objExcel = CreateObject("Excel.Application")objExcel.Visible = falseobjExcel.DisplayAlerts = FALSESet oShell = CreateObject( "WScript. 阅读全文
posted @ 2014-03-17 11:07 程序员乌鸦 阅读(1638) 评论(0) 推荐(0) 编辑

导航