Click here to Skip to main content
15,905,229 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: calling a static function Pin
CPallini15-Sep-08 7:39
mveCPallini15-Sep-08 7:39 
GeneralRe: calling a static function Pin
toxcct15-Sep-08 7:42
toxcct15-Sep-08 7:42 
GeneralRe: calling a static function Pin
CPallini15-Sep-08 7:51
mveCPallini15-Sep-08 7:51 
GeneralRe: calling a static function Pin
Mark Salsbery15-Sep-08 7:51
Mark Salsbery15-Sep-08 7:51 
GeneralRe: calling a static function Pin
CPallini15-Sep-08 7:55
mveCPallini15-Sep-08 7:55 
GeneralRe: calling a static function Pin
Mark Salsbery15-Sep-08 8:03
Mark Salsbery15-Sep-08 8:03 
GeneralRe: calling a static function Pin
steph515-Sep-08 6:31
steph515-Sep-08 6:31 
GeneralRe: calling a static function Pin
Mark Salsbery15-Sep-08 6:44
Mark Salsbery15-Sep-08 6:44 
You can call a static method of a class from other cpp files!

You need to link the files however.

The problem is in your project - the linker isn't finding
the file with the function being called. Fix that and it
will work.

The two files in your example ARE in the same project, right?

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: calling a static function Pin
steph515-Sep-08 6:54
steph515-Sep-08 6:54 
GeneralRe: calling a static function Pin
Rajesh R Subramanian17-Sep-08 23:00
professionalRajesh R Subramanian17-Sep-08 23:00 
QuestionImage Processing Question Pin
sherinsabry15-Sep-08 4:29
sherinsabry15-Sep-08 4:29 
AnswerRe: Image Processing Question Pin
Saurabh.Garg15-Sep-08 5:10
Saurabh.Garg15-Sep-08 5:10 
GeneralRe: Image Processing Question Pin
sherinsabry22-Sep-08 7:21
sherinsabry22-Sep-08 7:21 
QuestionImage Processing Question Pin
sherinsabry15-Sep-08 4:29
sherinsabry15-Sep-08 4:29 
AnswerRe: Image Processing Question Pin
Mark Salsbery15-Sep-08 5:44
Mark Salsbery15-Sep-08 5:44 
GeneralRe: Image Processing Question Pin
sherinsabry22-Sep-08 7:22
sherinsabry22-Sep-08 7:22 
GeneralRe: Image Processing Question Pin
Mark Salsbery22-Sep-08 7:28
Mark Salsbery22-Sep-08 7:28 
QuestionStrange problem in accept() function of winsock... Pin
oppstp15-Sep-08 3:33
oppstp15-Sep-08 3:33 
AnswerRe: Strange problem in accept() function of winsock... Pin
Malli_S15-Sep-08 4:44
Malli_S15-Sep-08 4:44 
GeneralRe: Strange problem in accept() function of winsock... Pin
oppstp15-Sep-08 16:36
oppstp15-Sep-08 16:36 
AnswerRe: Strange problem in accept() function of winsock... Pin
Mark Salsbery16-Sep-08 8:29
Mark Salsbery16-Sep-08 8:29 
QuestionIXMLHTTPRequest Problem Pin
alireza_shokoie15-Sep-08 3:14
alireza_shokoie15-Sep-08 3:14 
QuestionMAPI question Pin
josip cagalj15-Sep-08 2:55
josip cagalj15-Sep-08 2:55 
QuestionTranslateMessage in NON-GUI threads ... Pin
Joseph Marzbani15-Sep-08 2:16
Joseph Marzbani15-Sep-08 2:16 
AnswerRe: TranslateMessage in NON-GUI threads ... Pin
SandipG 15-Sep-08 2:21
SandipG 15-Sep-08 2:21 

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.