A problem about simple_player's Command Arguments

A problem about simple_player's Command Arguments

Hi, dear all,

I encounter a problem when I want to debug the simple_player.
I set the argument at simple_player's property: Debugging->Command Arguments.
It seems that the debugger pass the argument as a char string to the main function, but the main function treats the argument as a wchar_t string. So it can't get the right content from the arguments.

My project's default character set is unicode.

Any suggestion is helpful.

Thanks!

ntiszj

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I found the cause myself.
Reference to here:

http://software.intel.com/en-us/articles/new-msvc-project-files-in-ipp-s...(simple+player+unicode)

Ying H said:

"In general, _ascii is for 8bit-character and _unicode is for 16bit-characters,like Japanese, Chinese.

In the project's configuration, the non"_ascii" = unicode, it is default setting when produce MSVC project by MSVC wizard"

So just build for debug_ascii, it will be ok.

Leave a Comment

Please sign in to add a comment. Not a member? Join today