Re: Win32Lib How To?
- Posted by Derek Parnell <ddparnell at bigpond.com> Sep 12, 2003
- 382 views
----- Original Message ----- From: "C. K. Lester" <cklester at yahoo.com> To: "EUforum" <EUforum at topica.com> Subject: Win32Lib How To? > > > 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. 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... 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. 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. I get around this issue by just distributing bitmaps with my applications. -- Derek