i'm trying to create a pocket pc version of my desktop app, and I'm having
trouble with this code:

TCHAR x[3];

CPoint pt;
pt.x = atoi(x); <- This is the error

It is telling me that I can't use a TCHAR for the 'x'. I copied this code
directly from the desktop version of my app into the code for my pocket pc
app. What would be causing this?

thanks in advance,
ed

Re: trouple atoi by ed

ed
Fri May 28 09:40:57 CDT 2004

sorry about the bad spelling for the title. I just realized it

ed

"ed" <cteel04.notthis@hotmail.notthis.com> wrote in message
news:MaItc.1023$GG4.616@newssvr23.news.prodigy.com...
> i'm trying to create a pocket pc version of my desktop app, and I'm having
> trouble with this code:
>
> TCHAR x[3];
>
> CPoint pt;
> pt.x = atoi(x); <- This is the error
>
> It is telling me that I can't use a TCHAR for the 'x'. I copied this code
> directly from the desktop version of my app into the code for my pocket pc
> app. What would be causing this?
>
> thanks in advance,
> ed
>
>



Re: trouple atoi by Chris

Chris
Fri May 28 09:52:34 CDT 2004

Correct. You'rfe trying to use the ANSI version. Use the TCHAR version
instead:

_ttoi


--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com



"ed" <cteel04.notthis@hotmail.notthis.com> wrote in message
news:MaItc.1023$GG4.616@newssvr23.news.prodigy.com...
> i'm trying to create a pocket pc version of my desktop app, and I'm having
> trouble with this code:
>
> TCHAR x[3];
>
> CPoint pt;
> pt.x = atoi(x); <- This is the error
>
> It is telling me that I can't use a TCHAR for the 'x'. I copied this code
> directly from the desktop version of my app into the code for my pocket pc
> app. What would be causing this?
>
> thanks in advance,
> ed
>
>