Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. designing Modules with C++

designing Modules with C++

Scheduled Pinned Locked Moved C / C++ / MFC
learningc++design
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hrishiS
    wrote on last edited by
    #1

    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

    R A 2 Replies Last reply
    0
    • H hrishiS

      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

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      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

      H 1 Reply Last reply
      0
      • H hrishiS

        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

        A Offline
        A Offline
        Adam Roderick J
        wrote on last edited by
        #3

        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.

        Величие не Бога может быть недооценена.

        H 1 Reply Last reply
        0
        • R Rajesh R Subramanian

          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

          H Offline
          H Offline
          hrishiS
          wrote on last edited by
          #4

          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

          R 1 Reply Last reply
          0
          • A Adam Roderick J

            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.

            Величие не Бога может быть недооценена.

            H Offline
            H Offline
            hrishiS
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • H hrishiS

              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

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              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

              H 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                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

                H Offline
                H Offline
                hrishiS
                wrote on last edited by
                #7

                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

                R 1 Reply Last reply
                0
                • H hrishiS

                  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

                  R Offline
                  R Offline
                  Rajesh R Subramanian
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups