Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEditView and wrapping [modified] Pin
Trollslayer6-Apr-06 22:41
mentorTrollslayer6-Apr-06 22:41 
Questioncan any one help me!! Pin
nanaolay6-Apr-06 12:26
nanaolay6-Apr-06 12:26 
AnswerRe: can any one help me!! Pin
Lord Kixdemp6-Apr-06 13:07
Lord Kixdemp6-Apr-06 13:07 
AnswerRe: can any one help me!! Pin
Trollslayer6-Apr-06 13:28
mentorTrollslayer6-Apr-06 13:28 
QuestionHELP!! Include files need each other! Pin
Lord Kixdemp6-Apr-06 11:34
Lord Kixdemp6-Apr-06 11:34 
AnswerRe: HELP!! Include files need each other! Pin
Xing Chen6-Apr-06 15:37
Xing Chen6-Apr-06 15:37 
AnswerRe: HELP!! Include files need each other! Pin
Saurabh.Garg6-Apr-06 15:41
Saurabh.Garg6-Apr-06 15:41 
AnswerRe: HELP!! Include files need each other! Pin
John R. Shaw6-Apr-06 15:56
John R. Shaw6-Apr-06 15:56 
Excuse me if I am a little confused, but I did not see a reference to T_UserThread() any where in SocketHandling.h.

If you must place the actual code for T_UserThread() in the header instead of a source code file, then you should mark it as inline. If you do not then you will get a whole lot of redefinition errors, because each source code file that includes the header will have its own copy of the function.

Another solution to such problems, at least when dealing with classes, is to use forward declarations. A forward declaration is sort of like a prototype, only for classes instead of functions.

If all else fails, then move the code for T_UserThread() into a source code file and just place a prototype in the SocketHandling.h header as well as the Globals.h header. I do not recommend this solution but it will work, you just have to make sure that both prototypes are well commented so that you know there are two of them.

Good Luck!

INTP
Every thing is relative...
GeneralRe: HELP!! Include files need each other! Pin
Lord Kixdemp6-Apr-06 16:49
Lord Kixdemp6-Apr-06 16:49 
GeneralRe: HELP!! Include files need each other! Pin
John R. Shaw6-Apr-06 18:39
John R. Shaw6-Apr-06 18:39 
GeneralRe: HELP!! Include files need each other! Pin
John R. Shaw6-Apr-06 18:55
John R. Shaw6-Apr-06 18:55 
AnswerRe: HELP!! Include files need each other! Pin
includeh106-Apr-06 16:45
includeh106-Apr-06 16:45 
AnswerRe: HELP!! Include files need each other! Pin
Ryan Binns6-Apr-06 18:22
Ryan Binns6-Apr-06 18:22 
GeneralRe: HELP!! Include files need each other! Pin
John R. Shaw6-Apr-06 19:11
John R. Shaw6-Apr-06 19:11 
GeneralRe: HELP!! Include files need each other! Pin
Ryan Binns6-Apr-06 19:52
Ryan Binns6-Apr-06 19:52 
GeneralRe: HELP!! Include files need each other! Pin
John R. Shaw6-Apr-06 20:34
John R. Shaw6-Apr-06 20:34 
GeneralRe: HELP!! Include files need each other! Pin
Ryan Binns6-Apr-06 23:20
Ryan Binns6-Apr-06 23:20 
GeneralRe: HELP!! Include files need each other! Pin
Blake Miller7-Apr-06 4:21
Blake Miller7-Apr-06 4:21 
GeneralRe: HELP!! Include files need each other! Pin
Lord Kixdemp10-Apr-06 15:02
Lord Kixdemp10-Apr-06 15:02 
GeneralRe: HELP!! Include files need each other! Pin
Blake Miller11-Apr-06 4:29
Blake Miller11-Apr-06 4:29 
GeneralRe: HELP!! Include files need each other! Pin
Lord Kixdemp11-Apr-06 16:49
Lord Kixdemp11-Apr-06 16:49 
GeneralRe: HELP!! Include files need each other! Pin
Blake Miller12-Apr-06 4:29
Blake Miller12-Apr-06 4:29 
GeneralRe: HELP!! Include files need each other! Pin
Lord Kixdemp13-Apr-06 16:21
Lord Kixdemp13-Apr-06 16:21 
Questiontype conversions Pin
arr.cpp6-Apr-06 11:20
arr.cpp6-Apr-06 11:20 
AnswerRe: type conversions Pin
Lord Kixdemp6-Apr-06 13:04
Lord Kixdemp6-Apr-06 13:04 

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.