Click here to Skip to main content
15,921,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to find the number of files in a folder Pin
David Crow18-Sep-08 3:35
David Crow18-Sep-08 3:35 
GeneralRe: How to find the number of files in a folder Pin
Deepu Antony18-Sep-08 4:42
Deepu Antony18-Sep-08 4:42 
GeneralRe: How to find the number of files in a folder Pin
David Crow18-Sep-08 5:18
David Crow18-Sep-08 5:18 
GeneralRe: How to find the number of files in a folder Pin
Joe Woodbury18-Sep-08 8:43
professionalJoe Woodbury18-Sep-08 8:43 
GeneralRe: How to find the number of files in a folder Pin
David Crow18-Sep-08 8:56
David Crow18-Sep-08 8:56 
GeneralRe: How to find the number of files in a folder Pin
Joe Woodbury18-Sep-08 10:38
professionalJoe Woodbury18-Sep-08 10:38 
AnswerRe: How to find the number of files in a folder Pin
Michael Schubert18-Sep-08 1:52
Michael Schubert18-Sep-08 1:52 
QuestionBitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
JuriB18-Sep-08 1:27
JuriB18-Sep-08 1:27 
Hi there,

I have a CWnd derived class that displays bitmap data in its client area using the BitBlt function of a compatible CDC object.

This works fine in the usual case on one PC.

However, if I run my application on a remote PC using WinXP's Remote Desktop, the client area of my display CWnd is not updated, it displays instead a copy of the underlying windows contents.

Debugging (via Remote Desktop) the drawing process does not yield any error in the following procedure I use for drawing the content of my CBitmap *pbMyBitmapToDisplay:

{
  CPaintDC dcpaint(this);
  CRect rClient;
  GetClientRect(&rClient);
  CDC dc;
  if (!dc.CreateCompatibleDC(&dcpaint)) {
		// .. error
		return;
	}
  CBitmap* pOldBitmap = dc.SelectObject(m_pbMyBitmapToDisplay);
  dcpaint.BitBlt(0, 0, rClient.Width(), rClient.Height(), &dc,	0, 0, SRCCOPY);
  dc.SelectObject(pOldBitmap);
}


Can someone please give me a clue what is causing the strange display behaviour via Remote Desktop?

Kind regards.

Juri
QuestionRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
Mark Salsbery18-Sep-08 4:01
Mark Salsbery18-Sep-08 4:01 
AnswerRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
JuriB18-Sep-08 4:23
JuriB18-Sep-08 4:23 
QuestionRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
Mark Salsbery18-Sep-08 4:44
Mark Salsbery18-Sep-08 4:44 
AnswerRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) [modified] Pin
JuriB18-Sep-08 5:18
JuriB18-Sep-08 5:18 
GeneralRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
Mark Salsbery18-Sep-08 5:43
Mark Salsbery18-Sep-08 5:43 
GeneralRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
JuriB18-Sep-08 23:54
JuriB18-Sep-08 23:54 
GeneralRe: Bitmap drawn via BitBlt not visible over Remote Desktop (WinXP) Pin
Mark Salsbery19-Sep-08 5:21
Mark Salsbery19-Sep-08 5:21 
QuestionCEGUI Pin
T.RATHA KRISHNAN18-Sep-08 0:32
T.RATHA KRISHNAN18-Sep-08 0:32 
AnswerRe: CEGUI Pin
Hamid_RT18-Sep-08 1:58
Hamid_RT18-Sep-08 1:58 
Questionunresolved external symbol error in VS 2008 (vc9) Pin
MKC00218-Sep-08 0:21
MKC00218-Sep-08 0:21 
AnswerRe: unresolved external symbol error in VS 2008 (vc9) Pin
KarstenK18-Sep-08 2:09
mveKarstenK18-Sep-08 2:09 
GeneralRe: unresolved external symbol error in VS 2008 (vc9) Pin
MKC00218-Sep-08 3:45
MKC00218-Sep-08 3:45 
AnswerRe: unresolved external symbol error in VS 2008 (vc9) Pin
Mark Salsbery18-Sep-08 4:04
Mark Salsbery18-Sep-08 4:04 
GeneralRe: unresolved external symbol error in VS 2008 (vc9) Pin
MKC00218-Sep-08 21:10
MKC00218-Sep-08 21:10 
QuestionRe: unresolved external symbol error in VS 2008 (vc9) Pin
Mark Salsbery19-Sep-08 5:43
Mark Salsbery19-Sep-08 5:43 
AnswerRe: unresolved external symbol error in VS 2008 (vc9) Pin
MKC00221-Sep-08 21:36
MKC00221-Sep-08 21:36 
QuestionReading larg File Issue Pin
VC_RYK18-Sep-08 0:19
VC_RYK18-Sep-08 0:19 

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.