Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Standalone EXE File
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
azndragon




PostPosted: Thu Dec 26, 2002 4:19 pm   Post subject: Standalone EXE File

Let's say I wanted to make my game into a standard exe file. Problem is, there are a lot of include statements, which require multiple files. Is there a way to include all my files into one exe file?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Dec 26, 2002 7:16 pm   Post subject: (No subject)

because of the way include works, it will compile into single file.

what include does is it places the whole file into that line where include is used... like a procedure, but you can't pass any values to it.

So unless I'm mistaken, if you compile your main file, it should work.

*otherwise you can just copy the file and replace include with the actual content of the file...
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
azndragon




PostPosted: Thu Dec 26, 2002 9:07 pm   Post subject: (No subject)

Wow, thanks a lot. I didn't think that would work, because I was kinda worried about the file size, but it works great! At least I can start sending it to my friends, and not have them steal my source or whatever.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: