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.

Re: How to find the datatype of a particular variable... by Arkady

Arkady
Wed Mar 15 02:20:10 CST 2006

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.
>
>
>



Re: How to find the datatype of a particular variable... by Daniel

Daniel
Wed Mar 15 03:31:25 CST 2006

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.
>>
>>
>>
>
>



Re: How to find the datatype of a particular variable... by shahul

shahul
Wed Mar 15 06:29:47 CST 2006

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.
>>>
>>>
>>>
>>
>>
>
>



Re: How to find the datatype of a particular variable... by pavel_a

pavel_a
Wed Mar 15 06:56:31 CST 2006

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.
> >>>
>

Re: How to find the datatype of a particular variable... by Arkady

Arkady
Wed Mar 15 06:56:13 CST 2006

AFAIK you can't :(
Arkady
"shahul" <shahul@chellasoft.com> wrote in message
news:%23vWkhwCSGHA.1688@TK2MSFTNGP11.phx.gbl...
> 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.
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: How to find the datatype of a particular variable... by shahul

shahul
Thu Mar 16 02:19:52 CST 2006

Thanks everyone.

"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.
>> >>>
>>



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.
>> >>>
>>