![Stdafx.h dev c++ Stdafx.h dev c++](/uploads/1/2/6/8/126885286/514271465.png)
Hi, friends!
So, I'm making the jump from console C++ to Windows programs, and actually having a lot of fun with that! But my method is, to use my Beginner's edition VC++ to compose the program, and when it's 'done', I switch to the free Bloodshed Dev C++ compiler (because the VC always puts that annoying dialog box you have to dismiss before the program will run, the one that says you can't release your program to the public, end-user-liscence blah,blah).
Usually, I manage OK with finishing a project in Dev that started in VC, but this time I have a dialog-based program that includes <stdafx.h>, which in turn includes five other afx*.h files, too.
Dev C++ throws a fit about this. Even after I copied every relevent header over to the Dev C++'s Include directory, it STILL complains that it can't find the headers!
Clue #1: This application used MFC wizard alot while it was a Microsoft project. Handy for adding all those bells and whistles, but does that doom it as far as Dev C++ is concerned?
Visual C allows you to define several ways of setting up precompiled header files. The most common is to enable it for ALL source files at the project configuration level, Under Configuration Properties/C/Precompiled Headers, setting 'Precompiled Header', select 'Use'. The same location, setting 'Precompiled Header File', is usually 'stdafx.h'. Free download page for Project C OPENGL 3D FUNCTIONS program's stdafx.h.This is a C program which includes OpenGL library glut.h. By the program you are able to draw 6 different 3D functions. Program also has OpenGL functions that provides you to rotate the graphics.
Stdafx.h Dev C++
Clue #2: I have noticed multiple repeat includes in different files of the project. Microsoft seemed happy with that, and I assumed everything was guarded by #ifndef statements. But do they only work for Visual C++?
Stdafx C++
Someone told me once, 'Just wait until you get linker errors!' I see what he was talking about, now...