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

Username:   Password: 
 RegisterRegister   
 Make and exe with my program in it?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kingghaffari




PostPosted: Thu May 26, 2011 6:05 pm   Post subject: Make and exe with my program in it?

Hey guys!
I have a turing program that's been compiled into an exe.
The program uses pictures and sound so those are in separate folders. is there anyway to put my exe and the folders into another exe?
When that exe is double clicked it runs the exe inside and the folders are used from inside?

Thanks in advance!
Sina
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Thu May 26, 2011 6:49 pm   Post subject: RE:Make and exe with my program in it?

Im assuming that you use something like:
Turing:

var pic : int := Pic.FileNew ("C:/My Pictures/....")

That's not necessary. You can actually call a picture just with the name, as long as it's in the same folder as the turing file:
Turing:

var pic : int := Pic.FileNew ("picture.jpg")

That way you can save all your pictures and music in one file, and call them all by name in your program. Much simpler.
kingghaffari




PostPosted: Thu May 26, 2011 6:55 pm   Post subject: Re: Make and exe with my program in it?

Hey Raknarg,
nah the program has its own folder which has the picture folders and music folders inside.

Game Folder
-Game File.exe
-Picture Folder
-Music Folder

i want to turn that into

Game Package.exe
-Game File.exe
-Picture Folder
-Music Folder

So that when i run Game Package.exe it will run Game File.exe from inside of it.
Raknarg




PostPosted: Thu May 26, 2011 7:34 pm   Post subject: RE:Make and exe with my program in it?

Oh, I see. Well, I don't beleive Turing has the capabilities to do any of that. I've seen some pretty complex turing games, and they've never done that. So I'm going to venture to say No, although I may be wrong.
Raknarg




PostPosted: Thu May 26, 2011 7:35 pm   Post subject: RE:Make and exe with my program in it?

Or in other words, Turing's only capable of packaging the code.
kingghaffari




PostPosted: Thu May 26, 2011 8:14 pm   Post subject: Re: Make and exe with my program in it?

I don't need turing to do it.
Any program that can compress my files into an exe and run them without extracting them would be amazing!
That way my program will be reduced to one file Razz
Raknarg




PostPosted: Thu May 26, 2011 8:19 pm   Post subject: RE:Make and exe with my program in it?

Ah.. well, my knowledge of exe's has run dry Razz
mirhagk




PostPosted: Thu May 26, 2011 10:27 pm   Post subject: RE:Make and exe with my program in it?

If you want I can make a program that will compile the pictures into a color array or something, so that it will be a turing program, and can be compiled then into an exe
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: