>>
>>I've been using it with OLE public classes (DLL's) with no problem. Can you post the line of code calling AGetFileVersion?
>
>I tested it in the command prompt. I do not use a Dll, but an exe file.
>IF AGETFILEVERSION(laArray,"Projects\Framewrk\Upgrade.EXE") > 0
> lcFileVersion = laArray[4]
>ENDIF
>
>I tested it multiple times, changing the OLE settings of the class and compile the exe, and it always gives the same result: class = Ole public, no version information (returns 0), class not ole public, return 15 and version info is correct.
Try reading the version with _VFP.Servername instead of the path to your executable, the relative path may not be evaluating properly at runtime.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement