Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing an image in a DLL
Message
General information
Forum:
Visual Basic
Category:
Pictures and Image processing in VB
Miscellaneous
Thread ID:
00560019
Message ID:
00562709
Views:
19
The problem was in the declaration in the dll. I had the whole resource file down and it worked great in process. Out of process you must use the custom resource type and declare your function as stdPicture.

I have posted this to UT so others might get a very specific answer. My thanks to everyone who responded to the origional post.


>Hi!
>I have already sent my answer, but can't find it here (?).
>Take a look on:
>"Q124947 - INFO: Retrieving Palette Information from a Bitmap Resource" (load a bitmap using LoadResource());
>"Q194409 - SAMPLE: RESFILE.EXE Stores Any File Type in a Resource File" (load via temp file);
>MSDN->Books->Advanced Microsoft Visual Basic 5->Chapter 15->Inroduction->Meeting Reuse Requirements Effectively->"Using a ROOS" (resource only OLE server, load picture via method of OLE server).
>
>HTH,
>Alex
>
>>I want to store an image in a dll and later use that image in another application. I know how to use a resource file in an application but not how to get the image from the dll for application consumption.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Reply
Map
View

Click here to load this message in the networking platform