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

C / C++ / MFC

 
GeneralRe: Reading from a txt file Pin
toxcct14-May-09 2:03
toxcct14-May-09 2:03 
QuestionRe: Reading from a txt file Pin
David Crow14-May-09 2:48
David Crow14-May-09 2:48 
AnswerRe: Reading from a txt file Pin
toxcct14-May-09 2:49
toxcct14-May-09 2:49 
AnswerRe: Reading from a txt file Pin
Madhu Nair14-May-09 8:21
Madhu Nair14-May-09 8:21 
QuestionHow to get a JPG image from an .jp2 image ? [modified] Pin
kapardhi13-May-09 23:17
kapardhi13-May-09 23:17 
AnswerRe: How to get a JPG image from an .jp2 image ? Pin
enhzflep14-May-09 1:00
enhzflep14-May-09 1:00 
GeneralRe: How to get a JPG image from an .jp2 image ? Pin
kapardhi14-May-09 1:55
kapardhi14-May-09 1:55 
GeneralRe: How to get a JPG image from an .jp2 image ? Pin
enhzflep14-May-09 2:21
enhzflep14-May-09 2:21 
Uh-huh. Okay, have you included "winuser.h" - it defines LR_LOADFROMFILE (as 0x10)
I don't need to include it explicitly using gcc 3.4.??

Taken from winuser.h
#define LR_DEFAULTCOLOR 0
#define LR_MONOCHROME 1
#define LR_COLOR 2
#define LR_COPYRETURNORG 4
#define LR_COPYDELETEORG 8
#define LR_LOADFROMFILE 16
#define LR_LOADTRANSPARENT 32
#define LR_LOADREALSIZE 128
#define LR_DEFAULTSIZE 0x0040
#define LR_VGACOLOR 0x0080
#define LR_LOADMAP3DCOLORS 4096
#define LR_CREATEDIBSECTION 8192
#define LR_COPYFROMRESOURCE 0x4000
#define LR_SHARED 32768


Remember, the first param of LoadImage can be NULL only when loading a bitmap from a resource within the module. If loading from a file, you must (a) pass the hInstance, (b) give a valid filename (c) pass the LR_LOADFROMFILE loading flag. Smile | :)
AnswerRe: How to get a JPG image from an .jp2 image ? Pin
Chris Losinger14-May-09 5:10
professionalChris Losinger14-May-09 5:10 
GeneralRe: How to get a JPG image from an .jp2 image ? Pin
Alain Rist14-May-09 6:21
Alain Rist14-May-09 6:21 
QuestionThread Creation Detection Pin
naeemmuhammad13-May-09 23:15
naeemmuhammad13-May-09 23:15 
AnswerRe: Thread Creation Detection Pin
Stephen Hewitt13-May-09 23:25
Stephen Hewitt13-May-09 23:25 
GeneralRe: Thread Creation Detection Pin
naeemmuhammad14-May-09 0:18
naeemmuhammad14-May-09 0:18 
QuestionRe: Thread Creation Detection Pin
David Crow14-May-09 2:57
David Crow14-May-09 2:57 
GeneralRe: Thread Creation Detection Pin
Stephen Hewitt14-May-09 4:44
Stephen Hewitt14-May-09 4:44 
AnswerRe: Thread Creation Detection Pin
Madhu Nair14-May-09 0:38
Madhu Nair14-May-09 0:38 
GeneralRe: Thread Creation Detection Pin
naeemmuhammad14-May-09 3:15
naeemmuhammad14-May-09 3:15 
QuestionDatabase Pin
john563213-May-09 22:54
john563213-May-09 22:54 
AnswerRe: Database Pin
«_Superman_»13-May-09 23:14
professional«_Superman_»13-May-09 23:14 
QuestionShowing "Passord" Text image Pin
gopalraja13-May-09 22:52
gopalraja13-May-09 22:52 
AnswerRe: Showing "Passord" Text image Pin
Madhu Nair13-May-09 23:04
Madhu Nair13-May-09 23:04 
GeneralRe: Showing "Passord" Text image Pin
gopalraja14-May-09 2:10
gopalraja14-May-09 2:10 
AnswerRe: Showing "Passord" Text image Pin
Stuart Dootson14-May-09 1:09
professionalStuart Dootson14-May-09 1:09 
QuestionProcess that continues after you logoff Pin
andypandy213-May-09 22:36
andypandy213-May-09 22:36 
AnswerRe: Process that continues after you logoff Pin
Madhu Nair13-May-09 22:45
Madhu Nair13-May-09 22:45 

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.