Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Need to convert C# string to C++ integer

Posted on 2006-07-17
5
Medium Priority
?
325 Views
Last Modified: 2010-04-16
Hello all,

I need to convert this C# string "00A17158" into an integer, to be able to pass it to my C++.dll. C++ is requiring for this string to be an integer.

Thanks,
Tone
0
Comment
Question by:worldknown
  • 2
5 Comments
 
LVL 25

Accepted Solution

by:
dstanley9 earned 750 total points
ID: 17125284
Is that supposed to be a hex string?  If so, use:

string s = "00A17158";
int value = int.Parse(s, System.Globalization.NumberStyles.AllowHexSpecifier);
0
 

Author Comment

by:worldknown
ID: 17125547
Thanks - i'll try and update you.
T
0
 

Author Comment

by:worldknown
ID: 17369754
i'm sorry, long story.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question