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
String to RWCString
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
ManishaJiwane
New Member
Join Date:
Dec 2007
Posts:
2
#1
String to RWCString
Dec 24 '07, 12:42 PM
Hi
How can I convert String to RWCString in C++ program
Manisha
sicarie
Recognized Expert
Specialist
Join Date:
Nov 2006
Posts:
4677
#2
Dec 24 '07, 04:05 PM
Pass it the location of the string.
http://www2.roguewave.com/support/docs/leif/sourcepro/html/toolsref/rwcstring.html
Comment
Post
Cancel
ManishaJiwane
New Member
Join Date:
Dec 2007
Posts:
2
#3
Dec 26 '07, 01:02 PM
Originally posted by
sicarie
Pass it the location of the string.
http://www2.roguewave.com/support/do...rwcstring.html
Hi
I tried in this way :
string str1="name";
RWCstring value;
value(str1);
The above code is giveing error
"Error: Could not find a match for RWCString::oper ator()(std::str ing )"
I also intialised it the string RWCstring value(str1) , but is still not working
please suggest me some way to do this.
Comment
Post
Cancel
deepak samuel
New Member
Join Date:
Jun 2012
Posts:
1
#4
Jun 19 '12, 05:29 PM
Hello
try the below
string a = "hello";
RWCString _s (a.c_str());
Thx
Deepak.
Originally posted by
ManishaJiwane
Hi
I tried in this way :
string str1="name";
RWCstring value;
value(str1);
The above code is giveing error
"Error: Could not find a match for RWCString::oper ator()(std::str ing )"
I also intialised it the string RWCstring value(str1) , but is still not working
please suggest me some way to do this.
Comment
Post
Cancel
weaknessforcats
Recognized Expert
Expert
Join Date:
Mar 2007
Posts:
9214
#5
Jun 20 '12, 12:01 AM
There is a constructor for RWCString that has an std::string& argument:
Code:
string str1="name"; RWCstring value(str1);
so this code should work.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment