Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC application does not open up Pin
vikas amin5-Oct-05 23:40
vikas amin5-Oct-05 23:40 
QuestionHow to change the Icon of my EXE ? Pin
Amarelia5-Oct-05 20:32
Amarelia5-Oct-05 20:32 
AnswerRe: How to change the Icon of my EXE ? Pin
Boaz V5-Oct-05 20:59
Boaz V5-Oct-05 20:59 
AnswerRe: How to change the Icon of my EXE ? Pin
Achim Klein6-Oct-05 10:42
Achim Klein6-Oct-05 10:42 
QuestionHow to Enable/Disable Hardware Devices Like,Soundcard, Modem, USB devices Pin
chiragpatel_mca5-Oct-05 20:14
chiragpatel_mca5-Oct-05 20:14 
QuestionAbout database in vc++ : Plz Help : urgent Pin
parims5-Oct-05 20:12
parims5-Oct-05 20:12 
AnswerRe: About database in vc++ : Plz Help : urgent Pin
Boaz V5-Oct-05 21:02
Boaz V5-Oct-05 21:02 
QuestionError encountered while displaying TIF Image with CXImage Library Pin
asifrogers5-Oct-05 19:59
asifrogers5-Oct-05 19:59 
Hi there!
I am using CxImage library to display images in different formats in a Picture Control(VC++).It works fine with other file formats but as soon as some TIF Image format comes it generates the following two error messages in a message box.
IT DISPLAYS THE IMAGE FINE IN PICTURE CONTROL but I DON'T WANT TO GET THOSE ERROR MESSAGES.
The error messages are as follows:
1)TIFF IMAGE:wrong data type 1 for "XML Packet";tag ignored
2)TIFF IMAGE:unkown field with tag 34665(0x8769) encountered

The piece of code at which these error messages in message box prompted is as under:
HBITMAP m_bitmap = NULL;

unsigned long fileFormat;

if(getFileExtension() == ".tif")
{
fileFormat = CXIMAGE_FORMAT_TIF;
}//End of if(getFileExtension() == ".tif")
else if(getFileExtension() == ".gif")
{
fileFormat = CXIMAGE_FORMAT_GIF;
}//End of else if(getFileExtension() == ".gif")
else if(getFileExtension()==".jpg")
{
fileFormat = CXIMAGE_FORMAT_JPG;
}//End of else if(getFileExtension()==".jpg")

//CxImage imageFile(fileToDisplay, CXIMAGE_FORMAT_JPG);
MessageBox("File Clicked = "+ fileToDisplay);

CxImage imageFile(fileToDisplay, fileFormat);

m_bitmap = imageFile.MakeBitmap(m_PicToDisplay.GetDC()->m_hDC);
m_PicToDisplay.SetBitmap(m_bitmap);
if (m_bitmap) DeleteObject(m_bitmap);


asifrogers
QuestionNamespace Pin
Rajesh match5-Oct-05 19:51
Rajesh match5-Oct-05 19:51 
QuestionMultiple modeless Dialog Boxes Z-Order Pin
bgray905-Oct-05 19:41
bgray905-Oct-05 19:41 
QuestionWindows Movie Maker Timeline control Pin
Member 15698255-Oct-05 19:29
Member 15698255-Oct-05 19:29 
QuestionCBitmap on Top of other control Pin
fjlv20055-Oct-05 16:06
fjlv20055-Oct-05 16:06 
Question++Variable or Variable++ Pin
kenexcelon5-Oct-05 15:55
kenexcelon5-Oct-05 15:55 
AnswerRe: ++Variable or Variable++ Pin
Tim Smith5-Oct-05 16:12
Tim Smith5-Oct-05 16:12 
GeneralRe: ++Variable or Variable++ Pin
Rob Caldecott5-Oct-05 22:19
Rob Caldecott5-Oct-05 22:19 
AnswerRe: ++Variable or Variable++ Pin
vikas amin5-Oct-05 23:45
vikas amin5-Oct-05 23:45 
GeneralRe: ++Variable or Variable++ Pin
Eytukan6-Oct-05 2:07
Eytukan6-Oct-05 2:07 
QuestionBitmap Transparency in EVC3.0 Pin
fjlv20055-Oct-05 15:55
fjlv20055-Oct-05 15:55 
QuestionHWND, HINSTANCE, HDC and HGLRC Pin
Alex Cutovoi5-Oct-05 15:46
Alex Cutovoi5-Oct-05 15:46 
AnswerRe: HWND, HINSTANCE, HDC and HGLRC Pin
S Douglas5-Oct-05 22:52
professionalS Douglas5-Oct-05 22:52 
GeneralRe: HWND, HINSTANCE, HDC and HGLRC Pin
Alex Cutovoi6-Oct-05 3:27
Alex Cutovoi6-Oct-05 3:27 
GeneralRe: HWND, HINSTANCE, HDC and HGLRC Pin
S Douglas6-Oct-05 3:53
professionalS Douglas6-Oct-05 3:53 
GeneralRe: HWND, HINSTANCE, HDC and HGLRC Pin
Alex Cutovoi6-Oct-05 9:43
Alex Cutovoi6-Oct-05 9:43 
GeneralRe: HWND, HINSTANCE, HDC and HGLRC Pin
S Douglas6-Oct-05 18:05
professionalS Douglas6-Oct-05 18:05 
QuestiontNewbie - Switch Statement Pin
kenexcelon5-Oct-05 15:12
kenexcelon5-Oct-05 15:12 

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.