Click here to Skip to main content
15,911,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to get temp folder path Pin
near2world30-Apr-07 3:22
near2world30-Apr-07 3:22 
GeneralRe: how to get temp folder path Pin
Michael Dunn30-Apr-07 12:43
sitebuilderMichael Dunn30-Apr-07 12:43 
GeneralRe: how to get temp folder path Pin
near2world1-May-07 0:02
near2world1-May-07 0:02 
QuestionHow to Add jpeg image as a dialog formp's backgroung Pin
gsheladia29-Apr-07 4:23
gsheladia29-Apr-07 4:23 
AnswerRe: How to Add jpeg image as a dialog formp's backgroung Pin
#realJSOP29-Apr-07 6:16
professional#realJSOP29-Apr-07 6:16 
AnswerRe: How to Add jpeg image as a dialog formp's backgroung Pin
Paresh Chitte29-Apr-07 19:19
Paresh Chitte29-Apr-07 19:19 
QuestionUnresolved Externals [SOLVED] Pin
#realJSOP29-Apr-07 3:34
professional#realJSOP29-Apr-07 3:34 
AnswerRe: Unresolved Externals Pin
Mark Salsbery29-Apr-07 8:04
Mark Salsbery29-Apr-07 8:04 
John Simmons / outlaw programmer wrote:
the project that uses the lib can find the appropriate header file (as well as the lib file)


I'm pretty sure you did this, but just in case: Did you add the lib file to the project?

You've probably seen this as well, but just in case it helps:

1. Compile the FreeImage library in debug and release modes and close your projects. You won't
need to use the FreeImage source code anymore.
Note: Do not compile the FreeImage DLL (project named FreeImage) but the project named
FreeImageLib. This should produce a huge file named FreeImage.lib (in release mode) or
FreeImaged.lib (in debug mode) in the Dist\ directory.

2. Copy FreeImage.lib/FreeImaged.lib into your lib\ directory or in a directory where the linker
can find them (e.g. your project directory). You can use "Menu->Tools->Options->Directories-
>Library files" for this.

3. Create a new project and add your code in it.
Add a call to FreeImage_Initialise() at the beginning of you main function and a call to
FreeImage_DeInitialise() at the end of this function.

4. Edit the compiler options (Menu -> Project -> Settings)

1. tab C/C++ : Category "Preprocessor"
* Add FREEIMAGE_LIB to the preprocessor definitions
2. tab C/C++ : Category "Code Generation"
* Use the Multithreaded run-time library (in release mode)
* Use the Debug Multithreaded run-time library (in debug mode)

5. Edit linker options (Menu -> Project -> Settings)

1. tab Link : Category Input
* Add FreeImage.lib to the list of object/library modules (release mode)
* Add FreeImaged.lib to the list of object/library modules (debug mode)
2. tab Link : Category Input
* Add LIBCMT to the Ignore library list (it helps to avoid a warning)

6. Compile and link your program.




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Unresolved Externals Pin
#realJSOP29-Apr-07 11:08
professional#realJSOP29-Apr-07 11:08 
AnswerRe: Unresolved Externals Pin
Cedric Moonen29-Apr-07 8:07
Cedric Moonen29-Apr-07 8:07 
GeneralRe: Unresolved Externals Pin
#realJSOP29-Apr-07 11:11
professional#realJSOP29-Apr-07 11:11 
QuestionRe: Unresolved Externals Pin
bob1697229-Apr-07 8:17
bob1697229-Apr-07 8:17 
AnswerRe: Unresolved Externals Pin
#realJSOP29-Apr-07 11:24
professional#realJSOP29-Apr-07 11:24 
AnswerRe: Unresolved Externals Pin
Rob Caldecott29-Apr-07 11:33
Rob Caldecott29-Apr-07 11:33 
GeneralRe: Unresolved Externals Pin
#realJSOP29-Apr-07 11:34
professional#realJSOP29-Apr-07 11:34 
GeneralRe: Unresolved Externals Pin
Rob Caldecott29-Apr-07 11:44
Rob Caldecott29-Apr-07 11:44 
GeneralRe: Unresolved Externals Pin
#realJSOP29-Apr-07 23:48
professional#realJSOP29-Apr-07 23:48 
QuestionBrightness control for MFC 203 Pin
YUANGE29-Apr-07 3:05
YUANGE29-Apr-07 3:05 
AnswerRe: Brightness control for MFC 203 Pin
Hamid_RT29-Apr-07 18:51
Hamid_RT29-Apr-07 18:51 
QuestionPlaySound (MFC) Pin
YUANGE29-Apr-07 1:58
YUANGE29-Apr-07 1:58 
AnswerRe: PlaySound (MFC) Pin
Mark Salsbery29-Apr-07 8:13
Mark Salsbery29-Apr-07 8:13 
QuestionRegistering a PKCS#12 file Pin
Andy H29-Apr-07 0:23
Andy H29-Apr-07 0:23 
AnswerRe: Registering a PKCS#12 file Pin
cmk29-Apr-07 0:50
cmk29-Apr-07 0:50 
Questionnavigate a dialog using up and down arrows and not tab... Pin
Joan M29-Apr-07 0:19
professionalJoan M29-Apr-07 0:19 
AnswerRe: navigate a dialog using up and down arrows and not tab... Pin
GuyM29-Apr-07 1:03
GuyM29-Apr-07 1:03 

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.