Hi Herman,
LoadLibrary and DeleteObject are not part of Delphi or Lazarus. They're in the Windows API. You can use LoadLibrary and FreeLibrary with Lazarus too. On Linux, use the DynLibs unit instead of Windows. On Windows, you're loading the bitmap from the .dll's resource and then displaying it in a TBitmap. You can use lazres to combine the .bmp's into a .lrs file and include this in the initialization section of the library with the $I directive. But as far as accessing these later... Thanks. -Phil ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 9:04 AM To: [email protected] Subject: Re: [lazarus] Please help me with DLL's! Sorry Vincent - the "obviously" should not have been used in that sentence! The problem is that "DeleteObject" and "LoadLibrary" of Delphi 1 was very much for Windows and not supported in Delphi 7 and Lazarus. Herman Ohlhoff Vincent Snijders <[EMAIL PROTECTED]> 2007/08/20 02:53 PM Please respond to [email protected] To [email protected] cc Subject Re: [lazarus] Please help me with DLL's! [EMAIL PROTECTED] schreef: > > Here is the situation: > > I used Delphi to created an application that uses many pictures, so I > put all the pictures in a DLL. > > <snipped code> > This code obviously does not work in Lazarus! Just being naive, I probably don't know the answer. Why "obviously"? Vincent _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
