Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reading from a txt file Pin
Madhu Nair14-May-09 0:54
Madhu Nair14-May-09 0:54 
GeneralRe: Reading from a txt file Pin
V K 214-May-09 1:09
V K 214-May-09 1:09 
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 
Hi, you may be able to find an implementation of jp2 in the source code for celestia.

Haven't seen the LoadImageBitmap function before. I wonder if it works like LoadImage, if so, you'll need to throw it a copy of the hInstance, you'll also need to throw it the LR_LOADFROMFILE for the load flags.

i.e - using plain GDI:

HBITMAP hBitmap = (HBITMAP) LoadImage(
                GetModuleHandle(0),           // get hInstance of this program
                "MyImage.bmp",                // name of image to load
                IMAGE_BITMAP,                 // type of image (not a cursor or icon)
                0,0,                          // width, height - 0 = use image values
                LR_LOADFROMFILE               // this is where we want it from - ! a resource
                );


I apologise in advance if my ignorance about mfc has made this a wasted post.
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 
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 

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.