Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
COnverting CString to Unsigned short
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
tezu
New Member
Join Date:
Dec 2008
Posts:
39
#1
COnverting CString to Unsigned short
Mar 23 '10, 02:34 AM
Hi all,
'
How can i convert a cstring to unsigned short
Thanks in advance :)
whodgson
Contributor
Join Date:
Jan 2007
Posts:
542
#2
Mar 23 '10, 05:24 AM
Give an example of the type of cstring you wish to convert.
Comment
Post
Cancel
tezu
New Member
Join Date:
Dec 2008
Posts:
39
#3
Mar 23 '10, 05:34 AM
this may be one of the string 0x720
Comment
Post
Cancel
weaknessforcats
Recognized Expert
Expert
Join Date:
Mar 2007
Posts:
9214
#4
Mar 23 '10, 03:51 PM
You can use atol. BUT you are responsible that the string values will fit in an unsigned short.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment