Click here to Skip to main content
15,909,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Arithmetic Expression Pin
Christian Graus21-Jan-02 5:45
protectorChristian Graus21-Jan-02 5:45 
GeneralArithmetic Pin
Geoffrey20-Jan-02 17:36
Geoffrey20-Jan-02 17:36 
GeneralRe: Arithmetic Pin
Christian Graus20-Jan-02 17:47
protectorChristian Graus20-Jan-02 17:47 
QuestionBest wat to download a file with http? Pin
Jay Beckert20-Jan-02 16:35
Jay Beckert20-Jan-02 16:35 
AnswerRe: Best wat to download a file with http? Pin
Michael Dunn20-Jan-02 16:55
sitebuilderMichael Dunn20-Jan-02 16:55 
GeneralRe: Best wat to download a file with http? Pin
Jay Beckert20-Jan-02 16:59
Jay Beckert20-Jan-02 16:59 
GeneralCopyMemory problems Pin
alex.barylski20-Jan-02 12:59
alex.barylski20-Jan-02 12:59 
GeneralRe: CopyMemory problems Pin
alex.barylski20-Jan-02 13:28
alex.barylski20-Jan-02 13:28 
I've fixed the problem, but i dunno if it's a proper fix.

LPCTSTR buff = (LPCTSTR)GlobalLock(m_hBuffer);
GlobalUnlock(m_hBuffer);
return buff;

I'm assuming the prob was that the temp buff is destroyed when outta scope...? So the CopyMemory had no effect. ultimately all i wanted returned was an address to the buffer and the above does this. However Locking the handle returns a pointer, doesn't Unlocking invalidate the handle...?

The above code works, but isn't it set up for failure, i'm kinda lost as to why it does work...?Confused | :confused: Each Lock increments a counter kinda like COM objects right..? as the Unlock does the opposite, as long as the lock count is zero shouldn't it fail...?

Thanx again!

"An expert is someone who has made all the mistakes in thier field" - Niels Bohr
Generalput images on GDI Pin
DiegoValdevino20-Jan-02 12:54
DiegoValdevino20-Jan-02 12:54 
GeneralRe: put images on GDI Pin
Christian Graus20-Jan-02 13:03
protectorChristian Graus20-Jan-02 13:03 
QuestionTopMost Maximized Window? Pin
DiegoValdevino20-Jan-02 12:50
DiegoValdevino20-Jan-02 12:50 
AnswerRe: TopMost Maximized Window? Pin
Andrew Peace20-Jan-02 14:39
Andrew Peace20-Jan-02 14:39 
Generalcreate an owned popup window Pin
20-Jan-02 12:18
suss20-Jan-02 12:18 
GeneralRe: create an owned popup window Pin
24-Jan-02 15:18
suss24-Jan-02 15:18 
GeneralSkin a window Pin
The_Server20-Jan-02 12:12
The_Server20-Jan-02 12:12 
GeneralRe: Skin a window Pin
Christopher Lord20-Jan-02 12:32
Christopher Lord20-Jan-02 12:32 
GeneralRe: Skin a window Pin
Ravi Bhavnani20-Jan-02 12:44
professionalRavi Bhavnani20-Jan-02 12:44 
GeneralRe: Skin a window ( * Explorer Window *) Pin
The_Server20-Jan-02 13:31
The_Server20-Jan-02 13:31 
GeneralRe: Skin a window ( * Explorer Window *) Pin
Christopher Lord20-Jan-02 14:48
Christopher Lord20-Jan-02 14:48 
GeneralRe: Skin a window ( * Explorer Window *) Pin
The_Server20-Jan-02 19:20
The_Server20-Jan-02 19:20 
QuestionSimple mp3 playback? Pin
20-Jan-02 11:55
suss20-Jan-02 11:55 
AnswerRe: Simple mp3 playback? Pin
Christian Graus20-Jan-02 11:59
protectorChristian Graus20-Jan-02 11:59 
GeneralI saw that but... Pin
20-Jan-02 12:14
suss20-Jan-02 12:14 
GeneralGetting MFC controls Pin
Steve Severance20-Jan-02 7:28
Steve Severance20-Jan-02 7:28 
GeneralRe: Getting MFC controls Pin
Ravi Bhavnani20-Jan-02 11:25
professionalRavi Bhavnani20-Jan-02 11:25 

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.