dev C++ help

Off topic chat. Basically anything that doesn't concern halo or halo modding can go here.
Post Reply
sniperwolf





Posts: 248
Joined: Wed Jun 28, 2006 8:05 pm
Location: The Matrix...duh

dev C++ help

Post 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 :)
Image
User avatar
Loonycgb
Readers Club





Posts: 69
Joined: Mon Feb 05, 2007 1:27 pm
Contact:

Post by Loonycgb »

in c# some programs get automaticly compile protection that makes it so everytime u try to compile youll get a error
Image
sniperwolf





Posts: 248
Joined: Wed Jun 28, 2006 8:05 pm
Location: The Matrix...duh

Post 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?
Image
User avatar
[cc]z@nd!




Literarian 500

Posts: 2297
Joined: Tue May 04, 2004 1:52 pm
Location: michigan

Post by [cc]z@nd! »

maybe uninstall and re-install the program, otherwise i'm not sure.
sniperwolf





Posts: 248
Joined: Wed Jun 28, 2006 8:05 pm
Location: The Matrix...duh

Post 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?
Image
a_Mammoth





Posts: 9
Joined: Sat Feb 03, 2007 4:47 am

Post 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)
sniperwolf





Posts: 248
Joined: Wed Jun 28, 2006 8:05 pm
Location: The Matrix...duh

Post 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 :)
Image
User avatar
SuperCommando





Posts: 448
Joined: Thu Jan 04, 2007 1:53 pm
Location: Florida!
Contact:

Post 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
Image
^ Click to get to the coolest site ever!
sniperwolf





Posts: 248
Joined: Wed Jun 28, 2006 8:05 pm
Location: The Matrix...duh

Post 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?
Image
Post Reply