Re: _ecvt, _gcvt and _fcvt problem




Hi,

The question is...Do you understand what Robert
told you?

If those don't work for you, you could try using
_stprintf / sprintf / swprintf


Almon B. Strowger
KOOK Pocket Software


"Thrax" <sefer.kilic@xxxxxxxxx> wrote in message
news:O57loMITFHA.2812@xxxxxxxxxxxxxxxxxxxxxxx
> char *res;
> double sef=0.08
> _gcvt(sef , 3 , res);
>
> Above function does not work properly.
> After execute function res must be "0.08", but it doesn't.
> Please try, you'll understand what I'm saying.
>
>
> <r_z_aret@xxxxxxxxxxxx> wrote in message
> news:5og271h5ldd79t0ktiperorpc3spkuvk9c@xxxxxxxxxx
> > On 28 Apr 2005 05:18:55 -0700, sefer.kilic@xxxxxxxxx (Thrax) wrote:
> >
> >>Sory maybe this is a general c++ question, not evc++ question.
> >>But I have problem about conversion double to string. When I use small
> >>numbers to conversion my strings allways whitout zeros.
> >
> > I don't use these functions. But the documentation I have says they
> > each return a char string. That might well be a problem, depending on
> > how you use them, because Windows CE is heavily biased towards WCHAR
> > strings. In particular, if you used a cast to assign the value to a
> > WCHAR, you will likely see the symptom you describe. If that is the
> > problem I strongly recommend taking some time to learn about UNICODE.
> > One good way is to use google to search for
> > UNICODE
> > in this newsgroup.
> >
> >
> >>gcvt(0.1,2,res);
> >>res=1
> >>
> >>gcvt(0.08,3,res);
> >>res=8
> >>
> >>
> >>
> >>I can not understand where is problem, or what can I do by-pass this
> >>problem.
> >>
> >>
> >>I tried all other functions (ecvt and fcvt), also there is same
> >>problem all of them.
> >>
> >>
> >>Regards
> >>
> >>Sefer KILIC
> >
> > -----------------------------------------
> > To reply to me, remove the underscores (_) from my email address (and
> > please indicate which newsgroup and message).
> >
> > Robert E. Zaret, eMVP
> > PenFact, Inc.
> > 500 Harrison Ave., Suite 3R
> > Boston, MA 02118
> > www.penfact.com
>
>


.



Relevant Pages

  • Re: String conversion
    ... I must retrieve this string value but I've a problem because the string ... char DataBuffer; ... Windows CE is _heavily_ biased towards UNICODE. ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: _ecvt, _gcvt and _fcvt problem
    ... >But I have problem about conversion double to string. ... >numbers to conversion my strings allways whitout zeros. ... problem I strongly recommend taking some time to learn about UNICODE. ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Tranfering unicod charcters in Socket programming!
    ... You are telling about conversion b/w MBCS to Unicode. ... If this is not possible Shall I try with string to wstring ... int SendStringAsUnicode ...
    (microsoft.public.win32.programmer.networks)
  • Re: using structs like BROWSEINFO and OPENFILENAME (string members
    ... your discussion of unicode ... vs ansi reminded me to recheck my typelib and found a couple of errors. ... > is declared as string, the other is declared as long. ...
    (microsoft.public.vb.winapi)
  • Re: Tranfering unicod charcters in Socket programming!
    ... As you said I have to use std::wstring for unicode characters .But ... std::string object, which is a wrapper over ANSI string. ... int CParser::RetrieveCmd(string strRecvbuf, string* strCmd, ... bytesRecv - is the number of bytes. ...
    (microsoft.public.win32.programmer.networks)