Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make and access a memory mapped file
Message
De
09/06/1999 13:13:29
 
 
À
09/06/1999 06:47:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00227797
Message ID:
00227996
Vues:
20
>Hello folks,
>
>In the old DOS days we could make virtual drives for tmps e.t.c. Can we do this now and how to do it during runtime (i mean create a file in memory from inside VFP and access the files from within VFP). More specifically I need to decompress a bmp from a cd in order to show it on a form. But as far as I know Fox needs a file to do that, she can not show a bmp which locates in memory (I don't want to use an activex, because I am going to put Fox controls on the bitmap). But this would take long if I decompress in a disk file and then show it. So the most easy solution is to use a memory disk ...
>

I'm not sure I understand your question - are you asking if VFP can put files on a RAM disk - if so, the answer is yes; both Win9x and WinNT can support RAM disks (Win9x still comes with a device driver the last I looked, and NT Ram disks are available from places like www.sysinternals.com; you might also want to check shareware sites like shareware.com to see what they have that might be more flexible about dynamic creation of drives.) Creating and destroying the RAM disk is done from outside of VFP; the native Win9x RAMDisk stuff is initiated from CONFIG.SYS; NT can be a bit more flexible in how and when it creates the RAM drive, but that's an implementations issue. Once it's there as a drive letter, VFP can use it.
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