Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sending structutres about winsocks sendto Pin
CrazyDogg16-Sep-08 0:05
CrazyDogg16-Sep-08 0:05 
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 
As far as I know (I'm not a C expert), if you declare a C function static, its scope will be limited to the file in which it has been defined. So, you can't use it from another file.

Why do you need to have it static ?


Chesnokov Yuriy wrote:
static BOOL CSomeDlg::OnInitDialog() //can not be static
{
//...
}


You can't declare OnInitDialog as static: it is implemented from the base CDlg class. A static member function means that the function doesn't not belong to a particular instance of the class (so you can access it using the :: operator: CSomeDlg::MyFunction() ).

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

QuestionRe: error LNK2019: unresolved external symbol Pin
Roger Stoltz15-Sep-08 22:33
Roger Stoltz15-Sep-08 22:33 
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 

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.