I have followed below step to compile code in 64 bit. all steps also mention in How to compile a 64-bit application using Visual C++ 2010 Express? link
1) Download and install the Windows Software Development Kit version 7.1. Visual C++ 2010 Express does not include a 64 bit compiler, but the SDK does. A link to the SDK: http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx
2 ) Change your project configuration. Go to Properties of your project. On the top of the dialog box there will be a "Configuration" drop-down menu. Make sure that selects "All Configurations." There will also be a "Platform" drop-down that will read "Win32." Finally on the right there is a "Configuration Manager" button - press it. In the dialog that comes up, find your project, hit the Platform drop-down, select New, then select x64. Now change the "Active solution platform" drop-down menu to "x64." When you return to the Properties dialog box, the "Platform" drop-down should now read "x64."
3) Finally, change your toolset. In the Properties menu of your project, under Configuration Properties | General, change Platform Toolset from "v100" to "Windows7.1SDK".
I am also compiling code in x64 mode
Still I am getting below error
error C2664: cannot convert parameter 1 from 'LPCTSTR' to 'const CHAR *'
please help me to solve problem.
my requirement is that need to enable character set : Use Unicode character set (project->General). so this i can't able to set character set as NOT set. as mention below link cannot convert parameter 1 from 'char' to 'LPCWSTR'