2016年7月1日

摘要: int is_digit(const char *str){ size_t len = strlen(str); while(len > 0) { if (*str < '0' || *str > '9') { return -1; } str++; len--; } return 0; } 阅读全文
posted @ 2016-07-01 13:40 程序员乌鸦 阅读(211) 评论(0) 推荐(0) 编辑

2016年6月2日

摘要: char moduledir[MAX_PATH]; GetModuleFileNameA(GetModuleHandleA("ppdl_BE081_BIW_seal_library.dll"),moduledir,MAX_PATH); moduledir[strlen(moduledir)-strl 阅读全文
posted @ 2016-06-02 15:11 程序员乌鸦 阅读(756) 评论(0) 推荐(0) 编辑

2016年3月28日

摘要: set PATH=%PATH%;%UGII_ROOT_DIR%call "E:\ZY\exe\uds_rename_parts_mohao.exe"E:\ZY\exe\uds_rename_parts_mohao.exe E:\11467-xy-6-24\11467.prt 11467 11111 阅读全文
posted @ 2016-03-28 15:04 程序员乌鸦 阅读(229) 评论(0) 推荐(0) 编辑

2015年12月22日

摘要: argc是命令行总的参数个数argv[]是argc个参数,其中第0个参数是程序的全名,以后的参数命令行后面跟的用户输入的参数,比如: int main(int argc, char* argv[]) { int i; for (i = 0; i>i; return 0; } 执行时敲入 F... 阅读全文
posted @ 2015-12-22 10:12 程序员乌鸦 阅读(267) 评论(0) 推荐(0) 编辑

2015年12月2日

摘要: #include #include #include using namespace std;int main(int argc, char **argv){ if (argc < 3) { cout << "Usage : test.exe /user:someone /pwd:password"... 阅读全文
posted @ 2015-12-02 12:58 程序员乌鸦 阅读(1582) 评论(0) 推荐(0) 编辑

2015年11月23日

摘要: 症状/问题我怎样把windows中安装的程序信息输出到一个文本文件中?解决方法使用 windows 操作系统中的命令:wmic就可以做到。下面的命令就可以把系统中安装的程序都输出到文件ProgramList.txt 中:wmic /output:C:\temp\ProgramList.txt pro... 阅读全文
posted @ 2015-11-23 15:51 程序员乌鸦 阅读(310) 评论(0) 推荐(0) 编辑

2015年11月5日

摘要: void create_point_full_parameter(){Session *theSession = Session::GetSession(); Part *workPart(theSession->Parts()->Work()); Part *displayPart(theSe... 阅读全文
posted @ 2015-11-05 10:25 程序员乌鸦 阅读(190) 评论(0) 推荐(0) 编辑

2015年7月15日

摘要: #include struct _finddata64i32_t fileinfo;long re= _findfirst64i32(serch_path.GetLocaleText(),&fileinfo);if(-1==re){return;}while(!_findnext(re,&filei... 阅读全文
posted @ 2015-07-15 11:23 程序员乌鸦 阅读(148) 评论(0) 推荐(0) 编辑

2015年5月29日

摘要: ///类型转换templatevectorObjcetsSwap(vectorobjects){vectorreturnObjects;for(size_ti=0;i(objects[i]);if(temp!=NULL) { returnObjects.push_back(temp);}}retur... 阅读全文
posted @ 2015-05-29 14:29 程序员乌鸦 阅读(282) 评论(0) 推荐(0) 编辑

2015年4月9日

摘要: 可以从%UGII_BASE_DIR%\ugii\menus目录下men文件或TBR文件中查找关键字BITMAP 对应的名称 阅读全文
posted @ 2015-04-09 15:34 程序员乌鸦 阅读(336) 评论(0) 推荐(0) 编辑

导航