How do I access the command line argument that I set in my project.
for example if I give following input to command line “abc def ghi”
then how do I access them using argc &/or argv.
I am getting some integer values if I am accessing them via argv[i] or *argv[i]
Thanks.
You can access them like in this example:
The cause of the error you are experiencing probably is that you use the TCHAR form of the main function:
In Visual C++ per default UNICODE is defined. Therefore you have to use std::wcout for output instead of std::cout.
This is the way it probably will work: