Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionthreading in networking Pin
ppp00120-Sep-05 0:05
ppp00120-Sep-05 0:05 
AnswerRe: threading in networking Pin
Bob Stanneveld20-Sep-05 0:41
Bob Stanneveld20-Sep-05 0:41 
AnswerRe: threading in networking Pin
Glenn Inman20-Sep-05 2:29
Glenn Inman20-Sep-05 2:29 
QuestionChanging the BG color of a multiline edit box Pin
Mohammad A Gdeisat19-Sep-05 23:19
Mohammad A Gdeisat19-Sep-05 23:19 
QuestionSeveral pages working for one var, where to save it? Pin
followait19-Sep-05 23:13
followait19-Sep-05 23:13 
AnswerRe: Several pages working for one var, where to save it? Pin
Cedric Moonen19-Sep-05 23:33
Cedric Moonen19-Sep-05 23:33 
GeneralRe: Several pages working for one var, where to save it? Pin
toxcct20-Sep-05 3:23
toxcct20-Sep-05 3:23 
QuestionCompile time info gathering Pin
Rostfrei19-Sep-05 23:06
Rostfrei19-Sep-05 23:06 
Hello!

I wonder if there is some way or some trick to gather some info during compile time and using it at runtime ?

example1:
We have many cpp files. We have some #define CPP_COUNTER 0. There would be some code (macro?) at the begining of every cpp file which would increase this counter for 1. When linking the project, CPP_COUNTER would hold the number of cpp files. In runtime I would be aware of cpp files in the project by reading CPP_COUNTER definition.

example2:
We have many files in the project, but functionaly they are divided in few modules (dsp, writter, reader, etc). At compile time every cpp file would have at the begining some code which would register (to some global variable) to which module it belongs. Something like
REGISTER_MODULE(_FILENAME_, "disk writter")
In runtime I would be aware of all the modules in the system by looking at the global variable of all registered modules.

I would need something like example2 shows. Is it even possible? Is there some way?

Best regards,

Rostfrei
QuestionProblem with two views Pin
karmendra_js19-Sep-05 22:53
karmendra_js19-Sep-05 22:53 
AnswerRe: Problem with two views Pin
Calc2019-Sep-05 23:40
Calc2019-Sep-05 23:40 
Questioncdecl or stdcall - foreign dll, no source, headers Pin
Garth J Lancaster19-Sep-05 22:46
professionalGarth J Lancaster19-Sep-05 22:46 
AnswerRe: cdecl or stdcall - foreign dll, no source, headers Pin
Tim Smith20-Sep-05 3:47
Tim Smith20-Sep-05 3:47 
GeneralRe: cdecl or stdcall - foreign dll, no source, headers Pin
Garth J Lancaster20-Sep-05 4:09
professionalGarth J Lancaster20-Sep-05 4:09 
QuestionGUI Architecture. Pin
karmendra_js19-Sep-05 22:41
karmendra_js19-Sep-05 22:41 
AnswerRe: GUI Architecture. Pin
Cedric Moonen19-Sep-05 22:54
Cedric Moonen19-Sep-05 22:54 
GeneralRe: GUI Architecture. Pin
karmendra_js20-Sep-05 0:30
karmendra_js20-Sep-05 0:30 
AnswerRe: GUI Architecture. Pin
Bob Stanneveld20-Sep-05 0:58
Bob Stanneveld20-Sep-05 0:58 
QuestionCreating .hlp file for my MFCApp Pin
anderslundsgard19-Sep-05 22:23
anderslundsgard19-Sep-05 22:23 
AnswerRe: Creating .hlp file for my MFCApp Pin
*Dreamz20-Sep-05 0:00
*Dreamz20-Sep-05 0:00 
QuestionMewtocol header and terminator Pin
Member 216100419-Sep-05 22:09
Member 216100419-Sep-05 22:09 
Questionrandom numbers Pin
Raza568019-Sep-05 22:07
Raza568019-Sep-05 22:07 
AnswerRe: random numbers Pin
kakan19-Sep-05 22:29
professionalkakan19-Sep-05 22:29 
AnswerRe: random numbers Pin
Mohammad A Gdeisat19-Sep-05 23:24
Mohammad A Gdeisat19-Sep-05 23:24 
QuestionDisable toolbar in CPreviewView Pin
YaronNir19-Sep-05 21:30
YaronNir19-Sep-05 21:30 
QuestionProgram security Pin
mikobi19-Sep-05 20:30
mikobi19-Sep-05 20:30 

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.