2014年2月27日

摘要: NXString tem1; attrs_item_id.push_back("1"); attrs_item_id.push_back("2");attrs_item_id.push_back("3");attrs_part_name.push_back("ww"); attrs_part_name.push_back("ee"); attrs_part_name.push_back("你"); NXOpen::BlockStyler::UIBlock * node; st 阅读全文
posted @ 2014-02-27 09:59 程序员乌鸦 阅读(342) 评论(0) 推荐(0) 编辑

2014年2月25日

摘要: 1.寻找root_folder_name:UF_UGMGR_tag_t root;ifail = UF_UGMGR_ask_root_folder(&root);char folder_name[UF_UGMGR_NAME_SIZE + 1]; ifail;UF_UGMGR_ask_folder_name(root, folder_name);2.获取当前系统所有版本规则与当前使用的规则intnum_rules;char**config_rules;charcurrent_rule[UF_UGMGR_NAME_SIZE+1];UF_UGMGR_list_config_rules( &a 阅读全文
posted @ 2014-02-25 16:58 程序员乌鸦 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 内部开发初始化:extern "C" DllExport void ufusr(char *param, int *retcod, int param_len){int ifail = 0;const char* ee=param;ifail = UF_UGMGR_initialize(param_len,&ee);UF_UGMGR_terminate();} 阅读全文
posted @ 2014-02-25 16:22 程序员乌鸦 阅读(351) 评论(0) 推荐(0) 编辑

2014年2月19日

摘要: CFileDialog文件选择对话框的使用:首先构造一个对象并提供相应的参数,构造函数原型如下:CFileDialog::CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL );参数意义如下: bOpenFileDialog 为TRUE则显示打开对话框,为 阅读全文
posted @ 2014-02-19 10:55 程序员乌鸦 阅读(393) 评论(0) 推荐(0) 编辑
摘要: //保存路径TCHAR szBuffer[MAX_PATH] = {0}; BROWSEINFO bi; ZeroMemory(&bi,sizeof(BROWSEINFO)); bi.hwndOwner = NULL; bi.pszDisplayName = szBuffer; bi.lpszTitle = _T("选择保存文件路径:"); bi.ulFlags = BIF_RETURNFSANCESTORS; LPITEMIDLIST idl = SHBrowseForFolder(&bi); if (NULL == idl) { return 0; } 阅读全文
posted @ 2014-02-19 10:09 程序员乌鸦 阅读(1007) 评论(0) 推荐(0) 编辑

2014年2月18日

摘要: 写:#includestd::ofstream fout;fout.open("output.txt");fout _base;//通过换行符分割成一个数组char* vectLines=strtok(const_cast( fp_base.GetText()), "\n");while( vect... 阅读全文
posted @ 2014-02-18 11:38 程序员乌鸦 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 记忆力不好,老是忘记,记录下:char *pathvar; pathvar = getenv("PATH");char *BOM_dir1 = getenv("UGII_USER_DIR"); char BOM_dir[128]; strcpy(BOM_dir,BOM_dir1); if (BOM_... 阅读全文
posted @ 2014-02-18 10:22 程序员乌鸦 阅读(767) 评论(0) 推荐(0) 编辑

2014年2月14日

摘要: 今天码代码时发下个问题:constchar* chrs=rootNode->GetColumnDisplayText(j).GetLocaleText();chrs为空,而用以下代码:char tem[100];strcpy(tem,rootNode->GetColumnDisplayText(j).GetLocaleText());tem是有有效值的,原因不明,不顾问题能解决就好. 阅读全文
posted @ 2014-02-14 15:02 程序员乌鸦 阅读(298) 评论(0) 推荐(0) 编辑

2014年2月13日

摘要: 黏贴以下代码即可:TCHAR szBuffer[MAX_PATH] = {0}; BROWSEINFO bi; ZeroMemory(&bi,sizeof(BROWSEINFO)); bi.hwndOwner = NULL; bi.pszDisplayName = szBuffer; bi.lpszTitle = _T("从下面选择文件或文件夹:"); bi.ulFlags = BIF_BROWSEINCLUDEFILES; LPITEMIDLIST idl = SHBrowseForFolder(&bi); if (NULL == idl) { retur 阅读全文
posted @ 2014-02-13 10:21 程序员乌鸦 阅读(680) 评论(0) 推荐(0) 编辑

2014年2月12日

摘要: (1) The CID is comprised of a number of system configuration items. Forsecurity reasons the entre list is not published.(2) There are changes on a NX license server that can change the CID whichrequires Siemens PLM to regenerate a new license file. Here is a list of itemsthat can change a CID: - hos 阅读全文
posted @ 2014-02-12 15:57 程序员乌鸦 阅读(427) 评论(0) 推荐(0) 编辑

导航