well you're passing 3 arguments while
MyFunc
only accepts 2, so we throw away the
2
.
the
MyFunc
expects second argument expects a pointer to a
TCHAR
. You can do that in multiple ways here are some examples
TCHAR ch = 'C';
MyFunc(1, &ch);
TCHAR* str = "C";
MyFunc(1, str);
This might be of interest
Pointers Usage in C++: Beginners to Advanced[
^]