Click here to Skip to main content
15,896,430 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am from Linux background. Don't have extensive experience in MFC programming or Windows programming. Currently I am dabbling with MFC projects trying to create a viewer like application.

I have a requirement to convert string to Long Long. In Linux we does this with the help of 'wcstoll' function.

What is the equivalent function in windows/MFC (visual studio 2010).

Thanks in Advance.
Posted

I think it is probably wcstoui64()[^]. You will find that the majority of C library calls are common between Linux and Windows, it's the later ones that have the different naming conventions.
 
Share this answer
 
Comments
Albert Holguin 16-Nov-11 14:18pm    
+5
codeprojectvijayanand 29-Nov-11 4:59am    
Thanks
Hi,

You should use "ToInt64" function to convert from String to long long.
Here is MSDN Link :
http://msdn.microsoft.com/en-us/library/system.convert.toint64.aspx[^]

Hope This helps.
 
Share this answer
 
Comments
Albert Holguin 16-Nov-11 14:17pm    
This is .Net, not MFC, Windows native, or C++.
elgaabeb 17-Nov-11 4:48am    
oh yes, i missed that point :(.
thank you Albert for pointing this out.

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