designing Modules with C++
-
Hi to All Could anyone please give me some links or docs or any hints for the following I am trying to learn to design a project. Say I have 5 modules...I want to interact each module from every module by means of messages(class objects).... Till now I was planning to make all the 4 modules as a dll and get the methods dynamically from the main modules...But thats just an imagination, and this may not be efficient too. I have not implemented anything yet....Could anyone give me some tips or hints to do the same. Also if there is any other methodology to do so... Basically I am trying to design a project with several modules...Its just for my self learning... thanks in advance
----------------------------- I am a beginner
-
Hi to All Could anyone please give me some links or docs or any hints for the following I am trying to learn to design a project. Say I have 5 modules...I want to interact each module from every module by means of messages(class objects).... Till now I was planning to make all the 4 modules as a dll and get the methods dynamically from the main modules...But thats just an imagination, and this may not be efficient too. I have not implemented anything yet....Could anyone give me some tips or hints to do the same. Also if there is any other methodology to do so... Basically I am trying to design a project with several modules...Its just for my self learning... thanks in advance
----------------------------- I am a beginner
Based on what those "modules" could possibly mean, and how they are related to each other, you may decide upon the way they would communicate with each other. If you could give some precise information (read this post[^]), someone may be able to suggest you something suitable.
“Follow your bliss.” – Joseph Campbell
-
Hi to All Could anyone please give me some links or docs or any hints for the following I am trying to learn to design a project. Say I have 5 modules...I want to interact each module from every module by means of messages(class objects).... Till now I was planning to make all the 4 modules as a dll and get the methods dynamically from the main modules...But thats just an imagination, and this may not be efficient too. I have not implemented anything yet....Could anyone give me some tips or hints to do the same. Also if there is any other methodology to do so... Basically I am trying to design a project with several modules...Its just for my self learning... thanks in advance
----------------------------- I am a beginner
Please be clear whether you want to know about the class level design i.e Detailed design or component level design, i.e Architecture design. I hope you are looking for both then please have look at Design patterns, please check this, either study with Eric Gamma's text or just check [^] These topics will surely help you.
Величие не Бога может быть недооценена.
-
Based on what those "modules" could possibly mean, and how they are related to each other, you may decide upon the way they would communicate with each other. If you could give some precise information (read this post[^]), someone may be able to suggest you something suitable.
“Follow your bliss.” – Joseph Campbell
thanks Rajesh I guess my idea was very generic.... About the communicating with each another, I guess I have mentioned that I want to communicate with classes....say message1 message2... I was looking for some common approach to design the modules in a project in VC++, where the modules communicate by any means....(may be class messages, or anything u want)... Please do let me know for further clarification, if any.
----------------------------- I am a beginner
-
Please be clear whether you want to know about the class level design i.e Detailed design or component level design, i.e Architecture design. I hope you are looking for both then please have look at Design patterns, please check this, either study with Eric Gamma's text or just check [^] These topics will surely help you.
Величие не Бога может быть недооценена.
thanks a lot for your reply...I will look in thorough all these I was looking something like class desing.... example, make all modules as a dll....export a class pointer ...get the handle and get the functions of that module....etc etc
----------------------------- I am a beginner
-
thanks Rajesh I guess my idea was very generic.... About the communicating with each another, I guess I have mentioned that I want to communicate with classes....say message1 message2... I was looking for some common approach to design the modules in a project in VC++, where the modules communicate by any means....(may be class messages, or anything u want)... Please do let me know for further clarification, if any.
----------------------------- I am a beginner
hrishiS wrote:
I guess my idea was very generic....
That's the problem. If you ask a specific question like "How can two windows objects communicate with each other", I'll say "Post or send registered window messages". But to a generic question, only a 'generic' answer can be given. Narrow down your query, say me what exactly are those objects that needs to communicate with one another. And for God's sake what can a "module" possibly mean?! You seem to be using that term very frequently. Please be specific.
“Follow your bliss.” – Joseph Campbell
-
hrishiS wrote:
I guess my idea was very generic....
That's the problem. If you ask a specific question like "How can two windows objects communicate with each other", I'll say "Post or send registered window messages". But to a generic question, only a 'generic' answer can be given. Narrow down your query, say me what exactly are those objects that needs to communicate with one another. And for God's sake what can a "module" possibly mean?! You seem to be using that term very frequently. Please be specific.
“Follow your bliss.” – Joseph Campbell
thanks Modules are again different projects....(whose output can be dlls) By objects, I mean simple objects of some classes...eg: class Message1 { .... } Message1 *objPtr= newMessage1(); This Objptr, i should be able to pass with another modules
----------------------------- I am a beginner
-
thanks Modules are again different projects....(whose output can be dlls) By objects, I mean simple objects of some classes...eg: class Message1 { .... } Message1 *objPtr= newMessage1(); This Objptr, i should be able to pass with another modules
----------------------------- I am a beginner
Your post is again blunt.
hrishiS wrote:
This Objptr, i should be able to pass with another modules
:rolleyes: Please read Hooks and DLLs by Dr. Joseph Newcomer[^] I recommend that you read up on the articles related to DLLs for beginners. There's plenty on CP, please do a search.
“Follow your bliss.” – Joseph Campbell