getconsolewindow() funktioniert nicht!!!
-
ok danke es ligt am showwindow() aber was kann ich machen?
wenn ich windows.h öffne und nach showwindow suche finde ich nur eine stelle wo showwindow als kommentar enthalten ist:/* . . . * NOICONS - IDI_* * NOKEYSTATES - MK_* * NOSYSCOMMANDS - SC_* * NORASTEROPS - Binary and Tertiary raster ops * NOSHOWWINDOW - SW_* <-------- * OEMRESOURCE - OEM Resource values * NOATOM - Atom Manager routines * NOCLIPBOARD - Clipboard routines . . . */kann es sein das dann diese funktion in windows.h bei mir nicht definiert worden ist
Am compiler hab ich eigendlich noch nichts umgestellt!
-
Dein Kompiler ist korrekt eingestellt. Aber der Linker findet seine .lib's nicht. "__imp__ShowWindow@8" ist in der user32.lib zu finden.
Hast Du bei der Installation von VC Step 4 beachtet ?
Step 4 schrieb:
Step 4: Update the corewin_express.vsprops file.
One more step is needed to make the Win32 template work in Visual C++ Express.
You need to edit the corewin_express.vsprops file (found in C:\Programme\Microsoft Visual Studio 8\VC\VCProjectDefaults) and change the string that reads:
AdditionalDependencies="kernel32.lib" to
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
/*
- suche im Verzeichnis "VCProjectDefaults" eine Datei namens "corewin_express.vsprops"
- öffne sie mit einem Texteditor (notepad)
- suche den Eintrag namens "AdditionalDependencies"
- aktualisiere ihn entsprechend
*/
-
merker schrieb:
Dein Kompiler ist korrekt eingestellt. Aber der Linker findet seine .lib's nicht. "__imp__ShowWindow@8" ist in der user32.lib zu finden.
Hast Du bei der Installation von VC Step 4 beachtet ?
Step 4 schrieb:
Step 4: Update the corewin_express.vsprops file.
One more step is needed to make the Win32 template work in Visual C++ Express.
You need to edit the corewin_express.vsprops file (found in C:\Programme\Microsoft Visual Studio 8\VC\VCProjectDefaults) and change the string that reads:
AdditionalDependencies="kernel32.lib" to
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
/*
- suche im Verzeichnis "VCProjectDefaults" eine Datei namens "corewin_express.vsprops"
- öffne sie mit einem Texteditor (notepad)
- suche den Eintrag namens "AdditionalDependencies"
- aktualisiere ihn entsprechend
*/Pappkopp, das mein ich doch damit, siehe Thread: http://www.c-plusplus.net/forum/viewtopic-var-t-is-143003.html
-
ok das hab ich jetzt gemacht aber jetzt bringt er mir auf einmal schon einen error wenn ich das projekt nur öffnen will
:The following error has occurred during XML parsing:
File: C:\Programme\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops
Line: 8
Column: 147
Error Message:
Unexpected end of input.The file 'C:\Programme\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops' has failed to load.
Failed to load system project defaults file 'C:\Programme\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops'.
The project cannot load without this file installed.
Please re-install the product.The following error has occurred during XML parsing:
File: C:\Programme\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops
Line: 8
Column: 147
Error Message:
Unexpected end of input.The file 'C:\Programme\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops' has failed to load.
Failed to load system project defaults file 'C:\Programme\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops'.
The project cannot load without this file installed.
Please re-install the product.corewin_express.vsprops schaut jetzt so aus:
.
.
.
<Tool
Name="VCLinkerTool"
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib" />
-
CodeFinder schrieb:
Pappkopp (...)
<°)))o><
albertk13 schrieb:
ok das hab ich jetzt gemacht (...)
Mit "aktualisieren" meinte ich, dass Du einen Eintrag in der Datei erweitern solltest.
Wenn die Datei "CoreWin_Express.vsprops" vorher so aussah :
CoreWin_Express.vsprops original schrieb:
<?xml version="1.0"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="Core Windows Libraries">
<Tool
Name="VCLinkerTool"
AdditionalDependencies="kernel32.lib" />
</VisualStudioPropertySheet>sollte sie nach der Erweiterung so aussehen :
CoreWin_Express.vsprops erweitert schrieb:
<?xml version="1.0"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="Core Windows Libraries">
<Tool
Name="VCLinkerTool"
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib" />
</VisualStudioPropertySheet>Hast Du versehentlich die letzte Zeile abgeschnitten ?

-
lol ja das kann sein muss ich nachher mal ausprobieren installiere es gerade neu!!
-
das geht immer noch nicht ich hab jetzt genau das gleiche drin stehen!!! und der bringt immer noch den gleichen fehler hilft es was wenn ich das pdsk noch mal installiere?
-
albertk13 schrieb:
(...) installiere es gerade neu (...) der bringt immer noch den gleichen fehler (...)
Poste mal den Inhalt Deiner "CoreWin_Express.vsprops".
-
lol leut es funktioniert hab vergessen zu speichern

-
Sorry, but what is kimerikas?
Jane.