Re: Win32Lib How To?
- Posted by "C. K. Lester" <cklester at yahoo.com> Sep 12, 2003
- 378 views
> > Okay, I ran a Win32Lib proggie on another PC and it complained about not > > finding a bmp file in a particular folder. When I created the window, I had > > assumed that the graphic was somehow made a part of the whole thing and > > wasn't required as an external file. So, how would I go about adding it to > > my program so that it is included automatically, without the need for a > > separate file? > > I assume by "When I created the window" you really mean 'when you ran > Bind for the application' because Windows are created at runtime, and you > seem to be talking about distributing your application - so I assume you are binding it. I really meant, "When I created this window using the IDE and put a graphic on it, I assumed that the graphic would be made an intrinsic part of the window itself..." [Judith, maybe you can work this out somehow, such that when an image is placed on a window it will be created as a sequence resource or something so that the original BMP is not required as a separate file...] I don't ask for much! :) > Anyhow, if you application specifically references a bitmap file in > your code then you need to supply that bitmap when you distribute > the program. This is the same with all programs whether they are > written with win32lib or Delphi or VB or whatever... Yeah, but I don't want to do that. It's a simple program with a start-up title screen... > If you don't wish to do this, you need to convert the bitmap into an > XPM format and then embed that in you code, which would then use > it rather than the original bitmap file. This only works for bitmaps up to 256 colors. That's what I thought and just needed confirmation. > Unfortunately I don't have any utilitities to do this sort of conversion > of bitmaps to XPM format. Maybe somebody else can help there or > maybe even suggest a better method of doing this. Yeah, does anybody got something for this? I'm going to check the library, 'cuz I know somebody has a BMP to sequence program out there. > I get around this issue by just distributing bitmaps with my applications. Well, I also distribute this program on a floppy disk and need all the space I can get... :)