Re: How to find the datatype of a particular variable... by Arkady
Arkady
Thu Mar 16 06:12:13 CST 2006
IMHO 1) is not what shahul wanted ( maybe I'm wrong , but he talked about
variables ), but 2) really nice if you meant
SymGetTypeInfo() ( tnx for such way )
Arkady
"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message
news:89CFB4C8-9C80-4F2B-A2DE-3E2AB8BE023D@microsoft.com...
> Well... if you promise to post only in relevant newsgroups from now on :)
>
> Option 1. Read in VC++ documentation on RTTI and typeid operator.
>
> Option 2. A poor man's reflection: compile your app with debug database
> (pdb)
> and use debug helper API :))
>
> --PA
>
>
>
> "shahul" wrote:
>> Thanks Arkady.
>>
>> Is it possible to implement in win32 console applicaiton? Please give me
>> the
>> way.
>>
>>
>> @ shahul.
>> "Daniel" <DanielV@vestryonline.com> wrote in message
>> news:OJKZ7MBSGHA.5468@TK2MSFTNGP14.phx.gbl...
>> > Would have been nice if you'd answered the question too lol use the
>> > GetType() method. And rightly said its one of the great things about
>> > .net
>> >
>> > "Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
>> > news:ORenClASGHA.4600@TK2MSFTNGP11.phx.gbl...
>> >> That exactly .Net Framework born for ( one of many reasons obviously
>> >> :) )
>> >> Arkady
>> >>
>> >> "shahul" <shahul@chellasoft.com> wrote in message
>> >> news:u%23JJNOASGHA.256@TK2MSFTNGP14.phx.gbl...
>> >>> Dear pals,
>> >>>
>> >>> I am developing an win32 console application, I need to find the data
>> >>> type
>> >>> of particular variable dynamically. Is it possible?
>> >>> Say for eg,
>> >>> declaring 'a' as integer, how can I find the data type of variable
>> >>> 'a'
>> >>> dynamically.
>> >>>
>> >>> Awaiting for your ideas.
>> >>>
>> >>> note: please ignore this, if it is not a relevant group.
>> >>>
>> >>> @Shahul.
>> >>>
>>