Click here to Skip to main content
15,898,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGetDocument in a dialog? Pin
Mister Transistor22-Jun-03 23:35
Mister Transistor22-Jun-03 23:35 
AnswerRe: GetDocument in a dialog? Pin
will138323-Jun-03 2:41
will138323-Jun-03 2:41 
GeneralRe: GetDocument in a dialog? Pin
Mister Transistor23-Jun-03 4:09
Mister Transistor23-Jun-03 4:09 
AnswerRe: GetDocument in a dialog? Pin
David Crow23-Jun-03 2:43
David Crow23-Jun-03 2:43 
GeneralRe: GetDocument in a dialog? Pin
will138323-Jun-03 2:47
will138323-Jun-03 2:47 
GeneralRe: GetDocument in a dialog? Pin
Jonathan Craig23-Jun-03 3:40
Jonathan Craig23-Jun-03 3:40 
GeneralCoTaskMemAlloc vs. new Pin
peterchen22-Jun-03 23:26
peterchen22-Jun-03 23:26 
GeneralDrag and Drop Pin
Luke Murray22-Jun-03 22:45
Luke Murray22-Jun-03 22:45 
hello, I'm trying to implement drag and drop in my program, i'm using the drag nd drop classes by Leon Finker on CP. I had it working then noticed it now doesn't work, i have old source where it does work, but apart from things i changed in ftp classes etc there is not differnces, i've even copied the to window classes that implement drag and drop to the new src, and compiled it but still drag and drop fails. it fails on RegisterDragDrop the code i use is:
<br />
dropTarget = new DropTarget(m_hWnd);<br />
if (dropTarget == NULL)<br />
	return false;<br />
<br />
dropTarget->AddRef();<br />
<br />
if (FAILED(RegisterDragDrop(m_hWnd, dropTarget))) {<br />
	dropTarget = NULL;<br />
	return false;<br />
}<br />
...<br />

This is from the drag and drop example Leon provides. and RegisterDragDrop always fails, but not in the other source, really annoying me. Anyone got any ideas of what this could be from? been trying to figure it out for ages!

thanks in advance for any help.

Luke

EDIT: I'm using the WTL framework if that helps or matters
GeneralRe: Drag and Drop Pin
Luke Murray23-Jun-03 2:11
Luke Murray23-Jun-03 2:11 
GeneralThread Safety &amp; Brute Force Locking Pin
aenima190622-Jun-03 22:14
aenima190622-Jun-03 22:14 
GeneralWindows API to check the presence of any NIC Pin
Hashim Saleem22-Jun-03 21:30
Hashim Saleem22-Jun-03 21:30 
GeneralRe: Windows API to check the presence of any NIC Pin
David Crow23-Jun-03 2:44
David Crow23-Jun-03 2:44 
QuestionClassView does not display if project has more than about 4000 classes?? Pin
khanhtruong22-Jun-03 21:27
khanhtruong22-Jun-03 21:27 
GeneralPrint monitor Pin
lynhoo22-Jun-03 21:00
lynhoo22-Jun-03 21:00 
GeneralRe: Print monitor Pin
Duncan Edwards Jones22-Jun-03 22:10
professionalDuncan Edwards Jones22-Jun-03 22:10 
GeneralRe: Print monitor Pin
lynhoo22-Jun-03 22:34
lynhoo22-Jun-03 22:34 
GeneralUpdating CTreeView Pin
Dan Savilonis22-Jun-03 20:15
Dan Savilonis22-Jun-03 20:15 
GeneralC++ vs. C# Pin
untwisted22-Jun-03 19:08
untwisted22-Jun-03 19:08 
GeneralRe: C++ vs. C# Pin
Toni7822-Jun-03 20:40
Toni7822-Jun-03 20:40 
GeneralRe: C++ vs. C# Pin
Hashim Saleem22-Jun-03 21:49
Hashim Saleem22-Jun-03 21:49 
GeneralRe: C++ vs. C# Pin
untwisted23-Jun-03 6:05
untwisted23-Jun-03 6:05 
GeneralRe: C++ vs. C# Pin
Rick Crone26-Jun-03 10:35
Rick Crone26-Jun-03 10:35 
GeneralRe: C++ vs. C# Pin
untwisted26-Jun-03 11:06
untwisted26-Jun-03 11:06 
Generalprogram Build (DeBUG) works Build with release does not work Pin
spinoza22-Jun-03 14:04
spinoza22-Jun-03 14:04 
GeneralRe: program Build (DeBUG) works Build with release does not work Pin
Michael Dunn22-Jun-03 15:45
sitebuilderMichael Dunn22-Jun-03 15:45 

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.