Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing Images in DLL
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00838445
Message ID:
00838498
Views:
16
>>I'm looking to convert a legacy app into VFP8. The app has hundreds of BMP images distributed with it. Some of these images are client-specific so I thought I'd put them into a DLL (container class holding image controls).
>>
>>When I build DLL and test it runs fine. If I then delete the original BMP files, no images are displayed. The images are included in the project.
>>
>>Anybody fallen over this one before? Or any solutions?
>>
>>TIA,
>
>Nigel,
>How are setting the Picture property of the image control? If you use the elipse button, VFP stored the path with the image. You can enclose the name of the image in quotes and VFP will use the search path to find the image. It won't store the path in the VCX.
>
>Ex.
>="mybmp.bmp"
>
>HTH.

I've identified that VFP stores the filename in the Picture property and only returns this. What I wanted was for VFP to return the image so that I can put this into another image control. Using the DLL as an image store.

I've worked around this by having a class library of image controls (one for each image) in another exe. Then I can use NewObject to create an instance of the image control (with NewObject you can specify application name that contains the object). I'm going to have a client-specific exe for each client anyway so can use this.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform