摘要:
今天尝试写了一个简单的C++DLL,并且用另一个CPP调用它,啥都不说,先贴代码1.DLL(冒泡算法)extern "C"_declspec(dllexport) void maopao(int *p,int count);void maopao(int *p,int count){ int tem... 阅读全文
摘要:
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/handsing/archive/2010/04/08/5461070.aspx最近在做个数据库程序,因为有些数据用户要求导出到Excel文件显示(需要报给其他单位)。所以查阅了一下相关的VC的Excel编程操作,总结一... 阅读全文
摘要:
NX支持外部读取修改部件属性,修改后注意需要保存,UF_PART_save();外部exe启动UG NX 1 用.net2003建立一个控制台应用程序 2 将目录ugii\managed下除ManagedLoader.dll外的dll文件加入到你的工程里面的References 3 将下面的代码复制... 阅读全文
摘要:
char simplePartName[124] = "";char dspec[124] = "";uc4576( part_fspec , 0 , dspec , simplePartName );char part_fspec [ MAX_FSPEC_SIZE+1 ] ;UF_PART_ask... 阅读全文
摘要:
//***** //变量定义_Application app; Workbooks books; _Workbook book; Worksheets sheets; _Worksheet sheet; Range range; Range iCell; LPDISPATCH lpDisp; C... 阅读全文
摘要:
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... 阅读全文
摘要:
char*itoa(intvalue,char*string,intradix);int value 被转换的整数,char *string 转换后储存的字符数组,int radix 转换进制数,如2,8,10,16 进制等头文件: atof(将字符串转换成浮点型数)atoi(将字符串转换成整型数)... 阅读全文
摘要:
#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inclu... 阅读全文
摘要:
#undef CreateDialog CreateDialogA#undef CreateDialog CreateDialogA 阅读全文
摘要:
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. 阅读全文