473,414 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

_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.
Jul 19 '05 #1
18 4165
Kevin Doyle wrote:
Hi I just found this macro.
What macro?
I want to convert a dword
No such thing in standard C++.
to string using this _ultoa
No such thing in standard C++.
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?


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.

Jul 19 '05 #2
Would you please go and post in the moderated NG.
You are quite annoying.

"Kevin Goodsell" <us*********************@neverbox.com> wrote in message
news:Wm****************@newsread4.news.pas.earthli nk.net...
Kevin Doyle wrote:
Hi I just found this macro.


What macro?
I want to convert a dword


No such thing in standard C++.
to string using this _ultoa


No such thing in standard C++.
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?


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.

Jul 19 '05 #3
Kevin Doyle <jo@fo.mo> wrote in message
news:Gt*******************@news.indigo.ie...
Would you please go and post in the moderated NG.
You are quite annoying.


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.learn.c-c++ in that group.

-Mike

Jul 19 '05 #4
"Kevin Doyle" <jo@fo.mo> wrote in
news:7c*******************@news.indigo.ie:
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?


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"".
Jul 19 '05 #5
Kevin Doyle wrote:
Would you please go and post in the moderated NG.
You are quite annoying.


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.

Jul 19 '05 #6
> ... nor will I notify your service provider's abuse department ...

I think no abuse-department cares about this minior "abuse".
Jul 19 '05 #7
> Hi I just found this macro.

_ultoa is not a macro.
what value of radix should I use so as not to effect the value being
converted?


Use 10 for decimal output and 16 for hex-output.
Jul 19 '05 #8
Oliver S. wrote:
... nor will I notify your service provider's abuse department ...

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


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.

Jul 19 '05 #9
Kevin Doyle wrote:
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?


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

I used Google

http://www.google.com/

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

Jul 19 '05 #10
> 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
Jul 19 '05 #11
> 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
Jul 19 '05 #12
Stephen Howe wrote:
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.


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.

Jul 19 '05 #13
> > Yes, what an incredibly generous offer on your part. I am overwhelmed by
your magnaminity.
I think I'd be insulted, if that were a word.

Swop 2nd n and m, I was typing fast.
It's half a dozen by my count.


Really? Google disagrees. It is 2 like I claimed. Check here in Google
http://groups.google.com/groups?safe...ltoa&lr=&hl=en
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
Jul 19 '05 #14
"Kevin Doyle" <jo@fo.mo> wrote:
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?


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.public.vc.* hierarchy hosted on the
msnews.microsoft.com server.

--
Tim Slattery
Sl********@bls.gov
Jul 19 '05 #15

Tim Slattery <Sl********@bls.gov> wrote in message
news:vt********************************@4ax.com...
"Kevin Doyle" <jo@fo.mo> wrote:
Hi I just found this macro.
I want to convert a dword to string using this _ultoa but I don't understandthe radix part of the function.
what value of radix should I use so as not to effect the value being
converted?


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.


Please don't post Windows or MS specific answers either.
'CString' is not part of C++.

-Mike


Jul 19 '05 #16
Stephen Howe wrote:
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.

I agree in principle that many people (including some regulars here) do
a poor job of trimming. However, I've seldom seen a top-poster that
trimmed anything.


Brian Rodenborn
Jul 19 '05 #17
Stephen Howe wrote:
Really? Google disagrees. It is 2 like I claimed. Check here in Google

He posted to more than one thread.


Brian Rodenborn
Jul 19 '05 #18
Default User wrote:
Stephen Howe wrote:

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


He posted to more than one thread.


He also posted using more than 1 name.

http://groups.google.com/groups?selm...news.indigo.ie
http://groups.google.com/groups?selm...news.indigo.ie
http://groups.google.com/groups?selm...news.indigo.ie
http://groups.google.com/groups?selm...news.indigo.ie
http://groups.google.com/groups?selm...news.indigo.ie
http://groups.google.com/groups?selm...news.indigo.ie

For what it's worth Stephen, I apologize if I've offended you. My
tolerance for people who show no respect for the group is low, and I
tend to show little or no respect for them.

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

Jul 19 '05 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: | last post by:
Hi, What libraries does C# have for UUEncoding a file? Thanks
7
by: Foodbank | last post by:
Hi everyone. I'm having trouble with this radix sorting program. I've gotten some of it coded except for the actual sorting :( The book I'm teaching myself with (Data Structures Using C and...
2
by: Foodbank | last post by:
Hi everyone, I'm having trouble implementing a supposedly simple Least Significant Digit first Radix Sort. The book I'm using gave me somewhat of a template that I touched up (below), but I'm...
1
by: Foodbank | last post by:
Hi, I'm currently teaching myself C data structures in preparation for a job transition and I've just passed the point in which radix sorting was covered in my book. I've recently finished a...
3
by: Tracey | last post by:
I'm learning C++ and was stuck when writing code to convert a negative decimal number string to a hexdecimal number. For example, suppose the function interface is defined as: int atoi( const...
1
by: crimson08 | last post by:
does anyone know how to use radix sorting in a linked list???
0
by: Nick Keighley | last post by:
On Oct 25, 1:50 pm, Eric Sosman <esos...@ieee-dot-org.invalidwrote: since the pointer indicates the "last" digit. It indicates how many digits there are. I'm guessing that N is just some large...
8
by: tejas2991 | last post by:
could someone please gimme the main code for "radix sort" using stack
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.