CatManDave
MIS
Guys,
I'm an old Visual C++ developer who hasn't use it for about 6 years. I am not using C#.net and I have a need to convert a string to int. In C++ it was easy to just atoi.
When I try to use atoi in C#.net I get the old familiar "not in namespace" error. Here's the piece of code:
tempTimeText = tempDataRow["Hours"].ToString();
hours = atoi(tempTimeText);
Am I losing it or do I need to add some "using" statement or reference. Is my syntax completely wrong? The MSDN and TechNet is as helpful as a pay toilet in a poop ward as usual.
Thanks in advance for you help,
Dave
I'm an old Visual C++ developer who hasn't use it for about 6 years. I am not using C#.net and I have a need to convert a string to int. In C++ it was easy to just atoi.
When I try to use atoi in C#.net I get the old familiar "not in namespace" error. Here's the piece of code:
tempTimeText = tempDataRow["Hours"].ToString();
hours = atoi(tempTimeText);
Am I losing it or do I need to add some "using" statement or reference. Is my syntax completely wrong? The MSDN and TechNet is as helpful as a pay toilet in a poop ward as usual.
Thanks in advance for you help,
Dave