What's new

Calling all programmers!

glVertex3f

Crap Cracker
Well, I'll take code I write in dev-c++ and put it in MSVC++ and it just brings up random errors... stuff like undeclared functions, or stuff about end of file.

Its no biggie I just wondered if this was a common problem.
 
OP
Doomulation

Doomulation

?????????????????????????
Microsoft's compilers do sometimes not like dev-c++ code. At these times, few changes in necessary to make it compile. This probably has nothing to do with opengl.

EDIT:
I actually found out how to make MFC work with this bastard...
First off, you need another version of Visual Studio installed, because just as with win32, the mfc library and headers aren't shipped with this.
Secondly, you will need to edit some mfc headers. If you don't know what you're doing, then stop right here! And remember: As I have Visual Studio NET 2002 installed, I can only guide you through changing this!

Okay, let's begin :icecream:
First, you simply download the wizard I've put together for you. Extract the contents to the directory where you installed Visual Studio 2005 Express (NOT the VC subdirectory!). The paths are stored in the zipfile. You'll probably be asked to overwrite some files. Answer "yes." (Actually, I included the ability to create a win32 project as well as mentioned above.)

Now, open visual studio and use the mfc wizard to create a new project. Once it's done, you will need to add new paths. Before you add them, remember to replace the "$(VCDir)" part of each path to where your other visual studio version is installed. Note that the paths might vary a little on diffrent versions of visual studio! Go find the correct paths yourself!
So goto tools->options. Then select "projects and solutions" and "vc++ directories." Select includes from the combo and add these:

$(VCDir)\Vc7\include
$(VCDir)\Vc7\PlatformSDK\Include\prerelease
$(VCDir)\Vc7\PlatformSDK\Include
$(VCDir)\Vc7\atlmfc\include

Select libraries in the list and add these:

$(VCDir)\Vc7\lib
$(VCDir)\Vc7\PlatformSDK\lib
$(VCDir)\Vc7\atlmfc\lib

Then click OK and restart the IDE.
Now hit F7 to compile the project. You'll recieve a lot of compile errors. Double-click the first error.
At lines such as these, you'll want to add "typename" before the typedef. This is a change in the c++ language to conform the standard (explained in the help).
There are many compile errors such as these. You'll need to find and correct them all.

Lastly, the last error will complain about a copy constructor. At this one, you need to comment out the "template <>" part. I don't know what effects this will have, so be careful!

Now you're all set to compile the project =)

Btw, I think I retract what I wrote before... there seems to be three versions of this product... express (the free one), standard and professional. Win32 and MFC is missing in express, but not standard. Sneaky m$, very sneaky. But with this method, your previous mfc version will still compile with your new IDE.

This is all you need to compile win32 and mfc projects with the new IDE!
 

Top