fix: 🐛 修复ftp传递

master-hjf
德 赫尔 1 month ago
parent 2a1488fef8
commit d674e762a7

@ -511,8 +511,9 @@ string downloadDataset(tag_t dataset, string ftp_dir, char* type_name, string id
char* dataset_type_name = NULL,
* pathname = NULL,
* origin_file_name = NULL;
string path = "";
string dir = "";
string path,
dir,
ftp_url;
ITKCALL(AE_ask_dataset_named_refs(dataset, &ref_cnt, &ref_objects));
ITKCALL(AOM_UIF_ask_value(dataset, "object_type", &dataset_type_name));
@ -526,9 +527,11 @@ string downloadDataset(tag_t dataset, string ftp_dir, char* type_name, string id
strcat(temp_file, origin_file_name);
ITKCALL(IMF_export_file(ref_objects[jy], temp_file));
dir = dir.append(string(type_name)).append("/").append(string(dataset_type_name)).append("/").append(idAndRev).append("/").append(string(origin_file_name));
path = path.append(ftp_dir).append(dir);
int result = sendFileByFtp(ftp_dir, temp_file, path, username, pwd);
dir = dir.assign(string(type_name)).append("/").append(string(dataset_type_name)).append("/").append(idAndRev);
ftp_url = ftp_url.assign(ftp_dir).append(dir).append("/");
path = path.assign(ftp_dir).append(dir).append("/").append(string(origin_file_name));
WriteLog("开始传递FTPftp_url%stemp_file%s,path%s\,username%s\n", ftp_url.c_str(), temp_file, path.c_str(), username.c_str());
int result = sendFileByFtp(ftp_url, temp_file, path, username, pwd);
if (result == 1) {
path = "FTP传递文件失败";
}
@ -842,9 +845,9 @@ void insertGyGxBom(string xmlUid, bool &showError, ado ado0, tag_t gy_line, tag_
selectSql = Utf8ToGbk(selectSql.c_str());
updateSelectSql = Utf8ToGbk(updateSelectSql.c_str());
WriteLog("工序明细插入语句:%s\n", insertSql.c_str());
WriteLog("工序明细更新语句:%s\n", updateSql.c_str());
//WriteLog("工序明细更新语句:%s\n", updateSql.c_str());
WriteLog("工序明细查询语句:%s\n", selectSql.c_str());
WriteLog("工序明细更新后查询语句:%s\n", updateSelectSql.c_str());
//WriteLog("工序明细更新后查询语句:%s\n", updateSelectSql.c_str());
insertVec.push_back(insertSql);
updateVec.push_back(updateSql);
selectVec.push_back(selectSql);
@ -1159,9 +1162,9 @@ void insertGxGb(string xmlUid, bool& showError, ado ado0, map<string, CHILD> chi
selectSql = Utf8ToGbk(selectSql.c_str());
updateSelectSql = Utf8ToGbk(updateSelectSql.c_str());
WriteLog("工步插入语句:%s\n", insertSql.c_str());
WriteLog("工步更新语句:%s\n", updateSql.c_str());
//WriteLog("工步更新语句:%s\n", updateSql.c_str());
WriteLog("工步查询语句:%s\n", selectSql.c_str());
WriteLog("工步更新后查询语句:%s\n", updateSelectSql.c_str());
//WriteLog("工步更新后查询语句:%s\n", updateSelectSql.c_str());
insertVec.push_back(insertSql);
updateVec.push_back(updateSql);
selectVec.push_back(selectSql);
@ -1488,9 +1491,9 @@ void insertGyGxProp(string xmlUid, bool& showError, ado ado0, tag_t gy_line, tag
selectSql = Utf8ToGbk(selectSql.c_str());
updateSelectSql = Utf8ToGbk(updateSelectSql.c_str());
WriteLog("工序属性插入语句:%s\n", insertSql.c_str());
WriteLog("工序属性更新语句:%s\n", updateSql.c_str());
//WriteLog("工序属性更新语句:%s\n", updateSql.c_str());
WriteLog("工序属性查询语句:%s\n", selectSql.c_str());
WriteLog("工序属性更新后查询语句:%s\n", updateSelectSql.c_str());
//WriteLog("工序属性更新后查询语句:%s\n", updateSelectSql.c_str());
insertVec.push_back(insertSql);
updateVec.push_back(updateSql);
selectVec.push_back(selectSql);
@ -1838,7 +1841,8 @@ void insertGyGxGywj(string xmlUid, string ftp_dir, string username, string pwd,
GRM_relation_t* related_objects = NULL;
ITKCALL(ifail = AOM_ask_value_string(zy_rev, "item_id", &item_id));
ITKCALL(ifail = AOM_ask_value_string(zy_rev, "item_revision_id", &rev_id));
ITKCALL(AOM_UIF_ask_value(zy_rev, "object_type", &type_name));
ITKCALL(AOM_ask_value_string(zy_rev, "object_type", &type_name));
//ITKCALL(AOM_UIF_ask_value(zy_rev, "object_type", &type_name));
ITKCALL(GRM_list_all_related_objects(zy_rev, &related_cnt, &related_objects));
string idAndRev = string(item_id) + "-" + string(rev_id);
for (int i = 0; i < related_cnt; i++)
@ -1847,7 +1851,8 @@ void insertGyGxGywj(string xmlUid, string ftp_dir, string username, string pwd,
if (checkIsTypeOrSubtype(related_objects[i].secondary, "Dataset") == 1)
{
string path = downloadDataset(related_objects[i].secondary, ftp_dir, type_name, idAndRev, username, pwd);
if (i > 0) {
WriteLog("文件路径:%s\n", path.c_str());
if (tempValue.length() > 0) {
tempValue = tempValue.append(";");
}
tempValue = tempValue.append(path);
@ -1929,9 +1934,9 @@ void insertGyGxGywj(string xmlUid, string ftp_dir, string username, string pwd,
selectSql = Utf8ToGbk(selectSql.c_str());
updateSelectSql = Utf8ToGbk(updateSelectSql.c_str());
WriteLog("工艺文件插入语句:%s\n", insertSql.c_str());
WriteLog("工艺文件更新语句:%s\n", updateSql.c_str());
//WriteLog("工艺文件更新语句:%s\n", updateSql.c_str());
WriteLog("工艺文件查询语句:%s\n", selectSql.c_str());
WriteLog("工艺文件更新后查询语句:%s\n", updateSelectSql.c_str());
//WriteLog("工艺文件更新后查询语句:%s\n", updateSelectSql.c_str());
insertVec.push_back(insertSql);
updateVec.push_back(updateSql);
selectVec.push_back(selectSql);
@ -2345,9 +2350,9 @@ void insertGyGxGyzy(string xmlUid, bool& showError, ado ado0, tag_t gy_line, tag
selectSql = Utf8ToGbk(selectSql.c_str());
updateSelectSql = Utf8ToGbk(updateSelectSql.c_str());
WriteLog("插入语句:%s\n", insertSql.c_str());
WriteLog("更新语句:%s\n", updateSql.c_str());
//WriteLog("更新语句:%s\n", updateSql.c_str());
WriteLog("查询语句:%s\n", selectSql.c_str());
WriteLog("更新后查询语句:%s\n", updateSelectSql.c_str());
//WriteLog("更新后查询语句:%s\n", updateSelectSql.c_str());
insertVec.push_back(insertSql);
updateVec.push_back(updateSql);
selectVec.push_back(selectSql);
@ -2689,9 +2694,9 @@ void insertGbzy(string xmlUid, bool& showError, ado ado0, map<string, CHILD> chi
selectSql = Utf8ToGbk(selectSql.c_str());
updateSelectSql = Utf8ToGbk(updateSelectSql.c_str());
WriteLog("工步资源插入语句:%s\n", insertSql.c_str());
WriteLog("工步资源更新语句:%s\n", updateSql.c_str());
//WriteLog("工步资源更新语句:%s\n", updateSql.c_str());
WriteLog("工步资源查询语句:%s\n", selectSql.c_str());
WriteLog("工步资源更新后查询语句:%s\n", updateSelectSql.c_str());
//WriteLog("工步资源更新后查询语句:%s\n", updateSelectSql.c_str());
insertVec.push_back(insertSql);
updateVec.push_back(updateSql);
selectVec.push_back(selectSql);
@ -2787,7 +2792,7 @@ int JD_BOPInfoToMediDatabase(EPM_action_message_t msg) {
//先获取首选项Jd_MES_Info_Connect解析其中的用户名密码配置文件等信息
vector<string> pref_vec1, pref_vec2;
getPrefStrings1("Jd_MES_Info_Connect", TC_preference_site, pref_vec1);
getPrefStrings1("Jd_MES_Info_Connect", TC_preference_site, pref_vec2);
getPrefStrings1("Jd_MES_FTP_Info_Connect", TC_preference_site, pref_vec2);
string ip = pref_vec1[0];
string databaseName = pref_vec1[1];
string user = pref_vec1[2];

@ -36,6 +36,51 @@ vector<string> split_regex(const string& str, const string& pattern) {
return tokens;
}
string URLEncodeFTPPath(const std::string& path) {
CURL* curl = curl_easy_init();
if (!curl) return path;
std::string result;
std::string encoded_part;
// 分割路径,分别编码每个部分
size_t start = 0;
size_t end = path.find('/');
while (end != std::string::npos) {
std::string part = path.substr(start, end - start);
if (!part.empty()) {
char* encoded = curl_easy_escape(curl, part.c_str(), part.length());
if (encoded) {
result += encoded;
curl_free(encoded);
}
else {
result += part;
}
}
result += '/';
start = end + 1;
end = path.find('/', start);
}
// 最后一部分
if (start < path.length()) {
std::string part = path.substr(start);
char* encoded = curl_easy_escape(curl, part.c_str(), part.length());
if (encoded) {
result += encoded;
curl_free(encoded);
}
else {
result += part;
}
}
curl_easy_cleanup(curl);
return result;
}
// 写入回调函数(用于上传文件)
size_t read_callback(void* ptr, size_t size, size_t nmemb, FILE* stream) {
size_t retcode = fread(ptr, size, nmemb, stream);
@ -53,16 +98,31 @@ int sendFileByFtp(string ftp_url, string file_path, string file_dir, string user
curl = curl_easy_init();
if (curl) {
string encoded_ftp_url = URLEncodeFTPPath(ftp_url);
// 1. 创建远程目录
curl_easy_setopt(curl, CURLOPT_URL, ftp_url.c_str());
curl_easy_setopt(curl, CURLOPT_URL, encoded_ftp_url.c_str());
curl_easy_setopt(curl, CURLOPT_USERNAME, user.c_str());
curl_easy_setopt(curl, CURLOPT_PASSWORD, pwd.c_str());
curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, CURLFTP_CREATE_DIR);
// 重要:对于非标准端口,可能需要额外设置
curl_easy_setopt(curl, CURLOPT_FTPPORT, "-"); // 被动模式
curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, 0L); // 禁用 EPSV
// 启用详细日志查看具体问题
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
// 设置超时
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30L);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10L);
// 执行目录创建
res = curl_easy_perform(curl);
if (res != CURLE_OK) {
WriteLog("´´˝¨ÄżÂźĘ§°Ü>%s\n", curl_easy_strerror(res));
WriteLog("FTP 创建目录失: %s (错误: %d)\n",
curl_easy_strerror(res), res);
result = 1;
goto end;
}
// 2. 上传文件到新目录
@ -83,7 +143,7 @@ int sendFileByFtp(string ftp_url, string file_path, string file_dir, string user
// 设置FTP上传选项
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
curl_easy_setopt(curl, CURLOPT_URL, (ftp_url + file_dir).c_str());
curl_easy_setopt(curl, CURLOPT_URL, file_dir.c_str());
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
curl_easy_setopt(curl, CURLOPT_READDATA, file);

@ -1,6 +1,4 @@
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\vc142.pdb
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\tinyxmlerror.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\tinyxml.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\tinystr.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\testreadxml.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\tc_util.obj
@ -14,20 +12,22 @@ d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\lidy
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\nhl_signoff_handler.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\k_util.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\jd_iteminfotomedidatabase.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\jd_gyinfotomedidatabase.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\jd_gxinfotomedidatabase.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\jd_fileinfotomedidatabase.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\jd_bopinfotomedidatabase.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\jd_bominfotomedidatabase.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\curl_utils.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\adoconn.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\tinyxmlparser.obj
d:\source\精雕\jingdiao_connor_jd\x64\release\connor_jd.lib
d:\source\精雕\jingdiao_connor_jd\x64\release\connor_jd.exp
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\tinyxmlerror.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\tinyxml.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\x64\release\connor_jd.lib
d:\file store\项目代码\精雕\jingdiao_connor_jd\x64\release\connor_jd.exp
d:\file store\项目代码\精雕\jingdiao_connor_jd\x64\release\connor_jd.dll
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\connor_jd.ipdb
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\connor_jd.iobj
d:\file store\项目代码\精雕\jingdiao_connor_jd\x64\release\connor_jd.pdb
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\jd_gxinfotomedidatabase.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\jd_gyinfotomedidatabase.obj
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\msado15.tli
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\msado15.tlh
d:\file store\项目代码\精雕\jingdiao_connor_jd\connor_ldy\x64\release\connor_jd.tlog\cl.command.1.tlog

@ -2,6 +2,8 @@
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\ADOConn.cpp(88,13): warning C4305: “return”: 从“int”到“bool”截断
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\ADOConn.cpp(257,12): warning C4477: “printf”: 格式字符串“%s”需要类型“char *”的参数,但可变参数 1 拥有了类型“_bstr_t”
curl_utils.cxx
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\curl_utils.cxx(53,70): warning C4267: “参数”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\curl_utils.cxx(70,69): warning C4267: “参数”: 从“size_t”转换到“int”可能丢失数据
JD_BOMInfoToMediDatabase.cpp
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\string_utils.h(134,50): warning C4190: “replace”有指定的 C 链接,但返回了与 C 不兼容的 UDT“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”
D:\Installation directory\Microsoft Visual Studio2019\VC\Tools\MSVC\14.29.30133\include\xstring(4871): message : 参见“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”的声明
@ -65,50 +67,50 @@ D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMedi
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(391,2): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(386,19): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(392,6): warning C4996: 'access': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _access. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(524,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(525,3): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(525,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(526,3): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(518,2): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(524,21): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(854,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(856,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(670,6): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(781,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1042,28): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1171,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1173,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1019,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1106,9): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1499,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1501,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1346,6): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1436,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1700,37): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1940,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1942,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1666,6): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1754,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1841,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1881,9): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2144,37): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2356,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2358,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2110,6): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2198,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2297,9): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2430,28): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2571,34): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2700,7): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2702,7): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2545,9): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2640,11): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2780,6): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2817,2): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2819,2): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2883,35): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2748,6): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2752,97): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2776,8): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(527,3): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(533,12): warning C4129: “,”: 不可识别的字符转义序列
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(519,2): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(525,21): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(857,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(859,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(673,6): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(784,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1045,28): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1174,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1176,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1022,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1109,9): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1502,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1504,3): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1349,6): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1439,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1703,37): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1945,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1947,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1669,6): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1757,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(1886,9): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2149,37): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2361,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2363,5): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2115,6): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2203,7): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2302,9): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2435,28): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2576,34): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2705,7): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2707,7): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2550,9): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2645,11): warning C4996: 'AOM_UIF_ask_value': "AOM_UIF_ask_value" deprecated in Teamcenter "11.1"; Use "AOM_ask_displayable_values" instead.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2785,6): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2822,2): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2824,2): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2888,35): warning C4267: “初始化”: 从“size_t”转换到“int”可能丢失数据
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2753,6): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2757,97): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\JD_BOPInfoToMediDatabase.cxx(2781,8): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
JD_FileInfoToMediDatabase.cpp
D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\string_utils.h(134,50): warning C4190: “replace”有指定的 C 链接,但返回了与 C 不兼容的 UDT“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”
D:\Installation directory\Microsoft Visual Studio2019\VC\Tools\MSVC\14.29.30133\include\xstring(4871): message : 参见“std::basic_string<char,std::char_traits<char>,std::allocator<char>>”的声明
@ -341,6 +343,6 @@ D:\file store\项目代码\精雕\JINGDIAO_connor_jd\connor_ldy\tc_util.cpp(63,1
正在创建库 D:\file store\项目代码\精雕\JINGDIAO_connor_jd\x64\Release\connor_jd.lib 和对象 D:\file store\项目代码\精雕\JINGDIAO_connor_jd\x64\Release\connor_jd.exp
正在生成代码
Previous IPDB not found, fall back to full compilation.
All 2103 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
All 2110 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
已完成代码的生成
connor_ldy.vcxproj -> D:\file store\项目代码\精雕\JINGDIAO_connor_jd\x64\Release\connor_jd.dll

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save