RE: jordahs resource kit,
- Posted by totorangi at hotmail.com Dec 12, 2002
- 477 views
Thanks for the offer. The problem with rtfs in Resource files is now fixed, or at least sidestepped. It must have been something to do with my WinMe box as I've now tried it on a win2k box and it works fine. In the end I probably wont use the resource file as there are too many other things that can't be included. My wish list for a Resource kit for use with win32lib would include; .wav files as used by playSound .ico files as used by addIcon and setIcon .bmp files as used by setBitmap as well as .rtf and .txt of course. Took a look at your base64 - seems like it does the above but are there any instructions how to reference it in programs. e.g. how does one extract the ico from the include file sequence so as to use it in addIcon. Tks Rangi jordah at btopenworld.com wrote: > hi, > Sorry, i didn't finish this but what u are asking is easy. i'll code it > for > u later. What do u want , your program to load the rtf data and place it > into a Rich Edit? U could still use EDS. maybe you want it bound to your > final exe. ok, tell me exactly what u want to do then i'll help u. > > Also, i made a base64 encoder which can convert any data to a valid > euphoria > sequence and it makes an include file. > > The data in the sequence is converted to base64 so that there are no > errors > when binding with the interpreter. check it out... > > Jordah Ferguson. > > ----- Original Message ----- > From: <totorangi at hotmail.com> > To: "EUforum" <EUforum at topica.com> > Sent: Wednesday, December 11, 2002 9:19 PM > Subject: RE: jordahs resource kit, > > > > Found the following while searching for info on using resource files. > > It sounds like a really worthwhile enhancement but can't find it in the > > archive so was wondering if it got finished. > > > > I'm currently trying out David Cuny's Resource Binder but can't make it > > work for including .rtf files. MAKERES adds the .rtf files into the > > resource, but rOpen fails to find them. Any known problems here ? > > > > Tks > > Rangi > > > > jordah ferguson wrote: > > > > > > Hi all, > > > > > > I am creating a new interface to David Cuny's resource binder for > > > compatibility with win32lib for almost unlimited > > > resources. David Cuny only added rReadBmp() which made many people think > > > > > > that his resource kit was for > > > only BMP files. So i have decided to extend his resource kit for win32 > > > applications and most importantly > > > win32lib applications. > > > > > > 1) I have added BMP read from resources using an enhanced > > > loadBmpFromFile2(). it is about 50% faster than > > > D.Cunys.This was already done by Wolf, but wolf didn't do much about > > > memory management. i use trackObject() > > > to tag resources freeing memory. > > > 2)I have added loading of AVI files from resources. > > > 3)I have added loading of WAV files from resources. > > > > > > all the above routines load resources directly from resources to memory. > > > > > > this makes them lightning fast. The main reason > > > i wrote this email was about addition of the ICON interface. At the > > > moment, the only method working is, > > > i'm loading the icons from the resources straight to temporary files > > > from which the icons are loaded to memory > > > using extractIcon, the technique is fast, atleast faster than Andrea > > > Cinis it takes 3.04 seconds to load > > > 39 icons (total 106 kB) on a 486 machine. This might sound reasonably > > > fast but i know it is still terribly slow. > > > i read something in the win32hlp saying you could use > > > CreateIconIndirect,GetIconInfo and ICONINFO structure > > > to load from icon data in memory. i have tried it and it fails. > > > ----Long Intro > > > Please tell me how to create icons from data in memory? > > > Thanx Jordah Ferguson > > > jorfergie03 at yahoo.com > > > > > > --Processed and saved using: Cirrus Mail ver 0.2a > > > > > >