I just got my Windows Vista installation working here, im facing lots of problems, mainly with video drivers, but my biggest problem was with wxDev-C++. Gcc and cygwin wont work with Windows Vista because of its paths it uses. I found a workaround, this is not a hard workaround but it will use lots of space, but it should not be a problem if you use Visual Studio. (+- 500 mb depending what will you install).
Step 1: We will use Visual Studio compiler to compile wxDev-C++ works, so lets download Visual Studio Express for free. (You dont need it if you own the payed version - Visual Studio Professional 2005).
Link:
Visual Studio Express
Step 2: Install it, update it with windows updates. Now install Plataform sdk
Link:
http://www.microsoft.com/downloads/d...displaylang=en
Step 3: Read this instruction or skip them and read mine.
Link:
Using Visual C++ 2005 Express with the Microsoft Platform SDK
After installing VS (Visual Studio):
3.1. Open startmenu, then open Microsoft Platform SDK for Windows Server 2003 R2 folder --> Visual Studio Registration, then run Register PSDK Directories with Visual Studio.
3.2. Open Visual Studio, open Tools menu -> Options..., Go Projects and Solutions, open VC++ Directories tab, select Executables Files for show directories for: combo box, add the following line:
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
(Im assuming you installed with default path)
Now select Include Files in the combo box and add this line:
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
The same thing, now select Library Files and add this one:
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
3.3. Open this folder in Explorer:
C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults (assuming you installed Visual Studio with default path).
Edit the corewin_express.vsprops file. Find this:
AdditionalDependencies="kernel32.lib"
and replace with this line:
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
3.4. This step is optional, but its main prupose is to test your Visual Studios paths and add the Win API (headers) to create Windows GUI apps. (This is not MFC - Microsoft Foundation Classes). SKIP THIS IF YOU FOLLOWED THIS INSTRUCTIONS:
Using Visual C++ 2005 Express with the Microsoft Platform SDK.
Edit this file AppSettings.htm in this folder C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\103 3\.
Use notepad since it can seek lines, after you opened AppSettings.htm press CTRL + G and seek line 441, then comment out this lines.
WIN_APP.disabled = true;
WIN_APP_LABEL.disabled = true;
DLL_APP.disabled = true;
DLL_APP_LABEL.disabled = true;
They should look like this:
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
We are almost there! Now open Visual Studio, open File --> New --> Project Menu, it will pop up a window with the avaliable projects, Select Win32 tab then open a Win32 Console application ( this is not what your thinking ), now enter a name like test, tst, or something you like. Another windows will pop up, it will overview the current project, click on Next button, now mark the Windows Application radio box and then finish. Open the Debug menu, select the Start with no debug option, a window will pop up and ask if you would like to build the project, select Yes. There you go your Windows application is working, if this doesnt work re-read the instructions carefully, or ask for help here.
Final step: (Do this if you didnt check the VS compiler box during wxDev-C++ instalation) Uninstall wxDev-C++ and install it with VS compiler check box marked.
Open wxDev-C++, select the New --> Project menu option, select the wxDialog, name it, it will ask you to save the project somewhere, your choice here, then another window will pop up, again choose what fits better for you, at the bottom of the windows select the Visual C++ 2005 profile. Your done, try to compile and run it. If you want to compile an existing project with Visual C++ 2005 compiler just open the Project menu --> Projects Option. Select visual C++ 2005 at the top of the window in the combo box profile selector.
Hope this helps all users having problems with wxDev-C++ under Vista OS.
ps. Im using wxDev-C++ 6.10-2.
Links:
(wxDev-C++) --
wxDev-C++
(Instructions to install plataform SDK) --
Using Visual C++ 2005 Express with the Microsoft Platform SDK
(Web Installer Version of Plataform SDK) --
http://www.microsoft.com/downloads/d...displaylang=en
(Full Download Installer of Plataform SDK) --
Download details: Windows® Server 2003 R2 Platform SDK Full Download
(Iso Download of the Installer of Plataform SDK) --
Download details: Windows® Server 2003 R2 Platform SDK ISO Download
(Visual Studio Download, Register and Learn site) --
Visual Studio Express -- (You dont need to own a hotmail account to get your key to register your copy of Visual Studio).
EDIT: Updated, all links were moved. It also works for vista 64 bit, BUT remember to replace all the lines containing "Program Files" to "Program Files (x86)".