|
Post by Michael Sync on Nov 21, 2005 9:10:25 GMT -5
Is there any function as like as System.Attribute and System.Reflection? I like to read all properties, methods from exe written in VB6.
Best Regards, Michael Sync
|
|
|
Post by Kelly Ethridge on Nov 21, 2005 13:24:55 GMT -5
There is no way to extract the methods and properties from within a standard VB6 application. If the application is an ActiveX DLL, OCX, or ActiveX EXE then you could investigate the contents. That would require the use of the TLBINF32.DLL. Under your project references it would be shown as 'TypeLib Information'.
VBCorLib does not support any kind of reflection that you are asking about. There are just certain limitations to what can be done with a VB6 application.
|
|
|
Post by Michael Sync on Nov 21, 2005 22:13:23 GMT -5
Thank you. Kelly. How about System.Attributes?
|
|
|
Post by Kelly Ethridge on Nov 23, 2005 2:54:53 GMT -5
Hello,
I'm sorry, but VB6 just doesn't have the ability to support meta-data to tag methods and properties. So there is no equivalent to System.Attribute available for VB6.
Kelly
|
|
kwhitefoot as guest
Guest
|
Post by kwhitefoot as guest on Dec 9, 2005 6:30:25 GMT -5
>I'm sorry, but VB6 just doesn't have the ability to support meta-data to tag methods and properties That's not true. Each property and method can be tagged with several attributes. They are a pain to use though because you can't see them in the IDE and they aren't copied when you cut and paste code. The description attribute is displayed by the Object Browser.
|
|
|
Post by Kelly Ethridge on Dec 9, 2005 19:32:24 GMT -5
You're absolutely right!
Kelly
|
|