|
-
RWCString to long
Hello,
I'm trying to convert a RWCString to long.
I found stringToNum method, but I'm always getting :-
...
Error: The function "stringToNum" must have a prototype.
...
The thing is I'm including the right header file :-
#include <rw/tools/localesnapshot.h>
Interestingly enough, I'm including a different H file under the same location #include <rw/tools/regex.h> but that one works.
I then tried doing it in two steps, i.e. RWCstring to string and then string to a long :-
RWCString xx = "123456";
string fff = string(xx);
long tradeSid = atol(fff.c_str());
But, that's not very nice.
Any ideas please ?
Many thanks.
Similar Threads
-
By MyPlague in forum .NET
Replies: 2
Last Post: 03-20-2006, 05:18 PM
-
By Tim Manos in forum VB Classic
Replies: 4
Last Post: 10-19-2001, 06:06 AM
-
By Julian Milano in forum VB Classic
Replies: 2
Last Post: 08-11-2000, 12:11 PM
-
By Julian Milano in forum VB Classic
Replies: 0
Last Post: 08-10-2000, 09:16 PM
-
By Kunal Sharma in forum VB Classic
Replies: 2
Last Post: 04-25-2000, 03:45 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks