1. Bernie's Resource Utility for WIN32LIB
- Posted by Alex Chamberlain <alex.chamberlain at tiscali.co.uk> Jan 21, 2006
- 536 views
- Last edited Jan 22, 2006
Is there any way of getting the library to import text files? IDR_ABOUT RCDATA DISCARDABLE "about.txt" That statement includes the file, but the program doesn't export it!?! Thanks, Alex
2. Re: Bernie's Resource Utility for WIN32LIB
- Posted by Bernie Ryan <xotron at bluefrog.com> Jan 22, 2006
- 571 views
Alex Chamberlain wrote: > > Is there any way of getting the library to import text files? > > IDR_ABOUT RCDATA DISCARDABLE "about.txt" > > That statement includes the file, but the program doesn't export it!?! > Alex: RCDATA is user defined data so there is not any way that win32eru would know how the user is going to use it. It is normally up to RCDATA use to be processed by the user. If you see something like this in the include file you can do this:
atom mIDR_ABOUT1 mIDR_ABOUT1 = allocate(560) poke(mIDR_ABOUT1, ucs(......................
to print it, do this. printf(1,peek({mIDR_ABOUT1,560}),{})
</eucode Bernie
My files in archive: w32engin.ew mixedlib.e eu_engin.e win32eru.exw
Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan }}}
3. Re: Bernie's Resource Utility for WIN32LIB
- Posted by Alex Chamberlain <alex.chamberlain at tiscali.co.uk> Jan 22, 2006
- 535 views
- Last edited Jan 23, 2006
Wouldn't it make more sense for your library to load it into a sequence and then make it global? Rather than just poking it info a sequence. Or just put it in a sequence in the first place, because that is what we have to do before we can do anything with it! Thanks, Alex
4. Re: Bernie's Resource Utility for WIN32LIB
- Posted by Bernie Ryan <xotron at bluefrog.com> Jan 22, 2006
- 561 views
- Last edited Jan 23, 2006
Alex Chamberlain wrote: > > Wouldn't it make more sense for your library to load it into a sequence and > then make it global? Rather than just poking it info a sequence. Or just put > it in a sequence in the first place, because that is what we have to do before > we can do anything with it! > Alex: The definition in a RES file for RCDATA is user data. There is no entry in the format of a RES file that indicates what is contained in that RCDATA entry so when I parse the RES file I have to assume it is a bunch of ramdom bytes; which most users will probably want poked into memory. The reason the user knows what it is because they wrote the RC file that was used create the RES file. Remember any user can always just edit the include file to if they have a special requirement. Bernie My files in archive: w32engin.ew mixedlib.e eu_engin.e win32eru.exw Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
5. Re: Bernie's Resource Utility for WIN32LIB
- Posted by Alex Chamberlain <alex.chamberlain at tiscali.co.uk> Jan 22, 2006
- 558 views
- Last edited Jan 23, 2006
My point is that if I create a res then convert it, I don't want to can it every time! The problem I have is that neither the size nor the mem handle is global and as such cannont be accessed by my program without me physically editing the file - I would edit your program myself, but its scrambled so I can't! Alex