Click here to Skip to main content
15,920,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ownderdraw and multiple fonts? Pin
Anonymous1-Oct-02 12:19
Anonymous1-Oct-02 12:19 
GeneralRe: Ownderdraw and multiple fonts? Pin
Joaquín M López Muñoz1-Oct-02 12:21
Joaquín M López Muñoz1-Oct-02 12:21 
GeneralRe: Thanks. Ownderdraw and multiple fonts? Pin
Anonymous1-Oct-02 12:35
Anonymous1-Oct-02 12:35 
AnswerRe: Ownderdraw and multiple fonts? Pin
Tomasz Sowinski1-Oct-02 12:13
Tomasz Sowinski1-Oct-02 12:13 
AnswerRe: Ownderdraw and multiple fonts? Pin
Anonymous1-Oct-02 12:15
Anonymous1-Oct-02 12:15 
GeneralRe: Ownderdraw and multiple fonts (2 more questions)? Pin
Anonymous1-Oct-02 12:38
Anonymous1-Oct-02 12:38 
GeneralRe: Ownderdraw and multiple fonts (2 more questions)? Pin
Anonymous2-Oct-02 8:41
Anonymous2-Oct-02 8:41 
GeneralThreaded winsock question Pin
1-Oct-02 12:00
suss1-Oct-02 12:00 
GeneralRe: Threaded winsock question Pin
Joaquín M López Muñoz1-Oct-02 12:06
Joaquín M López Muñoz1-Oct-02 12:06 
GeneralRe: Threaded winsock question Pin
Anonymous1-Oct-02 12:37
Anonymous1-Oct-02 12:37 
GeneralRe: Threaded winsock question Pin
Jon Hulatt1-Oct-02 21:37
Jon Hulatt1-Oct-02 21:37 
GeneralSource Control Integration Pin
Jon Sagara1-Oct-02 11:48
Jon Sagara1-Oct-02 11:48 
GeneralRe: Source Control Integration Pin
Tomasz Sowinski1-Oct-02 11:55
Tomasz Sowinski1-Oct-02 11:55 
GeneralRe: Source Control Integration Pin
Jon Sagara1-Oct-02 12:48
Jon Sagara1-Oct-02 12:48 
GeneralRe: Source Control Integration Pin
Jon Sagara1-Oct-02 14:03
Jon Sagara1-Oct-02 14:03 
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 

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.