Visual C++ 2008 | Programinkompatiblität
-
Hallo,
ich habe folgendes Problem:(Win32-Project - Empty Project - danach eine cpp hinzugefügt.)
Ich habe eine einfache Konsolenanwendung geschrieben, die ein paar zeilen schreibt.wenn ich das programm auf meinem Entwickerrechner ausführe -> geht
daheim (vs08 installiert) -> geht
andere rechner OHNE vs08 -> kracht
auf meinem virtual pc (VC redist, .net, ... installiert, den Dependency Walker laufen gelassen, alle dll's rüberkopiert) -> kracht auch.ich habe schon etliche Topics über dieses Problem gefunden, zig mal kompiliert, etc.
Leider kein Erfolg.
Was kann ich tun?
Woher weiß ich, welche Librarys mein Programm braucht?(ich nutze Win7 64x / virtual: XP 32x / daheim: Win7 32x)
mein visual studio: http://www.abload.de/img/vsqu90.pngDanke,
Thomas L./edit:
sorry wegen falschen titel
-
Release Build gemacht?
-
theta schrieb:
Release Build gemacht?
meinst du:
Project -> Project Properties -> Configuration Properties -> Configuration: Active(Release)
?
wenn du das meinst -> ja.
btw. hier die fehlermeldung:Diese Anwendung konnte nicht gestartet werden, weil die Anwendungskonfiguration nicht korrekt ist. Zur Problembehebung sollten Sie die Anwendung neu installieren
-
Dir fehlt die benötigte Runtime und / oder .NET Framework.
Hast Du SP1 für VS noch installiert? Dann musst Du auch die SP1 Runtime installieren...
Nicht verzweifeln...
Simon
-
ich hab einen screenshot gepostet.
ich kann leider nicht erkennen ob mit "SP" das SP1 gemeint ist.
die runtimes / das .NET Framework ist installiert.//edit:
welche runtimes meinst du?
nur die für .NET 3.5 SP1? - diese ist nämlich installiert//edit:
ich habe mal Help -> About MSVS -> Copy info:Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1Installed Edition: Enterprise
Microsoft Silverlight Projects 2008
Version 9.0.30730.126Microsoft Visual C# 2008
Microsoft Visual C++ 2008
Microsoft Visual Studio 2008 Team Explorer
Version 9.0.30729.1Microsoft Visual Studio 2008 Tools for Office
Microsoft Visual Studio Team System 2008 Development Edition
Portions of International CorrectSpell
spelling correction system
1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage
Dictionary of the English Language, Third Edition Copyright
1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Microsoft Visual Web Developer 2008
Crystal Reports Basic for Visual Studio 2008
Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB946260) KB946260
This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946260.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB946458) KB946458
This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946458.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB947171) KB947171
This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947171.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB947180) KB947180
This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947180.Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB948816) KB948816
This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948816.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB944899) KB944899
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB945282) KB945282
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946040) KB946040
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946308) KB946308
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946344) KB946344
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946581) KB946581
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947173) KB947173
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947540) KB947540
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947789) KB947789
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB948127) KB948127
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB953256) KB953256
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/953256.Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB971092) KB971092
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/971092.Microsoft Visual Studio 2008 Team Explorer - ENU Service Pack 1 (KB945140) KB945140
This service pack is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945140.Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB947888) KB947888
This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947888.Process Editor WIT Designer 1.4.0.0
Process Editor for Microsoft Visual Studio Team Foundation Server, Version 1.4.0.0Security Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB972222) KB972222
This security update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/972222.Security Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB973675) KB973675
This security update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/973675.SQL Server Analysis Services
Microsoft SQL Server Analysis Services Designer
Version 10.0.2531.0SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 10.0.2531.0 ((Katmai_PCU_Main).090329-1015 )SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
Version 10.0.2531.0Team Foundation Server Power Tools October 2008
Power Tools that extend the Team Foundation Server integration with Visual Studio.Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB956453) KB956453
This update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/956453.Update for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB967143) KB967143
This update is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/967143.
-
Hier ist das Redist für die C++ Runtime 2008 SP1...
http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=de.NET Framework benötigst Du höchstwahrscheinlich gar nicht.
Siehe mal bei den Allgemeinen Projekt Einstellungen nach und Common Language Runtime Support (/clr oä. Schalter).Simon
-
/clr ist deaktiviert.
das habe ich bereits installiert.
geht immernoch nicht./edit:
hier ist mal die .exe ...
http://www.file-upload.net/download-2046736/TestProject2-2.exe.html
vielleicht hilft dir/mir das weiter...
quelltext:#include <iostream> using namespace std; int main(void) { cout << "Hallo" << endl; int i = 10; int *v = &i; *v = 12345; cout << v << endl; cout << &i << endl; cout << i << endl; int b; cin >> b; cout << i << endl; cin >> b; return 0; }
/edit2:
nun geht es...
ich habe nun einige einstellungen am linker rumprobiert
nun ist meine .exe erheblich größer (150 KB statt 40 KB)
aber sie funktioniert
nun ist auch ein Release-Ordner aufgetaucht...ich glaube das war mein fehler, ich habe auch nocheinmal die solution 'gecleant' und rebuildet.
anscheinend geht's nun...
Danke für die Hilfe!
LG
-
1. Statisch linken. Das ist bei solchen Mickey-Maus Programmmen wohl das einfachste.
2. Sag uns mal was in Deiner Manifest Datei drin steht. Evtl. wird doch eine andere Runtime verlangt.
-
... das war nur ein kleines test-prgrämmchen, dass ich ausschließen konnte, dass es an i.welchen obj oder lib's liegt.
manifest:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?> <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level='asInvoker' uiAccess='false' /> </requestedPrivileges> </security> </trustInfo> </assembly>