Click here to Skip to main content
15,888,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSpecialized User Interface Design for MSN Messenger Pin
James A Beggs1-Oct-02 11:38
James A Beggs1-Oct-02 11:38 
GeneralCFrameWnd::Create Pin
RK_20001-Oct-02 11:26
RK_20001-Oct-02 11:26 
GeneralRe: CFrameWnd::Create Pin
Tomasz Sowinski1-Oct-02 11:39
Tomasz Sowinski1-Oct-02 11:39 
GeneralRe: CFrameWnd::Create Pin
Anonymous1-Oct-02 12:40
Anonymous1-Oct-02 12:40 
GeneralDLL hell. please help! Pin
will13831-Oct-02 10:49
will13831-Oct-02 10:49 
GeneralRe: DLL hell. please help! Pin
Tomasz Sowinski1-Oct-02 11:15
Tomasz Sowinski1-Oct-02 11:15 
GeneralRe: DLL hell. please help! Pin
Dimitri Rochette1-Oct-02 11:44
Dimitri Rochette1-Oct-02 11:44 
Generalproblem with pasting bitmap to the clipboard under win98 Pin
Mariusz Popiolek1-Oct-02 10:49
sussMariusz Popiolek1-Oct-02 10:49 
Hi
I issued this problem week ago but I still haven't solved it. Now I know a bit more about the nature of the problem. I created MFC program (dialog application) and I'm trying to execute such code:

	CBitmap Bitmap;<br />
	int a = 0;<br />
	SetLastError(0);<br />
	a =	GetLastError();<br />
	if( !Bitmap.LoadBitmap( IDB_BITMAP1 ) ) MessageBox("loadbitmap");<br />
	a =	GetLastError();<br />
	SetLastError(0);<br />
	if( !OpenClipboard() ) MessageBox("openclipboard");<br />
	a =	GetLastError();<br />
	SetLastError(0);<br />
	if( !EmptyClipboard() ) MessageBox("emptyclipboard");<br />
	a =	GetLastError();<br />
	SetLastError(0);	<br />
	if( !SetClipboardData( CF_BITMAP, Bitmap ) ) MessageBox("setclipboarddata");<br />
	a =	GetLastError();<br />
	SetLastError(0);<br />
	if( !CloseClipboard() ) MessageBox("closeclipboard");<br />
	a =	GetLastError();<br />
	SetLastError(0);<br />
//my debugging code maybe looks a bit strange and silly, but it works :)<br />


Everything works perfect under Win2000, but under Win98 not, so I installed VC6.0 under Win98 to examine the problem. I don't get any runtime errors, program executes smoothly, but when I try to paste from clipboard (in Paint) nothing appears. When I execute my code for second time Paint shows message "Error in acquiring data from clipboard" (that's my translation from polish version of Windows, so it can be a bit different in english version). Someone advised me to empty clipboard before pasting but it doesn't help Frown | :( Anyone have any clue (this is quite urgent unfortunately). Thanks in advance.

Greetings
Mariusz Popiolek
GeneralRe: problem with pasting bitmap to the clipboard under win98 Pin
Mariusz Popiolek1-Oct-02 11:27
sussMariusz Popiolek1-Oct-02 11:27 
GeneralRe: problem with pasting bitmap to the clipboard under win98 Pin
Tomasz Sowinski1-Oct-02 11:42
Tomasz Sowinski1-Oct-02 11:42 
GeneralRe: problem with pasting bitmap to the clipboard under win98 Pin
Mariusz Popiolek1-Oct-02 12:13
sussMariusz Popiolek1-Oct-02 12:13 
GeneralRe: problem with pasting bitmap to the clipboard under win98 Pin
Tomasz Sowinski1-Oct-02 12:18
Tomasz Sowinski1-Oct-02 12:18 
GeneralRe: problem with pasting bitmap to the clipboard under win98 Pin
Mariusz Popiolek2-Oct-02 0:22
sussMariusz Popiolek2-Oct-02 0:22 
QuestionHow do I do this? Pin
Anonymous1-Oct-02 9:31
Anonymous1-Oct-02 9:31 
AnswerRe: How do I do this? Pin
Nick Parker1-Oct-02 9:40
protectorNick Parker1-Oct-02 9:40 
AnswerRe: How do I do this? Pin
Scott H. Settlemier1-Oct-02 9:51
Scott H. Settlemier1-Oct-02 9:51 
AnswerRe: How do I do this? Pin
Michael Dunn1-Oct-02 9:47
sitebuilderMichael Dunn1-Oct-02 9:47 
AnswerRe: How do I do this? Pin
PJ Arends1-Oct-02 9:47
professionalPJ Arends1-Oct-02 9:47 
AnswerRe: How do I do this? Pin
Mariusz Popiolek1-Oct-02 9:52
sussMariusz Popiolek1-Oct-02 9:52 
AnswerRe: How do I do this? Pin
Scott H. Settlemier1-Oct-02 10:00
Scott H. Settlemier1-Oct-02 10:00 
GeneralRe: How do I do this? Pin
PJ Arends1-Oct-02 10:15
professionalPJ Arends1-Oct-02 10:15 
GeneralRe: How do I do this? Pin
Mariusz Popiolek1-Oct-02 10:15
sussMariusz Popiolek1-Oct-02 10:15 
AnswerRe: How do I do this? Pin
Roger Stewart1-Oct-02 10:00
professionalRoger Stewart1-Oct-02 10:00 
AnswerRe: How do I do this? Pin
Anonymous1-Oct-02 11:05
Anonymous1-Oct-02 11:05 
Generalclistctrl::getitmeText Pin
pnpfriend1-Oct-02 9:07
pnpfriend1-Oct-02 9:07 

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.