Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining names of '.BMP' files in the current EXE
Message
From
15/07/1999 15:25:45
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00241672
Message ID:
00241944
Views:
13
>I want to allow users to select a 'BMP' file from those embedded in the currently running EXE.
>
>How can I programatically determine the names of 'BMP' files included in the currently running EXE ?

I can think of a couple of possibilities, neither wonderful:

1. Create a program that can open your .PJX as a table, and write out the .BMP file names to another table (BMPFiles.DBF). Run this program just prior to compiling your app, and include this table in your .EXE when you build it.

2. The FILE() function will report .T. if it can find a file in the .EXE. If you use a naming convention with the .BMP files, by callling FILE() in a loop you might be able to determine which ones are present and which ones aren't.

There probably is a more elegant way to do this (maybe in Win32API). I'm thinking back to the old ICONMOVR program that let you push icons around between files.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform