无法定位程序输入点strcpy_s于msvcrt.dll

Win7环境下QT程序无法在xp上运行

** 写的Win7程序无法在XP机器上运行,上报“无法定位程序输入点strcpy_s于msvcrt.dll”错误。
原因分析:开发机上使用的msvcrt.dll版本 高于目标机 器上的msvcrt.dll,所以找不到strcpy_s api。
解决方法:去掉strcpy_s这种带_s的api(安全考虑转为使用strncpy类型api),带_s类型api为windows 系统api,是要依赖windows相关库的。**

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
// 使用strcpy函数将S_cifcdetail结构体中的字段值复制到T_restax表的相应字段中 strcpy(T_restax.mesg_type, S_cifcdetail.cust_status); // 复制S_cifcdetail结构体中的cust_status字段值到T_restax表的mesg_type字段 strcpy(T_restax.acct_type, S_cifcdetail.deal_cert_type); // 复制S_cifcdetail结构体中的deal_cert_type字段值到T_restax表的acct_type字段 strcpy(T_restax.self_certification, S_cifcdetail.finance_cert_type); // 复制S_cifcdetail结构体中的finance_cert_type字段值到T_restax表的self_certification字段 strcpy(T_restax.holder_type, S_cifcdetail.telex_no); // 复制S_cifcdetail结构体中的telex_no字段值到T_restax表的holder_type字段 strcpy(T_restax.addr_country_code, S_cifcdetail.national_code1); // 复制S_cifcdetail结构体中的national_code1字段值到T_restax表的addr_country_code字段 strcpy(T_restax.city_en, S_cifcdetail.addr3); // 复制S_cifcdetail结构体中的addr3字段值到T_restax表的city_en字段 strcpy(T_restax.res_country_code, S_cifcdetail.national_code3); // 复制S_cifcdetail结构体中的national_code3字段值到T_restax表的res_country_code字段 strcpy(T_restax.tin_issuedby, S_cifcdetail.national_code4); // 复制S_cifcdetail结构体中的national_code4字段值到T_restax表的tin_issuedby字段 strcpy(T_restax.explanation, S_cifcdetail.base_bank_name); // 复制S_cifcdetail结构体中的base_bank_name字段值到T_restax表的explanation字段 strcpy(T_restax.bir_country_code, S_cifcdetail.national_code2); // 复制S_cifcdetail结构体中的national_code2字段值到T_restax表的bir_country_code字段 strcpy(T_restax.bir_country_name, S_cifcdetail.addr2); // 复制S_cifcdetail结构体中的addr2字段值到T_restax表的bir_country_name字段 strcpy(T_restax.nationality, S_cifcdetail.industry_code); // 复制S_cifcdetail结构体中的industry_code字段值到T_restax表的nationality字段

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值