Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Including BMPs & ICOs in Project
Message
From
10/02/1997 01:49:01
Narendra Lilaramani
Gentech Business Machines Ltd
Ahmedabad, India
 
 
To
09/02/1997 23:36:51
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00019467
Message ID:
00019821
Views:
36
>>>>>I have built an EXE. In some of the forms I am using BMPs & ICOs for Image and Drag and Drop controls. During development I gave the exact loaction for the image control. ie "C:\app\user.bmp". Now while creating a distributed EXE I simply want to include these BMPs & ICOs in my EXE and also I don't want to give exact loaction of BMP. Because BMP is now going to be included in EXE. So what should I give in the "picture" property of an image control?
>>>
>>>Let it as you have it now. When you include a bmp in your exe, the app will find your pictures. This is solved internally by FoxPro.
>>>
>>>>As far as I know that if you include your BMPs & ICOs in your EXE, it will grow bigger which means more time to load the application.
>>>>Right?
>>>
>>>It's true that your exe will grow. But there's a BIG advantage: your exe will always find all those little bmp files. I have an extensive experience with "inventive" clients who decide to delete file/subdirectories because they never use them. Starting with the system directory from Windows (it's not useful since I never use it, isn't it) and ending with "del *.bmp" because they have read somewhere that bmp it's not the most economic image file type.
>>>
>>>So, my advice: always include all the files you need, except those that must be modified at runtime. Even for these files, consider the idea of working with temporary files at runtime. (You can always make a temporary copy of any file included into an exe).
>>>
>>>Vlad
>>
>>Since we having netware environment, I have no problems with the clients because I set these type of directories as READ ONLY.
>
>This means you never had to deal with a network administrator who really "cares" about his network.
>
>But I agree: it depends a lot of the type of app your developing/distributing. Sometimes you may prefer to not include everything into exe.
>Vlad

OK. Got yr conversation. Now back to the problem.I am using VFP3.0
I have included BMPs & ICOs in my EXE. There are two instances I want to describe
1) When the form runs, I load my applications startup with a picture control, which refernces to D:\appdir\app.BMP. This runs perfectly from th
my PC. But on some PCs it is showing blank.
2) I reference to two different ICOs while using Drag & Drop operation. This also works perfectly on my PC. But on some PCs it doesn't pick up that ICO.
Now I have noticed that if a PC has D: drive then it works OK. But if the PC does not have D: drive, it will not. Also when some BMPs refer originally to Network drive & if Network is not loaded it happens.
Did any of you have faced such problems??

Narendra
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform