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

C / C++ / MFC

 
GeneralRe: USB Enumeration problem. Pin
koumodaki20-Mar-08 8:41
koumodaki20-Mar-08 8:41 
GeneralRe: USB Enumeration problem. Pin
David Crow20-Mar-08 8:48
David Crow20-Mar-08 8:48 
GeneralLoading .PNG image windows GDI Pin
Hanan88820-Mar-08 3:15
Hanan88820-Mar-08 3:15 
QuestionRe: Loading .PNG image windows GDI Pin
David Crow20-Mar-08 3:19
David Crow20-Mar-08 3:19 
GeneralRe: Loading .PNG image windows GDI Pin
Hanan88820-Mar-08 3:25
Hanan88820-Mar-08 3:25 
GeneralRe: Loading .PNG image windows GDI Pin
Rajesh R Subramanian20-Mar-08 3:28
professionalRajesh R Subramanian20-Mar-08 3:28 
GeneralRe: Loading .PNG image windows GDI Pin
Maximilien20-Mar-08 3:35
Maximilien20-Mar-08 3:35 
GeneralRe: Loading .PNG image windows GDI Pin
Hanan88820-Mar-08 3:47
Hanan88820-Mar-08 3:47 
Here is some mess:

First look then I'll detail:

            CImage image
            PAINTSTRUCT ps;
    HDC hDC = BeginPaint (m_hWnd, &ps) ;
  (line 4)  //image = iter->second.m_pStaticData->m_Texture; -> this image was created previously but essentially by the same way like below
(line5) image.Load(L"./image.png");
    image.Draw(hDC,  (int) iter->second.m_pStaticData->m_UL.x, (int)
                        iter->second.m_pStaticData->m_UL.y);
    //image.BitBlt(hDC,0,0);
    EndPaint(m_hWnd, &ps);


This is 'below':
CImage image;
   image.Load(L"./image.png");
   pStatData->m_Texture = image;


The bottom line - no picture were painted. Painted all white.
(line 4) crashed.

(line 4) and (line 5) behave differently, can't understand why.

Perhaps there are some 'unwritten rules' for HDC stuff, I don't know them, I totally admit some sort of ignorance. Smile | :)
GeneralRe: Loading .PNG image windows GDI Pin
Mark Salsbery20-Mar-08 5:03
Mark Salsbery20-Mar-08 5:03 
GeneralRe: Loading .PNG image windows GDI Pin
CPallini20-Mar-08 5:27
mveCPallini20-Mar-08 5:27 
GeneralRe: Loading .PNG image windows GDI Pin
David Crow20-Mar-08 5:52
David Crow20-Mar-08 5:52 
GeneralRe: Loading .PNG image windows GDI Pin
CPallini20-Mar-08 6:33
mveCPallini20-Mar-08 6:33 
GeneralOutlookAddin related problem. Pin
ritz123420-Mar-08 2:50
ritz123420-Mar-08 2:50 
GeneralRe: OutlookAddin related problem. Pin
_AnsHUMAN_ 20-Mar-08 2:54
_AnsHUMAN_ 20-Mar-08 2:54 
GeneralRe: OutlookAddin related problem. Pin
ritz123420-Mar-08 3:05
ritz123420-Mar-08 3:05 
GeneralUsing C/C++ DLL at Visual Basic 6.0 [modified] Pin
Scmitd20-Mar-08 1:04
Scmitd20-Mar-08 1:04 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 Pin
CPallini20-Mar-08 1:24
mveCPallini20-Mar-08 1:24 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 Pin
Scmitd20-Mar-08 2:55
Scmitd20-Mar-08 2:55 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 [modified] Pin
CPallini20-Mar-08 5:23
mveCPallini20-Mar-08 5:23 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 Pin
David Crow20-Mar-08 3:13
David Crow20-Mar-08 3:13 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 Pin
CPallini20-Mar-08 3:19
mveCPallini20-Mar-08 3:19 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 Pin
Scmitd20-Mar-08 4:09
Scmitd20-Mar-08 4:09 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 Pin
David Crow20-Mar-08 4:11
David Crow20-Mar-08 4:11 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 Pin
Scmitd20-Mar-08 4:31
Scmitd20-Mar-08 4:31 
GeneralRe: Using C/C++ DLL at Visual Basic 6.0 Pin
David Crow20-Mar-08 4:49
David Crow20-Mar-08 4:49 

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.