Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining names of '.BMP' files in the current EXE
Message
De
15/07/1999 15:25:45
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00241672
Message ID:
00241944
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform