Page 1 of 1
dev C++ help
Posted: Sat Feb 10, 2007 2:38 pm
by sniperwolf
i cant for some reason compile my work can any1 help me plz. i have a full version that came with a programming book that i bought.the author is jonathan s. Harbour and the book is "beginning Game Programming"
thx in advance i appreciate it,i really do

Posted: Sat Feb 10, 2007 2:59 pm
by Loonycgb
in c# some programs get automaticly compile protection that makes it so everytime u try to compile youll get a error
Posted: Sat Feb 10, 2007 4:18 pm
by sniperwolf
well im using a book as a guide so i dont see why i should have this problem like your stating.this book is in a step by step process so im doing it as the book states.i use my own code i type out and that didnt work so then i used the same code from the disk that i was able to use.and that still dosnt work.i get an error that says "unable to run program file".so.....now what?
Posted: Sat Feb 10, 2007 6:02 pm
by [cc]z@nd!
maybe uninstall and re-install the program, otherwise i'm not sure.
Posted: Sat Feb 10, 2007 6:16 pm
by sniperwolf
iv done that many times.well thers one other thing in the book it shows like a bunch of files but when i do it i only have to the projct and the source code but how do i get the header and resource files in there.thats what it shows in the book.is it cuz i dont have these files in the project when i try to compile it that it wont let me?
Posted: Sat Feb 10, 2007 7:02 pm
by a_Mammoth
What book are you using, cause I know that in the C++ for dummies book the int main() is screwed up, and you should just type int main() and not int main(blah blah blah)
Posted: Sat Feb 10, 2007 7:16 pm
by sniperwolf
no i dont have the dummies book i have Beginning Game Programming by jonathan s. harbour.its infurating me plz help before i suicide by wiffle ball bat

Posted: Sat Feb 10, 2007 7:17 pm
by SuperCommando
sniperwolf wrote:no i dont have the dummies book i have Beginning Game Programming by jonathan s. harbour.its infurating me plz help before i suicide by wiffle ball bat

That not even something to joke about
Posted: Sat Feb 10, 2007 7:19 pm
by sniperwolf
who's joking...
*edit*
ok so now iv figured out how to add actual files instead of adding just source code files and everything i have so far is header files, source code files then i have the source code itself in that file and i have resource files. iv done everything i can to get it to work correctly, what am i missing? does it need to be a certain file extension to compile or something im realy stuck here :\ .
this is the program im trying to compile and run:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nShowCmd)
{
MessageBox(NULL, "All your base are belong to use!",
"Hello World", MB_OK | MB_ICONEXCLAMATION);
}
*edit*
ok well no one is answering this and i know theres really smart ppl that can help me out on this so plz do.how about instead i ask: what belongs in the resourses and in the heading folders?