problem with parameter 2 of GetIDsOfNames
I am a little confused with my pointers.
The following code has a run time fatal
error. If I comment out the function call,
then the message box does not display
"Next" as expected. Can someone fix my
code?
TIA
DISPID dispid;
TCHAR szMember[5] ;
lstrcpy( szMember,TEXT("Next"));
HRESULT hr;
/*hr = spDispatch->GetIDsOfNames(
IID_NULL,
(unsigned short **)&szMember, // is this casting correct?
1,
LOCALE_SYSTEM_DEFAULT,
&dispid);*/
MessageBox(szMember,TEXT(""),0);