Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load the flexible .ini o txt files Pin
CPallini19-Nov-09 23:51
mveCPallini19-Nov-09 23:51 
QuestionRe: Load the flexible .ini o txt files Pin
David Crow20-Nov-09 3:26
David Crow20-Nov-09 3:26 
GeneralRe: Load the flexible .ini o txt files Pin
David Crow20-Nov-09 3:25
David Crow20-Nov-09 3:25 
AnswerRe: Load the flexible .ini o txt files Pin
Richard MacCutchan20-Nov-09 2:11
mveRichard MacCutchan20-Nov-09 2:11 
QuestionRe: Load the flexible .ini o txt files Pin
David Crow20-Nov-09 3:34
David Crow20-Nov-09 3:34 
Question::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
sirryan19-Nov-09 20:23
sirryan19-Nov-09 20:23 
QuestionRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
CPallini19-Nov-09 20:32
mveCPallini19-Nov-09 20:32 
AnswerRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
sirryan19-Nov-09 21:36
sirryan19-Nov-09 21:36 
Actually this is not quite right Smile | :) . The definition of the hwnd parameter of OpenClipboard is:
Handle to the window to be associated with the open clipboard. If this parameter is NULL, the open clipboard is associated with the current task.

However I tried to pass the hwnd of the program my Add-in is associated with (that is MS Word in my case) but I could not get the Active Window because it is probably not initialized when I ask for it.

The problem is that the program crashes sometimes because of my add-in. The reason is something about using the clipboard. I also noticed that EmptyClipboard clears the clipboard but still returns 0. My icon is usually added but it is unexceptable for me sometimes to crash.

Do you have any idea what can be the reason of the strange behavior of the EmptyClipboard function and the reason that cause the crashes?
GeneralRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
CPallini19-Nov-09 21:52
mveCPallini19-Nov-09 21:52 
GeneralRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
David Crow20-Nov-09 3:39
David Crow20-Nov-09 3:39 
AnswerRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
Richard MacCutchan19-Nov-09 21:55
mveRichard MacCutchan19-Nov-09 21:55 
GeneralRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
sirryan19-Nov-09 23:19
sirryan19-Nov-09 23:19 
GeneralRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
Richard MacCutchan20-Nov-09 0:05
mveRichard MacCutchan20-Nov-09 0:05 
GeneralRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
sirryan20-Nov-09 4:58
sirryan20-Nov-09 4:58 
QuestionMFC,goto definition of XXX Pin
lxkjlzz19-Nov-09 19:32
lxkjlzz19-Nov-09 19:32 
JokeRe: MFC,goto definition of XXX Pin
CPallini19-Nov-09 20:27
mveCPallini19-Nov-09 20:27 
AnswerRe: MFC,goto definition of XXX Pin
m_mun19-Nov-09 20:37
m_mun19-Nov-09 20:37 
GeneralRe: MFC,goto definition of XXX Pin
sashoalm19-Nov-09 20:51
sashoalm19-Nov-09 20:51 
GeneralRe: MFC,goto definition of XXX Pin
lxkjlzz19-Nov-09 20:52
lxkjlzz19-Nov-09 20:52 
AnswerRe: MFC,goto definition of XXX Pin
lxkjlzz19-Nov-09 21:24
lxkjlzz19-Nov-09 21:24 
GeneralRe: MFC,goto definition of XXX Pin
krmed20-Nov-09 0:41
krmed20-Nov-09 0:41 
GeneralRe: MFC,goto definition of XXX Pin
lxkjlzz22-Nov-09 14:47
lxkjlzz22-Nov-09 14:47 
QuestionImage comparison - How to read an image so you can compare pixels? Pin
justabeagle19-Nov-09 19:15
justabeagle19-Nov-09 19:15 
AnswerRe: Image comparison - How to read an image so you can compare pixels? Pin
Game-point19-Nov-09 19:28
Game-point19-Nov-09 19:28 
GeneralRe: Image comparison - How to read an image so you can compare pixels? Pin
justabeagle19-Nov-09 20:10
justabeagle19-Nov-09 20:10 

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.