Click here to Skip to main content
15,919,931 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questiontraffic light simulation..mfc using vb.net Pin
Aisya Sofea20-Sep-05 16:28
Aisya Sofea20-Sep-05 16:28 
AnswerRe: traffic light simulation..mfc using vb.net Pin
Christian Graus20-Sep-05 18:49
protectorChristian Graus20-Sep-05 18:49 
AnswerRe: traffic light simulation..mfc using vb.net Pin
RichardS21-Sep-05 6:08
RichardS21-Sep-05 6:08 
Questionjumble words.... using mfc vb.net Pin
Aisya Sofea20-Sep-05 16:26
Aisya Sofea20-Sep-05 16:26 
AnswerRe: jumble words.... using mfc vb.net Pin
RichardS21-Sep-05 6:04
RichardS21-Sep-05 6:04 
Questionmfc Pin
Aisya Sofea20-Sep-05 16:12
Aisya Sofea20-Sep-05 16:12 
AnswerRe: mfc Pin
Christian Graus20-Sep-05 18:53
protectorChristian Graus20-Sep-05 18:53 
QuestionLink time info gathering Pin
Rostfrei20-Sep-05 10:34
Rostfrei20-Sep-05 10:34 
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
AnswerRe: Link time info gathering Pin
RichardS20-Sep-05 14:23
RichardS20-Sep-05 14:23 
QuestionHelp: RAPI based utility for copying files and folders PC->PocketPC Pin
mark.thornhill20-Sep-05 3:31
mark.thornhill20-Sep-05 3:31 
Questionmovefileex + win9x + directory Pin
emmi20-Sep-05 0:02
emmi20-Sep-05 0:02 
AnswerRe: movefileex + win9x + directory Pin
RichardS20-Sep-05 7:50
RichardS20-Sep-05 7:50 
QuestionAn Algorithm !! Pin
Jomy John19-Sep-05 15:23
Jomy John19-Sep-05 15:23 
AnswerRe: An Algorithm !! Pin
Christian Graus19-Sep-05 18:18
protectorChristian Graus19-Sep-05 18:18 
GeneralRe: An Algorithm !! Pin
VaporTrace19-Sep-05 20:16
VaporTrace19-Sep-05 20:16 
GeneralRe: An Algorithm !! Pin
VaporTrace19-Sep-05 20:20
VaporTrace19-Sep-05 20:20 
GeneralRe: An Algorithm !! Pin
Jomy John19-Sep-05 23:25
Jomy John19-Sep-05 23:25 
GeneralRe: An Algorithm !! Pin
Christian Graus20-Sep-05 11:10
protectorChristian Graus20-Sep-05 11:10 
GeneralRe: An Algorithm !! Pin
Jomy John20-Sep-05 14:53
Jomy John20-Sep-05 14:53 
GeneralRe: An Algorithm !! Pin
Christian Graus20-Sep-05 14:55
protectorChristian Graus20-Sep-05 14:55 
GeneralRe: An Algorithm !! Pin
Jomy John21-Sep-05 4:52
Jomy John21-Sep-05 4:52 
GeneralRe: An Algorithm !! Pin
Christian Graus21-Sep-05 9:11
protectorChristian Graus21-Sep-05 9:11 
GeneralRe: An Algorithm !! Pin
Jomy John21-Sep-05 10:21
Jomy John21-Sep-05 10:21 
GeneralRe: An Algorithm !! Pin
Christian Graus21-Sep-05 10:25
protectorChristian Graus21-Sep-05 10:25 
GeneralRe: An Algorithm !! Pin
Jomy John21-Sep-05 21:48
Jomy John21-Sep-05 21:48 

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.