Click here to Skip to main content
15,894,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: A Bug in the land of construction??? Pin
prasad_som20-Sep-05 2:42
prasad_som20-Sep-05 2:42 
AnswerRe: A Bug in the land of construction??? Pin
Nemanja Trifunovic20-Sep-05 2:50
Nemanja Trifunovic20-Sep-05 2:50 
QuestionOPOS DRIVER - OCX and DLL Pin
honae20-Sep-05 2:18
honae20-Sep-05 2:18 
QuestionC++ related question Pin
Ahsan Askare20-Sep-05 0:55
Ahsan Askare20-Sep-05 0:55 
AnswerRe: C++ related question Pin
toxcct20-Sep-05 1:00
toxcct20-Sep-05 1:00 
GeneralRe: C++ related question Pin
Bob Stanneveld20-Sep-05 1:02
Bob Stanneveld20-Sep-05 1:02 
GeneralRe: C++ related question Pin
Ahsan Askare20-Sep-05 1:03
Ahsan Askare20-Sep-05 1:03 
AnswerRe: C++ related question Pin
Bob Stanneveld20-Sep-05 1:01
Bob Stanneveld20-Sep-05 1:01 
AnswerRe: C++ related question Pin
karmendra_js20-Sep-05 1:24
karmendra_js20-Sep-05 1:24 
AnswerRe: C++ related question Pin
Cedric Moonen20-Sep-05 1:54
Cedric Moonen20-Sep-05 1:54 
AnswerRe: C++ related question Pin
Nemanja Trifunovic20-Sep-05 2:40
Nemanja Trifunovic20-Sep-05 2:40 
QuestionProblem Creating object and accessing public member function. Pin
karmendra_js20-Sep-05 0:20
karmendra_js20-Sep-05 0:20 
AnswerRe: Problem Creating object and accessing public member function. Pin
Bob Stanneveld20-Sep-05 0:38
Bob Stanneveld20-Sep-05 0:38 
GeneralRe: Problem Creating object and accessing public member function. Pin
karmendra_js20-Sep-05 0:51
karmendra_js20-Sep-05 0:51 
GeneralRe: Problem Creating object and accessing public member function. Pin
Satishkumar.B20-Sep-05 2:11
Satishkumar.B20-Sep-05 2:11 
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 

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.