Click here to Skip to main content
15,940,430 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends ,
Now i am trying to convert C++ code to C#.net.SO I have lot of doubts at the time of develop a programming.So Please Give some useful ideas or any tool for converting C++ to c#.net.
My Question:
In C++ declare a object in size_t __cdecl strlen(const char *);

In C#.net what will i declare?
Posted
Updated 3-May-11 19:38pm
v2

Your C++ samples shows is null-terminates string, one of the most idiotic inventions of all times and peoples in human history. There is no such staff in .NET and C#. See the class System.String. It remotely resembles std:string.

—SA
 
Share this answer
 
 
Share this answer
 
Comments
naraayanan 4-May-11 2:27am    
Thanks
Ashishmau 4-May-11 2:29am    
is this solves ur problem...then accept the answer
Olivier Levrey 4-May-11 8:23am    
You will always need to do a few manual conversions, but this link is a good start. Have a 5 Ashishmau.
@naraayanan: you should accept this answer if it solved your problem, or at least vote for it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900