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#
  4. Global Assembly Cache versus COM

Global Assembly Cache versus COM

Scheduled Pinned Locked Moved C#
dotnetcomquestion
11 Posts 5 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.
  • R Offline
    R Offline
    ryanminor
    wrote on last edited by
    #1

    Is Global Assembly Cache similar to COM? It seems you register objects which can be used by other applications. Other applications can then create objects by referencing the GAC?

    N 1 Reply Last reply
    0
    • R ryanminor

      Is Global Assembly Cache similar to COM? It seems you register objects which can be used by other applications. Other applications can then create objects by referencing the GAC?

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      COM is a technology. GAC is a location. COM registration is a lot more involved, with entries in the registry, etc. GAC is a common location to place assemblies, there is no registration or entries in the registry.


      I know the language. I've read a book. - _Madmatt

      R realJSOPR 2 Replies Last reply
      0
      • N Not Active

        COM is a technology. GAC is a location. COM registration is a lot more involved, with entries in the registry, etc. GAC is a common location to place assemblies, there is no registration or entries in the registry.


        I know the language. I've read a book. - _Madmatt

        R Offline
        R Offline
        ryanminor
        wrote on last edited by
        #3

        ok so does it make sense to use COM in C# applications?

        D 1 Reply Last reply
        0
        • R ryanminor

          ok so does it make sense to use COM in C# applications?

          D Offline
          D Offline
          Dan Mos
          wrote on last edited by
          #4

          Well that depends. Do you need to expose you assemblies to/as COM? In other words is there a "legacy" COM based component(s) that needs to use your C#/.Net data/object model? If yes => then YES it makes sence to expose your "whatever" as COMVisible. Else => NO it does NOT make sence.

          R 1 Reply Last reply
          0
          • N Not Active

            COM is a technology. GAC is a location. COM registration is a lot more involved, with entries in the registry, etc. GAC is a common location to place assemblies, there is no registration or entries in the registry.


            I know the language. I've read a book. - _Madmatt

            realJSOPR Offline
            realJSOPR Offline
            realJSOP
            wrote on last edited by
            #5

            Mark Nischalke wrote:

            GAC is a location

            It's also the reaction I have when I see some of these questions...

            .45 ACP - because shooting twice is just silly
            -----
            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

            R 1 Reply Last reply
            0
            • D Dan Mos

              Well that depends. Do you need to expose you assemblies to/as COM? In other words is there a "legacy" COM based component(s) that needs to use your C#/.Net data/object model? If yes => then YES it makes sence to expose your "whatever" as COMVisible. Else => NO it does NOT make sence.

              R Offline
              R Offline
              Ryan Minor
              wrote on last edited by
              #6

              ok so if I had developed in .NET a bunch of data access helper classes for a particular type of database and wanted it used by other .NET applications, each application would need the DLL right? If I had an application in C++ MFC that could use that code, it may make sense to make it COMVisible and then the C++ application could get at the methods?

              N 1 Reply Last reply
              0
              • R Ryan Minor

                ok so if I had developed in .NET a bunch of data access helper classes for a particular type of database and wanted it used by other .NET applications, each application would need the DLL right? If I had an application in C++ MFC that could use that code, it may make sense to make it COMVisible and then the C++ application could get at the methods?

                N Offline
                N Offline
                Not Active
                wrote on last edited by
                #7

                Ryan Minor wrote:

                each application would need the DLL right?

                Each application would need to reference the assembly, whether it is in the GAC, in the local folder, or elsewhere. How the Runtime Locates Assemblies[^]


                I know the language. I've read a book. - _Madmatt

                1 Reply Last reply
                0
                • realJSOPR realJSOP

                  Mark Nischalke wrote:

                  GAC is a location

                  It's also the reaction I have when I see some of these questions...

                  .45 ACP - because shooting twice is just silly
                  -----
                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                  -----
                  "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                  R Offline
                  R Offline
                  Ryan Minor
                  wrote on last edited by
                  #8

                  and what is that supposed to mean, twit?

                  realJSOPR 1 Reply Last reply
                  0
                  • R Ryan Minor

                    and what is that supposed to mean, twit?

                    realJSOPR Offline
                    realJSOPR Offline
                    realJSOP
                    wrote on last edited by
                    #9

                    Ryan Minor wrote:

                    and what is that supposed to mean, twit?

                    Whatever you want it to mean, Sparky...

                    .45 ACP - because shooting twice is just silly
                    -----
                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                    -----
                    "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                    modified on Saturday, January 30, 2010 3:12 PM

                    R 1 Reply Last reply
                    0
                    • realJSOPR realJSOP

                      Ryan Minor wrote:

                      and what is that supposed to mean, twit?

                      Whatever you want it to mean, Sparky...

                      .45 ACP - because shooting twice is just silly
                      -----
                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                      modified on Saturday, January 30, 2010 3:12 PM

                      R Offline
                      R Offline
                      Ryan Minor
                      wrote on last edited by
                      #10

                      read "how to answer a question" where it talks about insults jackass

                      realJSOPR 1 Reply Last reply
                      0
                      • R Ryan Minor

                        read "how to answer a question" where it talks about insults jackass

                        realJSOPR Offline
                        realJSOPR Offline
                        realJSOP
                        wrote on last edited by
                        #11

                        Ryan Minor wrote:

                        read "how to answer a question" where it talks about insults jackass

                        So far, you're the only one launching insults (and just in case you're having a hard time keeping count, that makes twice that you've called me a name).

                        .45 ACP - because shooting twice is just silly
                        -----
                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                        -----
                        "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

                        modified on Saturday, January 30, 2010 3:12 PM

                        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