Click here to Skip to main content
15,923,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Manipulating BITMAPS Pin
CPallini7-Jan-09 2:03
mveCPallini7-Jan-09 2:03 
AnswerRe: Manipulating BITMAPS Pin
John R. Shaw7-Jan-09 5:32
John R. Shaw7-Jan-09 5:32 
QuestionRegarding ComboBox in Toolbar Pin
tina_p1237-Jan-09 1:01
tina_p1237-Jan-09 1:01 
AnswerRe: Regarding ComboBox in Toolbar Pin
Code-o-mat7-Jan-09 2:17
Code-o-mat7-Jan-09 2:17 
QuestionRe: Regarding ComboBox in Toolbar Pin
sashoalm7-Jan-09 2:37
sashoalm7-Jan-09 2:37 
QuestionAdding library modules for the linker from _code_ [SOLVED] Pin
sashoalm7-Jan-09 0:31
sashoalm7-Jan-09 0:31 
QuestionRe: Adding library modules for the linker from _code_ Pin
CPallini7-Jan-09 0:43
mveCPallini7-Jan-09 0:43 
AnswerRe: Adding library modules for the linker from _code_ Pin
sashoalm7-Jan-09 0:58
sashoalm7-Jan-09 0:58 
Hi, CPallini,

Thanks for the answer!

The project has a little quirk however. The lib file is actually linking to dlls, and I use Inno Setup to create installations. Inno Setup has preprocessor with the same syntax, so I use a config.h header file that's included both in my Stdafx.h and in Setup.iss files.

I wan't when I disable the feature, the code that calls it to be omitted, the linker to remove the library, and the dlls to be omitted from the install.

And the project is already built around the idea that you have a config.h file that's included everywhere in the project (and in Setup.iss file), so changing that for one feature would be confusing, while changing it for all #defines and settings would be too much of a change.

Anyway, I found this a pragma that might work, and I'm testing it right now:
#pragma comment(lib, "mylib.lib")


There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

AnswerRe: Adding library modules for the linker from _code_ Pin
Stephen Hewitt7-Jan-09 0:52
Stephen Hewitt7-Jan-09 0:52 
GeneralRe: Adding library modules for the linker from _code_ Pin
sashoalm7-Jan-09 1:00
sashoalm7-Jan-09 1:00 
AnswerRe: Adding library modules for the linker from _code_ Pin
Iain Clarke, Warrior Programmer7-Jan-09 0:54
Iain Clarke, Warrior Programmer7-Jan-09 0:54 
GeneralRe: Adding library modules for the linker from _code_ Pin
sashoalm7-Jan-09 1:01
sashoalm7-Jan-09 1:01 
GeneralImplementation help Pin
Marimuthu.r7-Jan-09 0:06
Marimuthu.r7-Jan-09 0:06 
QuestionCMFCToolBar with CView Pin
N B sowmi7-Jan-09 0:02
N B sowmi7-Jan-09 0:02 
AnswerRegister an OCX programatically Pin
Mustapha Rédouane6-Jan-09 23:28
Mustapha Rédouane6-Jan-09 23:28 
GeneralRe: Register an OCX programatically Pin
CPallini6-Jan-09 23:46
mveCPallini6-Jan-09 23:46 
GeneralRe: Register an OCX programatically Pin
Randor 6-Jan-09 23:57
professional Randor 6-Jan-09 23:57 
QuestionCOleDataObject error Pin
NewVC++6-Jan-09 21:08
NewVC++6-Jan-09 21:08 
AnswerRe: COleDataObject error Pin
Cedric Moonen6-Jan-09 21:12
Cedric Moonen6-Jan-09 21:12 
Questionload image Pin
 Programmer.6-Jan-09 20:29
 Programmer.6-Jan-09 20:29 
AnswerRe: load image Pin
«_Superman_»6-Jan-09 21:04
professional«_Superman_»6-Jan-09 21:04 
AnswerRe: load image Pin
David Crow7-Jan-09 3:12
David Crow7-Jan-09 3:12 
QuestionHow to call a Dll Pin
tasumisra6-Jan-09 18:53
tasumisra6-Jan-09 18:53 
AnswerRe: How to call a Dll Pin
Cedric Moonen6-Jan-09 20:14
Cedric Moonen6-Jan-09 20:14 
AnswerRe: How to call a Dll Pin
Hamid_RT6-Jan-09 20:19
Hamid_RT6-Jan-09 20:19 

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.