Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: subclassing and messages Pin
Tomasz Sowinski27-Aug-02 9:43
Tomasz Sowinski27-Aug-02 9:43 
GeneralUsing CFileDialog - 2 questions Pin
ns27-Aug-02 9:35
ns27-Aug-02 9:35 
GeneralRe: Using CFileDialog - 2 questions Pin
jmkhael27-Aug-02 9:38
jmkhael27-Aug-02 9:38 
GeneralRe: Using CFileDialog - 2 questions Pin
ns27-Aug-02 9:46
ns27-Aug-02 9:46 
GeneralRe: Using CFileDialog - 2 questions Pin
jmkhael27-Aug-02 10:12
jmkhael27-Aug-02 10:12 
Generalmany many thanks! Pin
ns27-Aug-02 10:27
ns27-Aug-02 10:27 
GeneralRe: many many thanks! Pin
jmkhael27-Aug-02 10:29
jmkhael27-Aug-02 10:29 
Generalimage free.... Pin
pnpfriend27-Aug-02 9:20
pnpfriend27-Aug-02 9:20 
Hello!
I saw the article about "Load, show and convert miscellaneous file-formats using freeimage
" in this codeproject site. The project is so great.. Gettting image file information is what I need. But I don't want to use MainFrame... Document.. or menu bar.. at all..
All I need is only file name..
So I create new testing Dialog based project Called, JPEGINFO,
Then I add following function..to my project.

<br />
BOOL CJPEGINFODlg::GetImageInfo()<br />
{<br />
  FIMULTIBITMAP *m_pBitmapMP;<br />
  FIBITMAP *m_pBitmap;<br />
  <br />
   m_pBitmap = NULL;<br />
   m_pBitmapMP = NULL;<br />
   CString	msg,msg1,msg2;<br />
<br />
   CString filename = "E:\\filesfolder\\two\\New Folder\\FaxMachines.JPG";  // this is a file name to be read..<br />
   <br />
   m_pBitmap = FreeImage_LoadJPEG(filename,JPEG_DEFAULT); //get freeimage image    <br />
   m_pBitmapMP = FreeImage_OpenMultiBitmap(FIF_JPEG,filename,false,false,false);<br />
<br />
	if( !m_pBitmap )<br />
  {<br />
		MessageBox( "Sorry couldn't open!!");<br />
    return false;<br />
      <br />
  }<br />
/*<br />
get all the information such as name, width, height, and resolution here....<br />
*/<br />
return true;	<br />
}<br />

But I got following errors..
<br />
<br />
--------------------Configuration: JPEGINFO - Win32 Debug--------------------<br />
Compiling...<br />
JPEGINFODlg.cpp<br />
Linking...<br />
JPEGINFODlg.obj : error LNK2001: unresolved external symbol __imp__FreeImage_OpenMultiBitmap@20<br />
JPEGINFODlg.obj : error LNK2001: unresolved external symbol __imp__FreeImage_LoadJPEG@8<br />
Debug/JPEGINFO.exe : fatal error LNK1120: 2 unresolved externals<br />
Error executing link.exe.<br />
<br />
JPEGINFO.exe - 3 error(s), 0 warning(s)<br />


I included "freeimage.h" to my project though.
i don't know why I can't run. Would you please help me...
Thank you so much..
GeneralRe: image free.... Pin
Renjith Ramachandran27-Aug-02 9:38
Renjith Ramachandran27-Aug-02 9:38 
GeneralSocket Space Carnage Pin
magey27-Aug-02 9:01
magey27-Aug-02 9:01 
GeneralRe: Socket Space Carnage Pin
Renjith Ramachandran27-Aug-02 9:45
Renjith Ramachandran27-Aug-02 9:45 
GeneralAnother wierd error message... Pin
Nick Parker27-Aug-02 8:52
protectorNick Parker27-Aug-02 8:52 
GeneralRe: Another wierd error message... Pin
Tomasz Sowinski27-Aug-02 9:05
Tomasz Sowinski27-Aug-02 9:05 
GeneralRe: Another wierd error message... Pin
Nick Parker27-Aug-02 9:16
protectorNick Parker27-Aug-02 9:16 
GeneralRe: Another wierd error message... Pin
Nick Parker27-Aug-02 9:19
protectorNick Parker27-Aug-02 9:19 
GeneralRe: Another wierd error message... Pin
Nick Parker27-Aug-02 9:34
protectorNick Parker27-Aug-02 9:34 
GeneralRe: Another wierd error message... Pin
Tomasz Sowinski27-Aug-02 9:36
Tomasz Sowinski27-Aug-02 9:36 
GeneralRe: Another wierd error message... Pin
Nick Parker27-Aug-02 9:44
protectorNick Parker27-Aug-02 9:44 
GeneralRe: Another wierd error message... Pin
Tomasz Sowinski27-Aug-02 10:02
Tomasz Sowinski27-Aug-02 10:02 
GeneralRe: Another wierd error message... Pin
Nick Parker27-Aug-02 10:13
protectorNick Parker27-Aug-02 10:13 
QuestionHow to get structure associated w/ Tree children Pin
brianwelsch27-Aug-02 8:41
brianwelsch27-Aug-02 8:41 
AnswerRe: How to get structure associated w/ Tree children Pin
Tomasz Sowinski27-Aug-02 8:47
Tomasz Sowinski27-Aug-02 8:47 
GeneralRe: How to get structure associated w/ Tree children Pin
brianwelsch27-Aug-02 9:02
brianwelsch27-Aug-02 9:02 
GeneralRe: How to get structure associated w/ Tree children Pin
Tomasz Sowinski27-Aug-02 9:09
Tomasz Sowinski27-Aug-02 9:09 
GeneralRe: How to get structure associated w/ Tree children Pin
brianwelsch27-Aug-02 9:51
brianwelsch27-Aug-02 9:51 

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.