Gan*_*dva 2 c++ c++-cx visual-studio-2015 windows-10-universal wack
我是Windows应用程序开发的新手.我已经构建了一个C#app目标,Windows 10桌面和移动平台.我的C#app调用用C++编写的Windows运行时组件(c ++/cx).
我按照这个MSDN链接运行WACK测试.
我的Windows应用程序认证工具包10.0在我的机器上安装.要运行测试,我会执行验证商店应用程序 - >从计算机上已安装应用程序列表中选择我的应用程序.我的应用程序安装在发布模式下.当我运行WACK测试时,支持的API测试失败,如下所示:
API ??0Delegate@Platform@@Q$AAA@XZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ??0Exception@Platform@@Q$AAA@H@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ??0NotImplementedException@Platform@@Q$AAA@XZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ??0Object@Platform@@Q$AAA@XZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?AlignedFree@Heap@Details@Platform@@SAXPAX@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?Allocate@Heap@Details@Platform@@SAPAXII@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?AllocateException@Heap@Details@Platform@@SAPAXII@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?Free@Heap@Details@Platform@@SAXPAX@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?GetActivationFactory@Details@Platform@@YGJPAVModuleBase@1WRL@Microsoft@@PAUHSTRING__@@PAPAUIActivationFactory@@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?GetActivationFactoryByPCWSTR@@YGJPAXAAVGuid@Platform@@PAPAX@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?GetIBoxArrayVtable@Details@Platform@@YGPAXPAX@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?GetIidsFn@@YGJHPAKPBU__s_GUID@@PAPAVGuid@Platform@@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?InitializeData@Details@Platform@@YAJH@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?ReleaseTarget@ControlBlock@Details@Platform@@AAEXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?TerminateModule@Details@Platform@@YG_NPAVModuleBase@1WRL@Microsoft@@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?UninitializeData@Details@Platform@@YAXH@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseAccessDeniedException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseCOMException@@YGXJ@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseChangedStateException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseClassNotRegisteredException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseDisconnectedException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseFailureException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseInvalidArgumentException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseInvalidCastException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseNotImplementedException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseNullReferenceException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseObjectDisposedException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseOperationCanceledException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseOutOfBoundsException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseOutOfMemoryException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseWrongThreadException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_translateCurrentException@@YGJ_N@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API _CxxThrowException in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __CxxFrameHandler3 in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __std_exception_copy in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __std_exception_destroy in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __std_terminate in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __std_type_info_destroy_list in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __telemetry_main_invoke_trigger in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __telemetry_main_return_trigger in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __vcrt_InitializeCriticalSectionEx in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API _except_handler4_common in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API _purecall in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API memcpy in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API memmove in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API memset in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API ?_Xbad_alloc@std@@YAXXZ in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API ?_Xlength_error@std@@YAXPBD@Z in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API ?_Xout_of_range@std@@YAXPBD@Z in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API ??1_StructuredTaskCollection@details@Concurrency@@QAE@XZ in concrt140.dll is not supported for this application type. sample.dll calls this API.
API ?Free@Concurrency@@YAXPAX@Z in concrt140.dll is not supported for this application type. sample.dll calls this API.
API ?_CheckTaskCollection@_UnrealizedChore@details@Concurrency@@IAEXXZ in concrt140.dll is not supported for this application type. sample.dll calls this API.
API ?_RunAndWait@_StructuredTaskCollection@details@Concurrency@@QAG?AW4_TaskCollectionStatus@23@PAV_UnrealizedChore@23@@Z in concrt140.dll is not supported for this application type. sample.dll calls this API.
API GetModuleHandleW in kernel32.dll is not supported for this application type. sample.dll calls this API.
API TlsAlloc in kernel32.dll is not supported for this application type. sample.dll calls this API.
API TlsFree in kernel32.dll is not supported for this application type. sample.dll calls this API.
API TlsGetValue in kernel32.dll is not supported for this application type. sample.dll calls this API.
API TlsSetValue in kernel32.dll is not supported for this application type. sample.dll calls this API.
API UnhandledExceptionFilter in kernel32.dll is not supported for this application type. sample.dll calls this API.
上述链接中可能的解决方案是卸载 KB 2976978更新并重新运行WACK测试MS支持错误链接
我的机器似乎没有更新KB 2976978.
控制面板\程序\程序和功能 查看已安装的更新或搜索已安装的更新似乎找不到上述更新.
我已经检查了这个:SO post正如在这个SO帖子中提到的,即使在我的情况下,一切都编译好/ ZW/EHsc/D标志
我的VS细节是:
MS Visual Studio Professional 2015
Version 14.0.25123.00 Update 2
MS .NET Framework
Version 4.6.01038
任何帮助将受到高度赞赏.
问题是,我的C++本机lib引用了桌面CRT dll(vccorlib140.dll)而不是存储CRT dll(vccorlib140_app.dll).
该应用程序引用了桌面CRT,因为我将我的应用程序与此位置的libs链接:
C:\ Program Files(x86)\ Microsoft Visual Studio 14.0\VC\lib
结果构建了一个我们需要从这个位置引用libs的商店应用程序:
C:\ Program Files(x86)\ Microsoft Visual Studio 14.0\VC\lib\store
| 归档时间: |
|
| 查看次数: |
1271 次 |
| 最近记录: |