Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ Problem! Pin
Richard Andrew x6422-Feb-10 13:58
professionalRichard Andrew x6422-Feb-10 13:58 
AnswerRe: GDI+ Problem! Pin
LunaticFringe22-Feb-10 13:55
LunaticFringe22-Feb-10 13:55 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 18:51
mostafa_pasha22-Feb-10 18:51 
GeneralRe: GDI+ Problem! Pin
LunaticFringe22-Feb-10 19:49
LunaticFringe22-Feb-10 19:49 
AnswerRe: GDI+ Problem! Pin
KingsGambit22-Feb-10 20:57
KingsGambit22-Feb-10 20:57 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 21:28
mostafa_pasha22-Feb-10 21:28 
GeneralRe: GDI+ Problem! Pin
Richard MacCutchan22-Feb-10 22:09
mveRichard MacCutchan22-Feb-10 22:09 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 23:04
mostafa_pasha22-Feb-10 23:04 
the code is here:

HBITMAP hbmp1 = ::LoadBitmap(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_BITMAP1));
ASSERT(hbmp1!=NULL);
Bitmap* pBmp1 = Bitmap::FromHBITMAP(hbmp1,NULL);

hbmp1 0xb8051055
pBmp1 0x00000000

in LoadBitmap function:
inline Bitmap*
Bitmap::FromHBITMAP(
IN HBITMAP hbm,
IN HPALETTE hpal
)
{
return new Bitmap(hbm, hpal);
}

void* (operator new)(size_t in_size)
{
return DllExports::GdipAlloc(in_size);
}

in_size = 16
return 0x000000000


Best,
MJM
GeneralRe: GDI+ Problem! Pin
Richard MacCutchan23-Feb-10 0:07
mveRichard MacCutchan23-Feb-10 0:07 
GeneralRe: GDI+ Problem! Pin
KingsGambit22-Feb-10 22:18
KingsGambit22-Feb-10 22:18 
QuestionVC++ 2005, Creating checkboxes from an array Pin
Steven Foxton22-Feb-10 11:37
Steven Foxton22-Feb-10 11:37 
AnswerRe: VC++ 2005, Creating checkboxes from an array Pin
LunaticFringe22-Feb-10 13:50
LunaticFringe22-Feb-10 13:50 
AnswerRe: VC++ 2005, Creating checkboxes from an array Pin
Richard Andrew x6422-Feb-10 13:53
professionalRichard Andrew x6422-Feb-10 13:53 
GeneralRe: VC++ 2005, Creating checkboxes from an array Pin
Steven Foxton22-Feb-10 22:55
Steven Foxton22-Feb-10 22:55 
QuestionRe: VC++ 2005, Creating checkboxes from an array Pin
David Crow23-Feb-10 3:20
David Crow23-Feb-10 3:20 
AnswerRe: VC++ 2005, Creating checkboxes from an array Pin
LunaticFringe23-Feb-10 4:09
LunaticFringe23-Feb-10 4:09 
GeneralRe: VC++ 2005, Creating checkboxes from an array Pin
Steven Foxton23-Feb-10 6:59
Steven Foxton23-Feb-10 6:59 
GeneralRe: VC++ 2005, Creating checkboxes from an array Pin
Steven Foxton23-Feb-10 12:01
Steven Foxton23-Feb-10 12:01 
GeneralRe: VC++ 2005, Creating checkboxes from an array Pin
LunaticFringe23-Feb-10 14:34
LunaticFringe23-Feb-10 14:34 
QuestionDebuging in VC++ 6.0 Pin
Anderson Jogie22-Feb-10 8:33
Anderson Jogie22-Feb-10 8:33 
AnswerRe: Debuging in VC++ 6.0 Pin
Maximilien22-Feb-10 8:47
Maximilien22-Feb-10 8:47 
GeneralRe: Debuging in VC++ 6.0 Pin
Anderson Jogie22-Feb-10 11:09
Anderson Jogie22-Feb-10 11:09 
GeneralRe: Debuging in VC++ 6.0 Pin
Nelek22-Feb-10 21:51
protectorNelek22-Feb-10 21:51 
Questionwinsock recv() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 [modified] Pin
Jayapal Chandran22-Feb-10 6:17
Jayapal Chandran22-Feb-10 6:17 
AnswerRe: winsock recv() returns SOCKET_ERROR ( -1 ) but WSAGetLastError returns 0 Pin
Graham Breach22-Feb-10 7:35
Graham Breach22-Feb-10 7:35 

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.