Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getvolume - too large
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Getvolume - too large
Divers
Thread ID:
00392107
Message ID:
00392107
Vues:
49
I use the prg below without problem

I some computers the variable ser is
returning a confuse value like this:

+455-323.22

I suppouse its the some error that
we get in calculators machines when
digts overflow

How can I prevent this and get the entire number
withou + . - (only numbers )

Thanks


Moises




#DEFINE MAX_FILENAME_LEN 256
local ser,i,j,s,s2
DECLARE integer GetVolumeInformation in Win32API;
string lpRootPathName,;
string lpVolumeNameBuffer,;
integer nVolumeNameSize,;
integer @lpVolumeSerialNumber,;
integer @lpMaximumComponentLength,;
integer @lpFileSystemFlags,;
string lpFileSystemNameBuffer ,;
integer nFileSystemNameSize
store 0 to ser,i,j
store space(128) to s,s2
x=GetVolumeInformation("C:\",s,MAX_FILENAME_LEN,@ser,@i,@j,s2,MAX_FILENAME_LEN)
Répondre
Fil
Voir

Click here to load this message in the networking platform