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
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?
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?
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)
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
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
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?