David
Tue Aug 23 19:35:48 CDT 2005
Tim,
I posted this as some ER code a while back.. until it makes it into VFP
there is a way to fix this shortcoming. pull the object browser code out of
the xsource.zip file and make these minor mods:
We can drag the Constants item and get a dump of all the #defines. We can
NOT drag/drop the Enums item and get all of the enums dumped at one time.
In trvHierarchy.OLESetData change this if:
IF Left(THISFORM.odragnode.Text,9) == "Constants" OR
Left(THISFORM.odragnode.Key,7) == "__enum_"
to this:
IF Left(THISFORM.odragnode.Text,9) == "Constants" or ;
Left(THISFORM.odragnode.Text,5) == "Enums" or ;
Left(THISFORM.odragnode.Key,7) == "__enum_"
In the CreateConstantsCode method add this fragment to put the enum group
name into the all constants
if ( lnMode = 0 )
lcText = lcText + chr(13) + chr(10) + "* " + loEnum.Name + chr(13) +
chr(10)
endif
FOR lnCounter = 1 TO loEnum.Members.Count
this will add a comment providing the name of the enum group into the
output.
--
df - Microsoft MVP FoxPro
http://www.geocities.com/df_foxpro
"Tim Witort" <trw7at@ixdot.netcomdotcom> wrote in message
news:Xns96BBAD9626E27timwitortwrotethis@207.217.125.201...
>
>> Tim Witort wrote:
>>> I am writing a VFP8 application and am automating a
>>> third-party application that offers a COM interface. Unfortunately,
>>> the company that wrote this third-party application does not
>>> have a list of the enumerations used in their system. As a
>>> result, I can only determine enumeration values by using the
>>> VB object browser. This is very tediuous.
>>>
>>> Is there a tool around that can extract and print all of the
>>> enumerations in a COM server? I know this could probably be
>>> programmed using TLBINF32.DLL, but I was hoping a freeware tool
>>> already existed that can just be given the name of the COM server
>>> to dump all of the enumerations and their values.
>>>
>>> Does such a tool exist?