Click here to Skip to main content
16,016,738 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I Agree with you but ..... Pin
UsmanMKhan24-Aug-05 21:10
UsmanMKhan24-Aug-05 21:10 
GeneralWindows Event Messages Pin
Hachaso23-Aug-05 0:34
Hachaso23-Aug-05 0:34 
GeneralRe: Windows Event Messages Pin
ThatsAlok23-Aug-05 0:43
ThatsAlok23-Aug-05 0:43 
GeneralRe: Windows Event Messages Pin
Hachaso23-Aug-05 0:58
Hachaso23-Aug-05 0:58 
GeneralRe: Windows Event Messages Pin
ThatsAlok23-Aug-05 3:35
ThatsAlok23-Aug-05 3:35 
GeneralRe: Windows Event Messages Pin
Hachaso23-Aug-05 21:17
Hachaso23-Aug-05 21:17 
GeneralRe: Windows Event Messages Pin
MailtoGops23-Aug-05 4:13
MailtoGops23-Aug-05 4:13 
GeneralLoadImage (newbie) Pin
dave2k23-Aug-05 0:05
dave2k23-Aug-05 0:05 
I have the structrue

[code]
struct Card{
char szFileName[MAX_PATH];
BYTE *lpImage;
Cards CardType;
};[/code]

an array of this structure will store 52 images representing different cards.

at the begining of my program i need to load all the images, and this is my effort for loading an image:

[code]
HBITMAP hbm = LoadImage(0, (LPCTSTR)"img.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE);[/code]

hbm is of type HBITMAP, so how can i get it into the structure where theimage type is of BYTE?

cheers
GeneralRe: LoadImage (newbie) Pin
toxcct23-Aug-05 0:20
toxcct23-Aug-05 0:20 
GeneralRe: LoadImage (newbie) Pin
dave2k23-Aug-05 0:29
dave2k23-Aug-05 0:29 
GeneralCBitmap of 87 MB : one OK, but not two... Pin
Kochise22-Aug-05 23:30
Kochise22-Aug-05 23:30 
Generaltelephone dictionary in c++ Pin
Anonymous22-Aug-05 21:30
Anonymous22-Aug-05 21:30 
GeneralRe: telephone dictionary in c++ Pin
toxcct22-Aug-05 21:56
toxcct22-Aug-05 21:56 
GeneralRe: telephone dictionary in c++ Pin
oustar22-Aug-05 22:16
oustar22-Aug-05 22:16 
GeneralRe: telephone dictionary in c++ Pin
ThatsAlok22-Aug-05 22:34
ThatsAlok22-Aug-05 22:34 
Generaldirectshow avi source filter Pin
villalvilla22-Aug-05 20:19
villalvilla22-Aug-05 20:19 
GeneralStructures in VC Pin
nadia!22-Aug-05 19:58
sussnadia!22-Aug-05 19:58 
GeneralRe: Structures in VC Pin
Abebe22-Aug-05 20:03
Abebe22-Aug-05 20:03 
GeneralRe: Structures in VC Pin
kakan22-Aug-05 20:13
professionalkakan22-Aug-05 20:13 
GeneralRe: Structures in VC Pin
Cedric Moonen22-Aug-05 20:32
Cedric Moonen22-Aug-05 20:32 
GeneralRe: Structures in VC Pin
Tim Smith23-Aug-05 3:29
Tim Smith23-Aug-05 3:29 
GeneralRe: Structures in VC Pin
Cedric Moonen23-Aug-05 6:40
Cedric Moonen23-Aug-05 6:40 
GeneralRe: Structures in VC Pin
nadia!22-Aug-05 20:25
sussnadia!22-Aug-05 20:25 
GeneralRe: Structures in VC Pin
toxcct22-Aug-05 20:14
toxcct22-Aug-05 20:14 
GeneralRe: Structures in VC Pin
Jose Lamas Rios22-Aug-05 20:18
Jose Lamas Rios22-Aug-05 20:18 

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.