欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件高级功能研发区 → [求助]VS2010 Premium编译AddinDemo问题

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有2948人关注过本帖树形打印复制链接

主题:[求助]VS2010 Premium编译AddinDemo问题

帅哥哟,离线,有人找我吗?
lfiwhr
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游侠 帖子:107 积分:0 威望:0 精华:0 注册:2016/11/24 9:19:22
[求助]VS2010 Premium编译AddinDemo问题  发帖心情 Post By:2017/12/15 11:14:06 [只看该作者]

解压下载的addindemo包,未做任何改动。用VS2010打开addindemo.dsw工程,按提示转换成新VC版本所需文件,设置Build菜单下Configuration Manager为Release 和x64模式。运行Build Addindemo,Output窗口输出如下,请问如何解决,或请指导如何设置:
1>------ Build started: Project: AddinDemo, Configuration: Release x64 ------
1>Build started 2017/12/15 11:06:39.
1>InitializeBuildStatus:
1>  Creating ".\Release\AddinDemo.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1>  AddinDemo.cpp
1>  _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
1>AddinDemo.cpp(171): 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.
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(105) : see declaration of 'strcpy'
1>  MainWindowDlg.cpp
1>  _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
1>d:\期货\金字塔\addindemo\LogInfo.h(126): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(363) : see declaration of '_vsnprintf'
1>d:\期货\金字塔\addindemo\LogInfo.h(140): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
1>d:\期货\金字塔\addindemo\LogInfo.h(149): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>d:\期货\金字塔\addindemo\LogInfo.h(231): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(363) : see declaration of '_vsnprintf'
1>d:\期货\金字塔\addindemo\LogInfo.h(238): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
1>d:\期货\金字塔\addindemo\LogInfo.h(247): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(234) : see declaration of 'fopen'
1>MainWindowDlg.cpp(234): 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.
1>          D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(105) : see declaration of 'strcpy'
1>MainWindowDlg.cpp(393): warning C4244: '=' : conversion from 'INT_PTR' to 'int', possible loss of data
1>  StdAfx.cpp
1>  _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
1>  Generating Code...
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\期货\金字塔\AddinDemo\.\Release\AddinDemo.dll) does not match the Linker's OutputFile property value (D:\Weisoft Stock(x86)\AddinDemo.adi). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(991,5): warning MSB8012: TargetExt(.dll) does not match the Linker's OutputFile property value (.adi). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>.\AddinDemo.def(4): warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored
1>     Creating library .\Release\AddinDemo.lib and object .\Release\AddinDemo.exp
1>AddinDemo.exp : warning LNK4070: /OUT:AddinDemo.dll directive in .EXP differs from output filename 'D:\Weisoft Stock(x86)/AddinDemo.adi'; ignoring directive
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:17.57
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


 回到顶部
帅哥哟,离线,有人找我吗?
lfiwhr
  2楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游侠 帖子:107 积分:0 威望:0 精华:0 注册:2016/11/24 9:19:22
  发帖心情 Post By:2017/12/15 15:24:44 [只看该作者]

百度了一下,说是在project->properties->Manifest Tool->Input and Output里将Embed Manifest 从YES改成NO即可。照做后错误依旧。

 回到顶部