Click here to Skip to main content
15,900,725 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: problem in Beep function. Pin
Madhu Nair14-May-09 8:12
Madhu Nair14-May-09 8:12 
GeneralRe: problem in Beep function. Pin
Le@rner14-May-09 18:40
Le@rner14-May-09 18:40 
Questionusing CList Pin
12Code14-May-09 0:19
12Code14-May-09 0:19 
AnswerRe: using CList Pin
Stuart Dootson14-May-09 1:14
professionalStuart Dootson14-May-09 1:14 
AnswerRe: using CList Pin
toxcct14-May-09 1:51
toxcct14-May-09 1:51 
AnswerRe: using CList Pin
CPallini14-May-09 2:26
mveCPallini14-May-09 2:26 
Questionconverting pdf to any image format [modified] Pin
Ash_VCPP13-May-09 23:56
Ash_VCPP13-May-09 23:56 
AnswerRe: converting pdf to any image format Pin
Imran Khan Pathan14-May-09 0:20
Imran Khan Pathan14-May-09 0:20 
GeneralRe: converting pdf to any image format Pin
Ash_VCPP14-May-09 0:32
Ash_VCPP14-May-09 0:32 
QuestionFile Encryption and Encrypted text embedding in an image question.........?? Pin
young woo hur13-May-09 23:54
young woo hur13-May-09 23:54 
AnswerRe: File Encryption and Encrypted text embedding in an image question.........?? Pin
enhzflep14-May-09 0:19
enhzflep14-May-09 0:19 
QuestionReading from a txt file Pin
V K 213-May-09 23:35
V K 213-May-09 23:35 
AnswerRe: Reading from a txt file Pin
kapardhi13-May-09 23:39
kapardhi13-May-09 23:39 
AnswerRe: Reading from a txt file Pin
Fatbuddha 113-May-09 23:41
Fatbuddha 113-May-09 23:41 
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 

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.