_ultoa radix??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin Doyle

    _ultoa radix??

    Hi I just found this macro.
    I want to convert a dword to string using this _ultoa but I don't understand
    the radix part of the function.
    what value of radix should I use so as not to effect the value being
    converted?
    Cheers,
    Kevin.


  • Kevin Goodsell

    #2
    Re: _ultoa radix??

    Kevin Doyle wrote:
    [color=blue]
    > Hi I just found this macro.[/color]

    What macro?
    [color=blue]
    > I want to convert a dword[/color]

    No such thing in standard C++.
    [color=blue]
    > to string using this _ultoa[/color]

    No such thing in standard C++.
    [color=blue]
    > but I don't understand
    > the radix part of the function.
    > what value of radix should I use so as not to effect the value being
    > converted?[/color]

    Don't know. Not standard C++.

    It looks like you forgot to read the welcome message before posting.



    -Kevin
    --
    My email address is valid, but changes periodically.
    To contact me please use the address from a recent posting.

    Comment

    • Kevin Doyle

      #3
      Re: _ultoa radix??

      Would you please go and post in the moderated NG.
      You are quite annoying.

      "Kevin Goodsell" <usenet1.spamfr ee.fusion@never box.com> wrote in message
      news:Wm67b.3778 $Yt.1052@newsre ad4.news.pas.ea rthlink.net...[color=blue]
      > Kevin Doyle wrote:
      >[color=green]
      > > Hi I just found this macro.[/color]
      >
      > What macro?
      >[color=green]
      > > I want to convert a dword[/color]
      >
      > No such thing in standard C++.
      >[color=green]
      > > to string using this _ultoa[/color]
      >
      > No such thing in standard C++.
      >[color=green]
      > > but I don't understand
      > > the radix part of the function.
      > > what value of radix should I use so as not to effect the value being
      > > converted?[/color]
      >
      > Don't know. Not standard C++.
      >
      > It looks like you forgot to read the welcome message before posting.
      >
      > http://www.slack.net/~shiva/welcome.txt
      >
      > -Kevin
      > --
      > My email address is valid, but changes periodically.
      > To contact me please use the address from a recent posting.
      >[/color]


      Comment

      • Mike Wahler

        #4
        Re: [OT] _ultoa radix??

        Kevin Doyle <jo@fo.mo> wrote in message
        news:Gt67b.3095 7$pK2.51262@new s.indigo.ie...[color=blue]
        > Would you please go and post in the moderated NG.
        > You are quite annoying.[/color]

        Not nearly as annoying as those who post off-topic
        questions, top-post, and post the same message separately
        to more than one group instead of crossposting.

        I've answered this same question you posted to
        alt.comp.lang.l earn.c-c++ in that group.

        -Mike



        Comment

        • Andre Kostur

          #5
          Re: _ultoa radix??

          "Kevin Doyle" <jo@fo.mo> wrote in
          news:7c67b.3095 1$pK2.51201@new s.indigo.ie:
          [color=blue]
          > Hi I just found this macro.
          > I want to convert a dword to string using this _ultoa but I don't
          > understand the radix part of the function.
          > what value of radix should I use so as not to effect the value being
          > converted?[/color]

          I'm afraid you're going to have to look it up in your compiler's
          documentation. _ultoa is a platform-specific function. Although assuming
          that the implementor is sane, I doubt that any value passed in for radix
          would modify the input value (I'm not entirely sure what you mean by: "not
          to effect the value being converted"".

          Comment

          • Kevin Goodsell

            #6
            Re: _ultoa radix??

            Kevin Doyle wrote:
            [color=blue]
            > Would you please go and post in the moderated NG.
            > You are quite annoying.
            >[/color]

            Because I'm feeling exceptionally generous today, I will not killfile
            you just yet, nor will I notify your service provider's abuse department
            about your abusive and insistently off-topic messages. You have one more
            chance (though experience shows that people like you almost always blow
            such a chance). If you have a C++ question or issue, you may find me and
            the other members of this group to be a very valuable resource. But we
            don't respond well to trolling, off-topic posting, unwarranted insults,
            or poor netiquette.

            HTH. HAND.

            -Kevin
            --
            My email address is valid, but changes periodically.
            To contact me please use the address from a recent posting.

            Comment

            • Oliver S.

              #7
              Re: _ultoa radix??

              > ... nor will I notify your service provider's abuse department ...

              I think no abuse-department cares about this minior "abuse".

              Comment

              • Oliver S.

                #8
                Re: _ultoa radix??

                > Hi I just found this macro.

                _ultoa is not a macro.
                [color=blue]
                > what value of radix should I use so as not to effect the value being
                > converted?[/color]

                Use 10 for decimal output and 16 for hex-output.

                Comment

                • Kevin Goodsell

                  #9
                  Re: _ultoa radix??

                  Oliver S. wrote:[color=blue][color=green]
                  >>... nor will I notify your service provider's abuse department ...[/color]
                  >
                  >
                  > I think no abuse-department cares about this minior "abuse".[/color]

                  You're probably right, but in the past people with similar attitudes and
                  behavior have escalated their behavior to the point that it's quite
                  clearly in violation of the service provider's terms of service. I guess
                  we'll see what happens in this case.

                  -Kevin
                  --
                  My email address is valid, but changes periodically.
                  To contact me please use the address from a recent posting.

                  Comment

                  • E. Robert Tisdale

                    #10
                    Off Topic: _ultoa radix??

                    Kevin Doyle wrote:
                    [color=blue]
                    > I just found this macro.
                    > I want to convert a dword to string using this _ultoa
                    > but I don't understand the radix part of the function.
                    > What value of radix should I use
                    > so as not to effect the value being converted?[/color]

                    I see that you've met our off-topic cops
                    and other indigenous trolls.

                    I used Google



                    to search for

                    +"ultoa"

                    and found lots of stuff.

                    It isn't standard but implementations that do support it
                    require you to include cstdlib (or stdlib.h).
                    Good Luck and please don't hesitate to ask again
                    if you have any questions about C++.

                    Comment

                    • Stephen Howe

                      #11
                      Re: [OT] _ultoa radix??

                      > Not nearly as annoying as those who ...top-post

                      Yet bottom-posters fail to prune unnecessary verbiage - a much much more
                      grevious sin.
                      Better those who top-post and prune than bottom-post and no prune.

                      Stephen Howe


                      Comment

                      • Stephen Howe

                        #12
                        Re: _ultoa radix??

                        > Because I'm feeling exceptionally generous today

                        Yes, what an incredibly generous offer on your part. I am overwhelmed by
                        your magnaminity.
                        He has only posted 2 messages not half a dozen.

                        Stephen Howe


                        Comment

                        • Kevin Goodsell

                          #13
                          Re: [OT] _ultoa radix??

                          Stephen Howe wrote:[color=blue][color=green]
                          >>Not nearly as annoying as those who ...top-post[/color]
                          >
                          >
                          > Yet bottom-posters fail to prune unnecessary verbiage - a much much more
                          > grevious sin.
                          > Better those who top-post and prune than bottom-post and no prune.
                          >[/color]

                          I've almost never seen a top-poster prune.

                          Straight bottom-posting is not considered good, either. It's marginally
                          better than top-posting. The proper reply format is, of course, to leave
                          only the relevant context and place each section of the reply (perhaps
                          only one section) immediately below the section it pertains to.
                          "Bottom-posting" usually refers to the practice of quoting the entire
                          message and adding new text to the bottom.

                          -Kevin
                          --
                          My email address is valid, but changes periodically.
                          To contact me please use the address from a recent posting.

                          Comment

                          • Stephen Howe

                            #14
                            Re: _ultoa radix??

                            > > Yes, what an incredibly generous offer on your part. I am overwhelmed by[color=blue][color=green]
                            > > your magnaminity.[/color]
                            >
                            > I think I'd be insulted, if that were a word.[/color]
                            Swop 2nd n and m, I was typing fast.
                            [color=blue]
                            > It's half a dozen by my count.[/color]

                            Really? Google disagrees. It is 2 like I claimed. Check here in Google

                            You will only find 2 posts by Kevin Doyle on subject "_ultoa radix??",
                            exactly what I stated. Where are your 6 by Kevin Doyle?

                            Stephen Howe


                            Comment

                            • Tim Slattery

                              #15
                              Re: _ultoa radix??

                              "Kevin Doyle" <jo@fo.mo> wrote:
                              [color=blue]
                              >Hi I just found this macro.
                              >I want to convert a dword to string using this _ultoa but I don't understand
                              >the radix part of the function.
                              >what value of radix should I use so as not to effect the value being
                              >converted?[/color]

                              1. Don't use _ultoa, use the Format method of CString with the %u
                              format specifier

                              2. Don't post Windows or MS VC++ specific questions here. A much
                              better place is the microsoft.publi c.vc.* hierarchy hosted on the
                              msnews.microsof t.com server.

                              --
                              Tim Slattery
                              Slattery_T@bls. gov

                              Comment

                              Working...