Click here to Skip to main content
15,915,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSending a CString to an edit control? Pin
stf12-Apr-03 13:43
stf12-Apr-03 13:43 
AnswerRe: Sending a CString to an edit control? Pin
Ravi Bhavnani12-Apr-03 14:03
professionalRavi Bhavnani12-Apr-03 14:03 
GeneralRe: Sending a CString to an edit control? Pin
stf12-Apr-03 16:10
stf12-Apr-03 16:10 
Generaldynamic memory allocation Pin
SHaroz12-Apr-03 12:57
SHaroz12-Apr-03 12:57 
GeneralRe: dynamic memory allocation Pin
Dominik Reichl13-Apr-03 1:12
Dominik Reichl13-Apr-03 1:12 
GeneralRe: dynamic memory allocation Pin
SHaroz13-Apr-03 7:56
SHaroz13-Apr-03 7:56 
GeneralLoading partial bitmap Pin
georgiek5012-Apr-03 11:02
georgiek5012-Apr-03 11:02 
GeneralUNICODE build - but something's linking incorrectly Pin
Mark Otway12-Apr-03 10:52
Mark Otway12-Apr-03 10:52 
Hi,

Got a bit of a perplexing problem. I'm building a Unicode DLL, which is linking to a lib I've built (also Unicode, obviously). If I build the DLL without referencing the lib, it builds perfectly. However, when I link in the lib, something in it is causing the non-Unicode MFC libraries (nafxcwd) to be linked in too, causing the error:

LINK : warning LNK4098: defaultlib 'nafxcwd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library

However, both DLL and lib are compiled with _UNICODE defined, and the lib's compiled with /NODEFAULTLIB, so I can't work out where the reference to the non-Unicode symbol is coming from. I've tried linking with /VERBOSE:LIB, but it doesn't seem to be giving any clues.

The question is, how can I find out what symbol is causing the linker to search in the nafxcwd library? Is there any linker option which will show me which symbol is being searched for when each library is being searched? Any other easy ways of solving this?

Thanks

Mark
Questionhow to return HRESULT function in MFC ActiveX Pin
Obi-Wan-Kenobi12-Apr-03 10:06
Obi-Wan-Kenobi12-Apr-03 10:06 
GeneralUse defined message Pin
Member 25731512-Apr-03 4:02
Member 25731512-Apr-03 4:02 
GeneralRe: Use defined message Pin
valikac12-Apr-03 5:55
valikac12-Apr-03 5:55 
QuestionWhat are Crystal Reports?? Pin
IrishSonic12-Apr-03 3:58
IrishSonic12-Apr-03 3:58 
AnswerRe: What are Crystal Reports?? Pin
Michael P Butler12-Apr-03 4:02
Michael P Butler12-Apr-03 4:02 
General2 quick questions about ShellExecuteEx() and CreateProcess().. Pin
IrishSonic12-Apr-03 3:56
IrishSonic12-Apr-03 3:56 
GeneralRe: 2 quick questions about ShellExecuteEx() and CreateProcess().. Pin
valikac12-Apr-03 5:56
valikac12-Apr-03 5:56 
GeneralRe: 2 quick questions about ShellExecuteEx() and CreateProcess().. Pin
Michael Dunn12-Apr-03 6:25
sitebuilderMichael Dunn12-Apr-03 6:25 
GeneralThanks, worked fine.. Pin
IrishSonic12-Apr-03 6:52
IrishSonic12-Apr-03 6:52 
Generaldialog's CreateEx Pin
Member 25731512-Apr-03 3:38
Member 25731512-Apr-03 3:38 
GeneralRe: dialog's CreateEx Pin
Chris Losinger13-Apr-03 10:44
professionalChris Losinger13-Apr-03 10:44 
Generaldialog-based windows programing Pin
karanba12-Apr-03 3:37
karanba12-Apr-03 3:37 
GeneralRe: dialog-based windows programing Pin
Toni7813-Apr-03 15:39
Toni7813-Apr-03 15:39 
GeneralFirst screensaver Pin
karanba12-Apr-03 3:28
karanba12-Apr-03 3:28 
GeneralRe: First screensaver Pin
Michael Dunn12-Apr-03 6:28
sitebuilderMichael Dunn12-Apr-03 6:28 
Generalsms messaging Pin
staunch12-Apr-03 2:52
staunch12-Apr-03 2:52 
GeneralRe: sms messaging Pin
Moak12-Apr-03 3:16
Moak12-Apr-03 3:16 

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.