Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Reading from a txt file Pin
Chandrasekharan P13-May-09 23:45
Chandrasekharan P13-May-09 23:45 
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 
Hai!

I am developing a dialog based application for a WINCE device in eVC++.
I cannot use GDI, ImagingFactory, IPicture API's

I need solution/suggestion to any of the following:

1. I have .jp2 image, how can i convert and save it as .jpg file.
or
2. I have the byte array of .jp2 image, how can i convert to .jpg byte array
or
3. How can i get the HBITMAP handle from .jp2 image's byte array.


I am having one more doubt:
Using picture Control i am not able to display a bitmap image
mcsMyImage - is the control variable of the Picture control of my dialog,
MyImage.bmp - is the bitmap file

now i do the following:

CString strError;
DWORD dwError;

HBITMAP hBitmap = (HBITMAP) LoadImageBitmap (NULL, _T("MyImage.bmp"), IMAGE_BITMAP, 0, 0, 0);

// Tring to get last occured error
dwError = GetLastError ();
strError.Format (_T("%x"), dwError);
AfxMessageBox (strError);

// Set the bitmap on the dialog
mcsMyImage.SetBitmap (hBitmap);

Bitmap doesnot get loaded, i get 0x6 as the last error, which says "Invalid handle" How to solve this?

Thanks!

modified on Thursday, May 14, 2009 5:25 AM

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 
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 

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.