1. Bernie's Resource Utility for WIN32LIB

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

new topic     » topic index » view message » categorize

2. Re: Bernie's Resource Utility for WIN32LIB

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}),{})

to loaded it into a sequence. sequence s s = 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 }}}

new topic     » goto parent     » topic index » view message » categorize

3. Re: Bernie's Resource Utility for WIN32LIB

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Bernie's Resource Utility for WIN32LIB

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: Bernie's Resource Utility for WIN32LIB

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu