Click here to Skip to main content
15,897,273 members

Comments by Mojtaba Setoodeh (Top 20 by date)

Mojtaba Setoodeh 19-Sep-13 3:49am View    
i am using win 7 64b. tnx
Mojtaba Setoodeh 15-Sep-13 0:22am View    
tnx Volynsky Alex. that was what i needed
Mojtaba Setoodeh 3-Sep-13 3:27am View    
tnx budy. good help
Mojtaba Setoodeh 3-Sep-13 2:33am View    
HWND hwnd;
CComHeapPtr<wchar> spszLocation;
if (FAILED(GetBrowserInfo(svar.pdispVal, &hwnd,&spszLocation))) continue;
LPCWSTR tmp=static_cast<lpcwstr>(spszLocation);
size_t wcsChars = wcslen( tmp);
MD5 md5MdFive;
unsigned char ucMdfiveExit[16];
md5MdFive.ConvertMD5(spszLocation,(unsigned long)iDataSize,ucMdfiveExit);
std::wcout << hwnd<< L" "<< static_cast<PCWSTR>(spszLocation)<< std::endl;
in the code above the first parameter of the convertmd5 is const unsigned char * but i have LPCWSTR
Mojtaba Setoodeh 3-Sep-13 2:22am View    
hi. i have a code like this:
PCWSTR tmp=static_cast<PCWSTR>(spszLocation);
now i have a value int the tmp that i need it to be const unsigned char *. but i could not convert it.