Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
7 Views

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
0 Kudos
1 Reply
Highlighted
Beginner
7 Views

I found the cause myself.
Reference to here:

http://software.intel.com/en-us/articles/new-msvc-project-files-in-ipp-sample/?wapkw=ALL(simple+play...

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.

0 Kudos