Go Back   NGOHQ.com / Software / General Software and Applications

Reply
 
Old April 17th, 2007, 12:58 AM   #1
Professional Member

Posts: 426
CPU: 1
GPU: 1
M/B: 1
RAM: 1
PSU: 1
Default wxDev-C++ and Windows Vista

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)".

Last edited by xiaomhome; September 19th, 2007 at 03:53 AM..
xiaomhome is offline   Reply With Quote
Old April 17th, 2007, 01:14 AM   #2
Spray 'n' Pray !
 

Posts: 1,627
CPU: AMD Phenom 2 940 BE
GPU: 2x ATI HD4850 PE
M/B: Gigabyte MA790FX-DQ6
RAM: 8GB OCZ AM2 DDR2-667
PSU: Corsair HX1000
Send a message via MSN to IModAmd
Default

Ok bro ... i sugest just one thing VISTA are not really optimised and ready for the newest drivers and others ... so you can wait ... for the drivers had an less of bugs on it and try it ... Example ... when WINDOWS Xp... (No services packs) was released ... we seen alot of bugs, Bsod with drivers ... And alot of unexplain things ... so i recommand you to wait ... untill really vista had good drivers and good updates

But nice post dude
__________________
www.technewshw.com

Last edited by IModAmd; April 17th, 2007 at 01:19 AM..
IModAmd is offline   Reply With Quote
Old April 17th, 2007, 01:18 AM   #3
Extreme Member
 

Posts: 5,919
CPU: E6550
GPU: Gainward Bliss 9600GT
M/B: GA-X38-DQ6
RAM: 4G OCZ Reaper X DDR2
PSU: Corsair CMPSU-520HX
Default

Nice post xiaomhome I still have to try Vista but THX for the info and taking the time
__________________
"People who live in glass houses shouldn't cast stones"
Mac Daddy is offline   Reply With Quote
Old April 17th, 2007, 01:23 AM   #4
Professional Member

Posts: 426
CPU: 1
GPU: 1
M/B: 1
RAM: 1
PSU: 1
Default

Quote:
Originally Posted by IModAmd
Ok bro ... i sugest just one thing VISTA are not really optimised and ready for the newest drivers and others ... so you can wait ... for the drivers had an less of bugs on it and try it ... Example ... when WINDOWS Xp... (No services packs) was released ... we seen alot of bugs, Bsod with drivers ... And alot of unexplain things ... so i recommand you to wait ... untill really vista had good drivers and good updates
I wrote this for those that dont want to go back to Windows XP, a big part of my time im programming, also i have games that i play fine under linux, gamming is not a really big problem. Thanks for the suggestion.
xiaomhome is offline   Reply With Quote
Old April 17th, 2007, 03:31 AM   #5
Spray 'n' Pray !
 

Posts: 1,627
CPU: AMD Phenom 2 940 BE
GPU: 2x ATI HD4850 PE
M/B: Gigabyte MA790FX-DQ6
RAM: 8GB OCZ AM2 DDR2-667
PSU: Corsair HX1000
Send a message via MSN to IModAmd
Default

Ok that's nice You programming with wich languages ???
__________________
www.technewshw.com
IModAmd is offline   Reply With Quote
Old April 17th, 2007, 11:15 PM   #6
Professional Member

Posts: 426
CPU: 1
GPU: 1
M/B: 1
RAM: 1
PSU: 1
Default

Quote:
Originally Posted by IModAmd
Ok that's nice You programming with wich languages ???
C++. I want to learn assembly now, since there are no schools for this ill have to look for books, its a really old language so it will be no problem to find.

Quote:
Originally Posted by Mac Daddy
Nice post xiaomhome I still have to try Vista but THX for the info and taking the time
Dont be afraid to try Windows Vista, all it needs is people to find bugs and report them, it wont take your arm off. Its a young OS, but it wont grow if we dont help it to. Vista is a really expensive OS, but if you are going to game or work with it there will be no problem to spend some money for it. If you are going just to browse internet, read mails or learn some kind of IT programming dont bother buying this kind of OS, just go with Linux.
xiaomhome is offline   Reply With Quote
Old April 17th, 2007, 11:35 PM   #7
Spray 'n' Pray !
 

Posts: 1,627
CPU: AMD Phenom 2 940 BE
GPU: 2x ATI HD4850 PE
M/B: Gigabyte MA790FX-DQ6
RAM: 8GB OCZ AM2 DDR2-667
PSU: Corsair HX1000
Send a message via MSN to IModAmd
Default

Lol ! The problem is not is an old language .. you can learn it ! Here somes colleges have class of assembly .. but you do class of assembly when you go in programing at university ... for do like Engineer in software ... because when you do assembly you really go play on heart of the machine ... like somes commands is push ... etc really complicated my dad lets me see an program in assembly and alot of push and others commands
__________________
www.technewshw.com
IModAmd is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On







eXTReMe Tracker

Copyright © NGOHQ.com - All rights reserved
Reproduction in whole or in part in any form or medium
without written permission of the site's owners is prohibited.
Powered by vBadvanced and vBulletin from Jelsoft
Copyright © 2000-2007 Jelsoft Enterprises Limited
Search Engine Friendly URLs by vBSEO 3.3.2

Contact Us - Archive - NGOHQ.com - NGOHQ.org - NGOHQ.net - Disclaimer - Top