Click here to Skip to main content
15,797,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HRESULT variable returning negative value Pin
Stefan_Lang30-Jun-19 23:09
Stefan_Lang30-Jun-19 23:09 
PraiseRe: HRESULT variable returning negative value Pin
Member 144995631-Jul-19 5:05
Member 144995631-Jul-19 5:05 
GeneralRe: HRESULT variable returning negative value Pin
Stefan_Lang1-Jul-19 22:31
Stefan_Lang1-Jul-19 22:31 
GeneralRe: HRESULT variable returning negative value Pin
Member 144995632-Jul-19 7:29
Member 144995632-Jul-19 7:29 
QuestionHook stops application Pin
Mark_G0027-Jun-19 6:34
Mark_G0027-Jun-19 6:34 
AnswerRe: Hook stops application Pin
leon de boer27-Jun-19 8:13
leon de boer27-Jun-19 8:13 
GeneralRe: Hook stops application Pin
Mark_G0028-Jun-19 4:23
Mark_G0028-Jun-19 4:23 
GeneralRe: Hook stops application Pin
Victor Nijegorodov28-Jun-19 5:50
Victor Nijegorodov28-Jun-19 5:50 
Mark_G00 wrote:
wsprintf(tcTemp, L"0x%08p", pCwp->lParam);
wStrTemp = tcTemp;
std::string strHexParam = std::string(wStrTemp.begin(), wStrTemp.end());
I tried this to get the message string, but it's not working as well
LPCTSTR lpszString = (LPCTSTR)pCwp->lParam;
COPYDATASTRUCT cds;
cds.dwData = 0;
cds.cbData = sizeof(TCHAR)* (wcslen(lpszString) + 1);
cds.lpData = (PVOID)lpszString;

Why are you mixing the UNICODE strings with ANSI ones?
GeneralRe: Hook stops application Pin
Mark_G0028-Jun-19 7:41
Mark_G0028-Jun-19 7:41 
GeneralRe: Hook stops application Pin
Victor Nijegorodov28-Jun-19 8:45
Victor Nijegorodov28-Jun-19 8:45 
GeneralRe: Hook stops application Pin
Mark_G0028-Jun-19 10:03
Mark_G0028-Jun-19 10:03 
GeneralRe: Hook stops application Pin
leon de boer28-Jun-19 21:59
leon de boer28-Jun-19 21:59 
GeneralRe: Hook stops application Pin
Mark_G0029-Jun-19 4:36
Mark_G0029-Jun-19 4:36 
QuestionImporting enhanced metafile from ms word to MFC problem Pin
zakomed24-Jun-19 4:55
zakomed24-Jun-19 4:55 
QuestionCStringList on heap Pin
_Flaviu19-Jun-19 0:38
_Flaviu19-Jun-19 0:38 
QuestionRe: CStringList on heap Pin
CPallini19-Jun-19 3:19
mveCPallini19-Jun-19 3:19 
AnswerRe: CStringList on heap Pin
_Flaviu19-Jun-19 20:36
_Flaviu19-Jun-19 20:36 
GeneralRe: CStringList on heap Pin
CPallini20-Jun-19 5:49
mveCPallini20-Jun-19 5:49 
AnswerRe: CStringList on heap Pin
Maximilien19-Jun-19 4:43
Maximilien19-Jun-19 4:43 
GeneralRe: CStringList on heap Pin
_Flaviu19-Jun-19 20:38
_Flaviu19-Jun-19 20:38 
GeneralRe: CStringList on heap Pin
Richard MacCutchan19-Jun-19 22:07
mveRichard MacCutchan19-Jun-19 22:07 
GeneralRe: CStringList on heap Pin
Stefan_Lang20-Jun-19 0:20
Stefan_Lang20-Jun-19 0:20 
GeneralRe: CStringList on heap Pin
jschell23-Jun-19 6:54
jschell23-Jun-19 6:54 
GeneralRe: CStringList on heap Pin
Stefan_Lang23-Jun-19 22:02
Stefan_Lang23-Jun-19 22:02 
GeneralRe: CStringList on heap Pin
CPallini20-Jun-19 5:50
mveCPallini20-Jun-19 5:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.