IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Doc on August 04, 2006, 09:12:35 AM

Title: Resource Files
Post by: Doc on August 04, 2006, 09:12:35 AM
Haven't found anything specific about this, so I thought I'd ask...
I'd like to add a small text file to my console app as a resource and then read it back through the program. Is that do-able?
Assuming that this is possilble with a console app, I just need to understand out to get the data back from the exe file where it can be used.

Thanks,
-Doc-
Title: Re: Resource Files
Post by: Ionic Wind Support Team on August 04, 2006, 09:28:18 AM
Yes it is doable, just not easy at the moment ;)  Which reminds me to add some more resource functions.

You can add the text file to the resources in a project easy enough.  To extract them you'll need to use the API functions FindResource, LoadResource and LockResource.

I'll add a native function for the next update to read raw data from the programs resources.
Title: Re: Resource Files
Post by: Doc on August 04, 2006, 09:37:24 AM
Thanks!
...in the meanwhile I'll have a look at those API's.

-Doc-