我在Visual Studio 2012中使用CLI / c ++(为Win32编译)编写了一个简单的程序。在我的计算机上,安装了visual(Windows 8 64x),它启动正常,但是当我尝试在Windows 7 64x的新系统上启动时,它正在崩溃。
首先,它需要可视再发行2012,然后是净。框架。但在那之后,它正在崩溃,简单的“程序已停止”。 Okej,所以我安装了WinDbg,这就是它让我:
Executable search path is:
ModLoad: 00f00000 00f1e000 SVCTangoProgrammer.exe
ModLoad: 77e50000 77fd0000 ntdll.dll
ModLoad: 73020000 7306a000 C:\Windows\SysWOW64\MSCOREE.DLL
ModLoad: 763f0000 76500000 C:\Windows\syswow64\KERNEL32.dll
ModLoad: 75d70000 75db6000 C:\Windows\syswow64\KERNELBASE.dll
ModLoad: 715a0000 71676000 C:\Windows\SysWOW64\MSVCR110.dll
ModLoad: 729d0000 72a55000 C:\Windows\SysWOW64\MSVCP110.dll
(764.ac): Break instruction exception - code 80000003 (first chance)
eax=00000000 ebx=00000000 ecx=06b10000 edx=000cdbe8 esi=fffffffe edi=00000000
eip=77ef0f3b esp=0036f938 ebp=0036f964 iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000246
ntdll!LdrpDoDebuggerBreak+0x2c:
77ef0f3b cc int 3
0:000> g
ModLoad: 77740000 777e0000 C:\Windows\syswow64\ADVAPI32.dll
ModLoad: 75fd0000 7607c000 C:\Windows\syswow64\msvcrt.dll
ModLoad: 75a10000 75a29000 C:\Windows\SysWOW64\sechost.dll
ModLoad: 75a30000 75b20000 C:\Windows\syswow64\RPCRT4.dll
ModLoad: 759b0000 75a10000 C:\Windows\syswow64\SspiCli.dll
ModLoad: 759a0000 759ac000 C:\Windows\syswow64\CRYPTBASE.dll
ModLoad: 72fa0000 7301a000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
ModLoad: 761b0000 76207000 C:\Windows\syswow64\SHLWAPI.dll
ModLoad: 77520000 775b0000 C:\Windows\syswow64\GDI32.dll
ModLoad: 75b20000 75c20000 C:\Windows\syswow64\USER32.dll
ModLoad: 772e0000 772ea000 C:\Windows\syswow64\LPK.dll
ModLoad: 77610000 776ad000 C:\Windows\syswow64\USP10.dll
ModLoad: 775b0000 77610000 C:\Windows\SysWOW64\IMM32.DLL
ModLoad: 77980000 77a4c000 C:\Windows\syswow64\MSCTF.dll
ModLoad: 70f00000 71592000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
ModLoad: 73070000 73143000 C:\Windows\SysWOW64\MSVCR110_CLR0400.dll
(764.ac): Unknown exception - code 04242420 (first chance)
ModLoad: 6ff40000 70eff000 C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\51e2934144ba15628ba5a31be2dae7dc\mscorlib.ni.dll
ModLoad: 76250000 763ac000 C:\Windows\syswow64\ole32.dll
ModLoad: 72910000 7297e000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll
ModLoad: 6f5c0000 6ff39000 C:\Windows\assembly\NativeImages_v4.0.30319_32\System\e40da7a49f8c3f0108e7c835b342f382\System.ni.dll
ModLoad: 6f420000 6f5b1000 C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Drawing\72269ea7cc6281139e4d155e7c57dc67\System.Drawing.ni.dll
ModLoad: 6e800000 6f41d000 C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\22ae167d586450ad3a9b9a9ee43ebc86\System.Windows.Forms.ni.dll
ModLoad: 749d0000 74a50000 C:\Windows\SysWOW64\uxtheme.dll
ModLoad: 6e360000 6e7f6000 System.Windows.Forms.dll
ModLoad: 6e770000 6e7f4000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll
ModLoad: 74490000 7462e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll
ModLoad: 728f0000 72902000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll
(764.ac): C++ EH exception - code e06d7363 (first chance)
(764.ac): C++ EH exception - code e06d7363 (first chance)
(764.ac): C++ EH exception - code e06d7363 (first chance)
(764.ac): CLR exception - code e0434352 (first chance)
(764.ac): C++ EH exception - code e06d7363 (first chance)
ModLoad: 74a70000 74a79000 C:\Windows\SysWOW64\VERSION.dll
ModLoad: 6e690000 6e764000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll
(764.ac): CLR exception - code e0434352 (!!! second chance !!!)
eax=0036e0cc ebx=00000005 ecx=00000005 edx=00000000 esi=0036e18c edi=00000001
eip=75d7b727 esp=0036e0cc ebp=0036e11c iopl=0 nv up ei pl nz na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000206
KERNELBASE!RaiseException+0x58:
75d7b727 c9 leave
很容易看出,有一些例外,但我不知道如何解决它们。如果它在具有视觉的计算机上运行,则必须缺少dll。所以有一个问题:你们能帮助我运行我的程序吗?哦,而且,如果您需要更多信息,请告诉我您需要什么。
答案 0 :(得分:-1)
我找到了答案。我在我的程序中使用了一些微软图形库,可以使用visual studio自动安装。在干净的Windows上,需要安装Microsoft Visual Basic Power Packs 3.0。