Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sending structutres about winsocks sendto Pin
Mark Salsbery16-Sep-08 8:05
Mark Salsbery16-Sep-08 8:05 
GeneralRe: sending structutres about winsocks sendto Pin
CrazyDogg16-Sep-08 20:59
CrazyDogg16-Sep-08 20:59 
Question[Message Deleted] Pin
Chesnokov Yuriy15-Sep-08 21:12
professionalChesnokov Yuriy15-Sep-08 21:12 
AnswerRe: error LNK2019: unresolved external symbol Pin
toxcct15-Sep-08 21:16
toxcct15-Sep-08 21:16 
Answer[Message Deleted] Pin
Chesnokov Yuriy15-Sep-08 21:50
professionalChesnokov Yuriy15-Sep-08 21:50 
GeneralRe: error LNK2019: unresolved external symbol Pin
toxcct15-Sep-08 21:52
toxcct15-Sep-08 21:52 
GeneralRe: error LNK2019: unresolved external symbol Pin
Cedric Moonen15-Sep-08 22:03
Cedric Moonen15-Sep-08 22:03 
QuestionRe: error LNK2019: unresolved external symbol Pin
Roger Stoltz15-Sep-08 22:33
Roger Stoltz15-Sep-08 22:33 
Chesnokov Yuriy wrote:
You can not use C functions in non static MFC application functions


That's very much incorrect.
You're basically making a statement saying "it's impossible to call Win32 API functions from non-static MFC class member functions".

The most common mistake when you get this linker error is that you're not compiling the source file with the definition of the function. It may be declared several times, but the linker could not find the implementation of it.
Which brings us back to Naveen's question: did you include the implementation file in the project? Is it the right file? Is it marked to be excluded from the build?

Chesnokov Yuriy wrote:
SomeDlg.h

static void function()
{
somefunction(); //will work
}


This doesn't prove anything. The "function" may not be called so the linker won't bother if it cannot find the implementation of it.

When you provide source code, please put your code snippets inside the <pre></pre> tags.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


Answer[Message Deleted] Pin
Chesnokov Yuriy16-Sep-08 0:30
professionalChesnokov Yuriy16-Sep-08 0:30 
RantRe: error LNK2019: unresolved external symbol Pin
Rajesh R Subramanian16-Sep-08 0:44
professionalRajesh R Subramanian16-Sep-08 0:44 
General[Message Deleted] Pin
Chesnokov Yuriy16-Sep-08 1:29
professionalChesnokov Yuriy16-Sep-08 1:29 
RantRe: error LNK2019: unresolved external symbol PinPopular
Rajesh R Subramanian16-Sep-08 1:42
professionalRajesh R Subramanian16-Sep-08 1:42 
General[Message Deleted] Pin
Chesnokov Yuriy16-Sep-08 2:30
professionalChesnokov Yuriy16-Sep-08 2:30 
GeneralRe: error LNK2019: unresolved external symbol Pin
Mark Salsbery16-Sep-08 8:13
Mark Salsbery16-Sep-08 8:13 
RantRe: error LNK2019: unresolved external symbol PinPopular
Roger Stoltz16-Sep-08 1:56
Roger Stoltz16-Sep-08 1:56 
RantRe: error LNK2019: unresolved external symbol Pin
Rajesh R Subramanian16-Sep-08 2:13
professionalRajesh R Subramanian16-Sep-08 2:13 
GeneralRe: error LNK2019: unresolved external symbol Pin
toxcct16-Sep-08 3:00
toxcct16-Sep-08 3:00 
Answer[Message Deleted] Pin
Chesnokov Yuriy17-Sep-08 0:31
professionalChesnokov Yuriy17-Sep-08 0:31 
GeneralRe: error LNK2019: unresolved external symbol Pin
Rajesh R Subramanian17-Sep-08 0:43
professionalRajesh R Subramanian17-Sep-08 0:43 
Answer[Message Deleted] Pin
Chesnokov Yuriy17-Sep-08 0:20
professionalChesnokov Yuriy17-Sep-08 0:20 
GeneralRe: error LNK2019: unresolved external symbol Pin
Rajesh R Subramanian17-Sep-08 1:07
professionalRajesh R Subramanian17-Sep-08 1:07 
AnswerRe: error LNK2019: unresolved external symbol Pin
Naveen15-Sep-08 21:19
Naveen15-Sep-08 21:19 
GeneralRe: error LNK2019: unresolved external symbol Pin
toxcct15-Sep-08 22:43
toxcct15-Sep-08 22:43 
GeneralRe: error LNK2019: unresolved external symbol Pin
Naveen15-Sep-08 23:14
Naveen15-Sep-08 23:14 
GeneralRe: error LNK2019: unresolved external symbol Pin
Rajesh R Subramanian16-Sep-08 1:55
professionalRajesh R Subramanian16-Sep-08 1:55 

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.