G
Guest
I'm trying to concat multiple params. My code only grabs the first param.
/*******/
// Param1: OLE2T(menuItemsData[idCmd])
// Param2: pStrClipboardText
int const arraysize = 30;
TCHAR pszDest[arraysize];
size_t cbDest = arraysize * sizeof(TCHAR);
LPCTSTR pszFormat = TEXT("%s");
HRESULT hr = StringCbPrintf(pszDest, cbDest,
pszFormat,OLE2T(menuItemsData[idCmd]),_T(pStrClipboardText));
what am i doing wrong??
Thanks
/*******/
// Param1: OLE2T(menuItemsData[idCmd])
// Param2: pStrClipboardText
int const arraysize = 30;
TCHAR pszDest[arraysize];
size_t cbDest = arraysize * sizeof(TCHAR);
LPCTSTR pszFormat = TEXT("%s");
HRESULT hr = StringCbPrintf(pszDest, cbDest,
pszFormat,OLE2T(menuItemsData[idCmd]),_T(pStrClipboardText));
what am i doing wrong??
Thanks