Re: About Converting/Type casting from USHORT to PVOID.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Yes Sir, It is an io register.

regards,

sd

"Doron Holan [MS]" wrote:

> why would you want to treat a USHORT as a pointer? is it an io register?
>
> d
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "sdr" <sdr@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:0A15E6B3-A261-49ED-8492-777229D1572D@xxxxxxxxxxxxxxxx
> > Respected Sir,
> >
> >
> > I have defined variable "myvar" as USHORT myvar[2]; . I
> > have
> > a problem in converting the variable "myvar[0]" of type USHORT
> > to type-casting of PVOID type. I have tried converting through
> > following manner :-
> >
> > (PVOID) myvar[0]. But this doesn't work ? So, Now, What I want from you
> > is,
> > please some one tell me as to how can I safely convert the variable to
> > type
> > PVOID in
> >
> > correct and portable manner too ?
> >
> >
> > regards,
> >
> > sd
>
>
>
.



Relevant Pages