Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining DLL information from inside
Message
From
25/02/1999 16:15:59
 
 
To
22/02/1999 13:26:40
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00190002
Message ID:
00191641
Views:
12
Here is what i did to test it.

** begin code **
o = NEWOBJECT("ee.Class1")
*o = NEWOBJECT("Class1")
_CLIPTEXT = o.GetName()

DEFINE CLASS Class1 AS CUSTOM OLEPUBLIC
PROCEDURE GetName
RETURN SYS(16)
ENDDEFINE

** end code **

I then put the prg into a project named ee and built a dll.

The is the result from calling the .GetName() Method.

'PROCEDURE .GETNAME D:\STANFORD\EE.DLL'

Hope this helps

Geno


>>Have you tried SYS(16). The name of the Dll is in there along with the procedure executing.
>>
>>Geno
>>
>>>I have a class that I compile into a DLL. From inside the class, I want a method that will return the verion number of the DLL that was set at build time. Getting the version number is easy using AGETFILEVERSION(). But, how do I get the name of the DLL?
>
>Yup, tried that one. It does not give the name of the DLL. I get the method and class library, but not the DLL.
Geno Prida
Watson Wyatt Worldwide
geno_prida@watsonwyatt.com
Previous
Reply
Map
View

Click here to load this message in the networking platform