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

C / C++ / MFC

 
GeneralRe: Programmatically starting IE in "a new window" Pin
Michael Dunn8-Jul-03 15:32
sitebuilderMichael Dunn8-Jul-03 15:32 
GeneralRe: Programmatically starting IE in "a new window" Pin
Rob Caldecott8-Jul-03 12:28
Rob Caldecott8-Jul-03 12:28 
GeneralRe: Programmatically starting IE in "a new window" Pin
Iain Clarke, Warrior Programmer8-Jul-03 12:48
Iain Clarke, Warrior Programmer8-Jul-03 12:48 
GeneralRe: Programmatically starting IE in "a new window" Pin
Ryan Binns8-Jul-03 16:54
Ryan Binns8-Jul-03 16:54 
GeneralRe: Programmatically starting IE in "a new window" Pin
Rob Caldecott8-Jul-03 21:22
Rob Caldecott8-Jul-03 21:22 
GeneralRe: Programmatically starting IE in "a new window" Pin
Ryan Binns8-Jul-03 21:24
Ryan Binns8-Jul-03 21:24 
GeneralLZW Data Pin
keb8-Jul-03 11:29
keb8-Jul-03 11:29 
GeneralLinking problem Pin
Navin8-Jul-03 10:55
Navin8-Jul-03 10:55 
I've been running into a weird problem. I have a header file that has the following in it:

#ifdef _DEBUG
#pragma comment(lib, "SomeLib_Debug.lib")
#else
#pragma message("Argh")
#pragma comment(lib, "SomeLib.lib")
#endif


This header file is included in a static library, we'll call it "A.lib".
I have a program, "B", that includes "A.lib". A and B have Debug, Release, Unicode Debug, and Unicode Release builds. SomeLib just has a Debug and Release build.

B uses A.lib, but does NOT include the header shown above. In other words, it should not need "SomeLib.lib".

When I compile it in Debug or Release, it compiles fine. If I compile it in Unicode Debug or Unicode Release, it seems to require SomeLib.lib, and the link fails.

Any idea as to why this might happen? I've scoured through the project settings and can't find any differences that would explain this.



"When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
GeneralRe: Linking problem Pin
Dave Bryant8-Jul-03 11:00
Dave Bryant8-Jul-03 11:00 
GeneralRe: Linking problem Pin
Navin8-Jul-03 11:54
Navin8-Jul-03 11:54 
GeneralModal Dailog Box Pin
ppathan8-Jul-03 9:57
ppathan8-Jul-03 9:57 
GeneralRe: Modal Dailog Box Pin
valikac8-Jul-03 10:10
valikac8-Jul-03 10:10 
GeneralRe: Modal Dailog Box Pin
ppathan8-Jul-03 10:21
ppathan8-Jul-03 10:21 
GeneralRe: Modal Dailog Box Pin
Dave Bryant8-Jul-03 10:38
Dave Bryant8-Jul-03 10:38 
GeneralRe: Modal Dailog Box Pin
ppathan8-Jul-03 10:45
ppathan8-Jul-03 10:45 
GeneralRe: Modal Dailog Box Pin
Dave Bryant8-Jul-03 10:56
Dave Bryant8-Jul-03 10:56 
GeneralRe: Modal Dailog Box Pin
Ravi Bhavnani8-Jul-03 11:01
professionalRavi Bhavnani8-Jul-03 11:01 
GeneralRe: Modal Dailog Box Pin
ppathan8-Jul-03 11:08
ppathan8-Jul-03 11:08 
GeneralRe: Modal Dailog Box Pin
Ravi Bhavnani8-Jul-03 11:14
professionalRavi Bhavnani8-Jul-03 11:14 
GeneralRe: Modal Dailog Box Pin
Ryan Binns8-Jul-03 17:02
Ryan Binns8-Jul-03 17:02 
GeneralNeed CEditView source code or Example Pin
Anonymous8-Jul-03 9:36
Anonymous8-Jul-03 9:36 
GeneralRe: Need CEditView source code or Example Pin
David Crow8-Jul-03 9:44
David Crow8-Jul-03 9:44 
GeneralControls losing focus Pin
PaulFrazee8-Jul-03 8:31
PaulFrazee8-Jul-03 8:31 
GeneralRestricting resizing of controlbars Pin
electronicman_x8-Jul-03 8:08
electronicman_x8-Jul-03 8:08 
GeneralRe: Restricting resizing of controlbars Pin
David Crow8-Jul-03 9:54
David Crow8-Jul-03 9:54 

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.