Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI Child Window Pin
Jamie Nordmeyer8-Sep-00 8:44
Jamie Nordmeyer8-Sep-00 8:44 
GeneralRe: MDI Child Window Pin
Jamie Nordmeyer8-Sep-00 8:49
Jamie Nordmeyer8-Sep-00 8:49 
GeneralRe: MDI Child Window Pin
Sam Hobbs8-Sep-00 9:01
Sam Hobbs8-Sep-00 9:01 
GeneralDll programming... Linker Error Pin
thedogbear8-Sep-00 5:52
thedogbear8-Sep-00 5:52 
GeneralRe: Dll programming... Linker Error Pin
Chris Meech8-Sep-00 8:09
Chris Meech8-Sep-00 8:09 
GeneralCListViewCtrl (ATL) Pin
Chris B.8-Sep-00 5:00
Chris B.8-Sep-00 5:00 
GeneralRe: CListViewCtrl (ATL) Pin
Chris B.8-Sep-00 5:02
Chris B.8-Sep-00 5:02 
Generalsecond SelectObject crashs Pin
real name8-Sep-00 3:45
sussreal name8-Sep-00 3:45 
have you any idea what can be wrong in this code?
it is part of printig code and only code part i'm working with bitmap
works fine under nt or 2000
under w9x displays 25 and crashs (before it long code with TextOut lives)
thanks
t!
HINSTANCE hResourceDll = ((CLayerdllApp*)AfxGetApp())->m_hAllgResourceDll;
HBITMAP hBmp = (HBITMAP)::LoadImage( hResourceDll == NULL ? AfxGetInstanceHandle() : hResourceDll,
MAKEINTRESOURCE(nImageID), IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION | LR_DEFAULTSIZE
);
CBitmap StatusBitmap;
StatusBitmap.Attach(hBmp);

CDC dcMemory;
dcMemory.CreateCompatibleDC(pDC);

if(dcMemory.m_hDC == NULL)
MessageBox("22a");

CBitmap* pOldBitmap = (CBitmap*)dcMemory.SelectObject( StatusBitmap);

if(StatusBitmap.m_hObject == NULL)
MessageBox("23a");

if(pOldBitmap == NULL)
MessageBox("23b");

MessageBox("25");

dcMemory.SelectObject(pOldBitmap);
MessageBox("26");
GeneralRe: second SelectObject crashs Pin
real name21-Sep-00 3:20
sussreal name21-Sep-00 3:20 
GeneralSendKeys Pin
Mustafa Demirhan8-Sep-00 2:07
Mustafa Demirhan8-Sep-00 2:07 
GeneralRe: SendKeys Pin
Remus Lazar8-Sep-00 2:54
Remus Lazar8-Sep-00 2:54 
GeneralRe: SendKeys Pin
Paolo Messina8-Sep-00 8:05
professionalPaolo Messina8-Sep-00 8:05 
GeneralRe: SendKeys Pin
Michael Dunn8-Sep-00 8:11
sitebuilderMichael Dunn8-Sep-00 8:11 
GeneralModeless dialog Pin
Mustafa Demirhan8-Sep-00 2:02
Mustafa Demirhan8-Sep-00 2:02 
GeneralRe: Modeless dialog Pin
Remus Lazar8-Sep-00 2:51
Remus Lazar8-Sep-00 2:51 
GeneralRe: Modeless dialog Pin
Michael Dunn8-Sep-00 8:15
sitebuilderMichael Dunn8-Sep-00 8:15 
GeneralRe: Modeless dialog Pin
Philip Nicoletti8-Sep-00 3:00
Philip Nicoletti8-Sep-00 3:00 
GeneralRe: Modeless dialog Pin
Sam Hobbs8-Sep-00 8:42
Sam Hobbs8-Sep-00 8:42 
GeneralRe: Modeless dialog Pin
Sam Hobbs8-Sep-00 8:49
Sam Hobbs8-Sep-00 8:49 
QuestionHow to catch keyboard and mouse events of all windows? Pin
Mustafa Demirhan8-Sep-00 1:14
Mustafa Demirhan8-Sep-00 1:14 
AnswerRe: How to catch keyboard and mouse events of all windows? Pin
Remus Lazar8-Sep-00 2:59
Remus Lazar8-Sep-00 2:59 
GeneralRe: How to catch keyboard and mouse events of all windows? Pin
Sam Hobbs8-Sep-00 8:52
Sam Hobbs8-Sep-00 8:52 
AnswerRe: How to catch keyboard and mouse events of all windows? Pin
Jamie Nordmeyer8-Sep-00 7:44
Jamie Nordmeyer8-Sep-00 7:44 
AnswerRe: How to catch keyboard and mouse events of all windows? Pin
Sam Hobbs8-Sep-00 8:58
Sam Hobbs8-Sep-00 8:58 
Questionhow to avoid deactivation of a view Pin
Jean-Claude Dauphin8-Sep-00 0:08
sussJean-Claude Dauphin8-Sep-00 0:08 

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.