Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load the flexible .ini o txt files Pin
johnjitu19-Nov-09 23:04
johnjitu19-Nov-09 23:04 
GeneralRe: Load the flexible .ini o txt files Pin
Cedric Moonen19-Nov-09 23:14
Cedric Moonen19-Nov-09 23:14 
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 
I have made a Word Add-in. I use the clipboard to put an icon in my Add-in button. The code is:

HBITMAP hFace =(HBITMAP)::LoadImage(g_hInst,
MAKEINTRESOURCE(IDB_OPEN_PDF),IMAGE_BITMAP,0,0,LR_LOADMAP3DCOLORS);

// put bitmap into Clipboard
::OpenClipboard(NULL);
::EmptyClipboard();
::SetClipboardData(CF_BITMAP, (HANDLE)hFace);
::CloseClipboard();
::DeleteObject(hFace);
// set style before setting bitmap

spButton->PutStyle(Office2000::msoButtonIconAndCaption);
spButton->PasteFace();

return S_OK;

OpenClipboard opens the clipboard successfully as it returns 1 every time. The problem is that EmptyClipboard returns 0 every time. It seems that there is a problem with the clipboard. EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. That is strange because I've just opened the clipboard successfully.
Has anyone run into such problem?
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 
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 

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.