Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a filetype
Message
De
05/09/2000 11:27:49
 
 
À
05/09/2000 10:17:51
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexique
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00412456
Message ID:
00412493
Vues:
18
>How can i create my own filetype? I want to 'encapsulate' a word doc and an avi file (or whatever) into a single file with its own extension, and later on open the file and see the file contents. I know i can acomplish this with a .dbf but the problem is that any person could open the file. With my own filetype only the propers functions will open the file. Any idea how can i do this?
>

No need for a special file type - you can embed or link an AVI in a Word document, and Word can manipulate it in the future. The only requirement is that an OLE Server (a program that publishes an OLE interface that can be defined in the registry) that handles AVIs will need to be present on each system.

You can see this by:

Go to Windows Explorer and find an AVI file

Right Click it and Copy it into the Clipboard.

Open a Word document.

Put some text in.

Right click and Paste the AVI into the Word document.

Save it.

Done.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform