April 30, 2024, 06:23:10 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Resource Files

Started by Doc, August 04, 2006, 09:12:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Doc

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-

Ionic Wind Support Team

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.
Ionic Wind Support Team

Doc

Thanks!
...in the meanwhile I'll have a look at those API's.

-Doc-