Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: randomize Pin
Dimenser23-Mar-04 15:15
Dimenser23-Mar-04 15:15 
Generalrandomize Pin
Anonymous22-Mar-04 9:39
Anonymous22-Mar-04 9:39 
GeneralUsing DLL from VB Pin
BlackDice22-Mar-04 9:37
BlackDice22-Mar-04 9:37 
GeneralRe: Using DLL from VB Pin
John R. Shaw22-Mar-04 19:28
John R. Shaw22-Mar-04 19:28 
GeneralRe: Using DLL from VB Pin
BlackDice23-Mar-04 2:50
BlackDice23-Mar-04 2:50 
GeneralRe: Using DLL from VB Pin
John R. Shaw23-Mar-04 10:41
John R. Shaw23-Mar-04 10:41 
GeneralRe: Using DLL from VB Pin
BlackDice23-Mar-04 10:53
BlackDice23-Mar-04 10:53 
GeneralRe: Using DLL from VB Pin
John R. Shaw23-Mar-04 11:48
John R. Shaw23-Mar-04 11:48 
The error message means exactly what is says, type LNK4098 as the index in MSDN library for an expanation. The only reason I can think of why moving the return statment stoped the warning message, is that the complier upon seeing an early return statement probably proceded to ignore (not compile) the code following (with in the function) that statement and therefore did not find the problem. When you compile you code set the warning level to 4, that may cause it to generate an unreachable code warning, which suggest that it may not bother looking at that part of the code for errors.

There is also the possibility that the debug version of the library is conflicting with the non-debug version of the libaray. I may be mistaken but the 'd' at the end of the library name indicates that it is the debug version, if that is the case it may conflicking with the non-debug version (probably mfcs42.lib). You might want to check your project settings to see if you are linking to the correct libraries.

The article LNK4098 will tell you how to determine which libraries you are linking to.

INTP
GeneralGetting The OEM ID Win2000 Pin
aman200622-Mar-04 8:56
aman200622-Mar-04 8:56 
GeneralRe: Getting The OEM ID Win2000 Pin
David Crow22-Mar-04 9:09
David Crow22-Mar-04 9:09 
Generaldynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
Daniel 'Tak' M.22-Mar-04 8:55
Daniel 'Tak' M.22-Mar-04 8:55 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
Neville Franks22-Mar-04 10:00
Neville Franks22-Mar-04 10:00 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
Daniel 'Tak' M.22-Mar-04 10:13
Daniel 'Tak' M.22-Mar-04 10:13 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
David Crow22-Mar-04 10:47
David Crow22-Mar-04 10:47 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
Nitron22-Mar-04 13:30
Nitron22-Mar-04 13:30 
GeneralRe: dynamic_cast and AfxGetMainWnd() failing where it shouldn't fail Pin
David Crow23-Mar-04 2:17
David Crow23-Mar-04 2:17 
QuestionHow to get a function from an ATL COM dll. Pin
HAHAHA_NEXT22-Mar-04 8:31
HAHAHA_NEXT22-Mar-04 8:31 
AnswerRe: How to get a function from an ATL COM dll. Pin
Alvaro Mendez22-Mar-04 8:46
Alvaro Mendez22-Mar-04 8:46 
GeneralRe: How to get a function from an ATL COM dll. Pin
HAHAHA_NEXT22-Mar-04 8:52
HAHAHA_NEXT22-Mar-04 8:52 
GeneralRe: How to get a function from an ATL COM dll. Pin
Alvaro Mendez22-Mar-04 9:33
Alvaro Mendez22-Mar-04 9:33 
GeneralRe: How to get a function from an ATL COM dll. Pin
HAHAHA_NEXT22-Mar-04 11:48
HAHAHA_NEXT22-Mar-04 11:48 
Generalmysql help Pin
BlackDice22-Mar-04 8:00
BlackDice22-Mar-04 8:00 
GeneralHelp with a function that returns a vector.. Pin
RobJones22-Mar-04 7:52
RobJones22-Mar-04 7:52 
GeneralRe: Help with a function that returns a vector.. Pin
Nick Parker22-Mar-04 8:21
protectorNick Parker22-Mar-04 8:21 
GeneralRe: Help with a function that returns a vector.. Pin
RobJones22-Mar-04 8:42
RobJones22-Mar-04 8:42 

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.