Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows - No Disk Error
Message
De
10/09/2007 12:57:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01253449
Message ID:
01253458
Vues:
25
Looping the available drives is easy. If you mean it's the drive where executable is you can get root as:

addbs(JustDrive(application.servername))

Cetin

>I've had a feeling that's where my problem is. I've been just sending a "C:\" as the drive parameter.
>
>I was thinking about just sending the JUSTDRIVE(GetCommandLine()) as the drive. That "should" eliminate the need to loop through the drives, don't you think?
>
>Thanks,
>Kevin
>
>
>>>I've got an app with an activation "feature", using the HDD Serial Number as the unique identifier for the machine running the software.
>>>
>>>I'm using the GetVolumeInformation() function in the Win32API, which worked fine for my purposes.
>>>
>>>Then, I started getting support emails. A messagebox is popping up with the caption "Windows - No Disk", and a message of "Exception processing message".
>>>
>>>I pinned it down to the API call (the error is coming from there). I've searched all over for any information about the error, and it seems to only happen on machines with a media card reader installed. The error also seemed to have just started after a Windows Update back in April.
>>>
>>>Has anyone else seen this error message? If you have, do you know a workaround for it (other than "Don't use GetVolumeInformation()")?
>>>
>>>Thanks,
>>>Kevin Ragsdale
>>
>>Are you checking available local disks before making that call?
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform