Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOpen() II
Message
 
À
14/07/1998 15:38:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00117265
Message ID:
00117300
Vues:
14
>>>When trying variations of the FOpen() command in the command window, it will except 0-12 as the second parameter, but only 0,1,2,10,11, and 12 are documented. Does anyone know what 3-9 are and if you can set fopen to open a file shared? Thanks.
>>
>>Joe,
>>
>>Even going back to FPD 2.5 these values aren't documented. I can't detect anything in the bit pattern that's helpful either. For example, bit 0 set being read, bit 1 write, etc. It obviously doesn't work like that. Further more, since the values have remained the same since the DOS days, it's unlikely that you can find any direct relationship between these parameters and the flags that are used by the Win32 function CreateFile() (which this probably maps to). So, in short, it looks like pretty much of a "test and guess" situation.
>
>Oh well. Thanks. I'll fool with them some and see what I come up with. Thanks again.

If you're trying to open a file in shared mode for reading or writing, you probably can do it via the API. I don't know how hard it would be to do it asynchronously, but I know it's out there.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform