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. How to register COM component and use in c# window application

How to register COM component and use in c# window application

Scheduled Pinned Locked Moved C#
csharpcomhelptutorial
7 Posts 4 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.
  • V Offline
    V Offline
    veereshIndia
    wrote on last edited by
    #1

    Dear All, Iam new to c# window application and also for COM.I have a COM component which is developed in Visual Basic.Now i want to use this component into my c# window application.How can i register and use.The COM is in the form of EXE not in the form of DLL.Please help me out on this. Thanks & Regards Veeresh

    i want to join this group

    J S D 3 Replies Last reply
    0
    • V veereshIndia

      Dear All, Iam new to c# window application and also for COM.I have a COM component which is developed in Visual Basic.Now i want to use this component into my c# window application.How can i register and use.The COM is in the form of EXE not in the form of DLL.Please help me out on this. Thanks & Regards Veeresh

      i want to join this group

      J Offline
      J Offline
      JoeSharp
      wrote on last edited by
      #2

      hi you can register com objects with regsvr32.exe. pass the full filename as parameter. after registering, add a reference to your project selecting the com object registered before. visual studio create a wrapper for the com object and add this wrapper as refernece to the project. regards

      V 1 Reply Last reply
      0
      • V veereshIndia

        Dear All, Iam new to c# window application and also for COM.I have a COM component which is developed in Visual Basic.Now i want to use this component into my c# window application.How can i register and use.The COM is in the form of EXE not in the form of DLL.Please help me out on this. Thanks & Regards Veeresh

        i want to join this group

        S Offline
        S Offline
        Simon P Stevens
        wrote on last edited by
        #3

        Just so you know, you shouldn't post your question in lots of forums at the same time. Just pick the one most relevant forum and post there only. In this case, the C# would have been the best place. http://www.codeproject.com/script/Forums/View.aspx?fid=387161&msg=2810278[^] http://www.codeproject.com/script/Forums/View.aspx?fid=1650&msg=2810275[^] http://www.codeproject.com/script/Forums/View.aspx?fid=1646&msg=2810274[^] http://www.codeproject.com/script/Forums/View.aspx?fid=1648&msg=2810271[^]

        Simon

        1 Reply Last reply
        0
        • J JoeSharp

          hi you can register com objects with regsvr32.exe. pass the full filename as parameter. after registering, add a reference to your project selecting the com object registered before. visual studio create a wrapper for the com object and add this wrapper as refernece to the project. regards

          V Offline
          V Offline
          veereshIndia
          wrote on last edited by
          #4

          Dear All, Sorry i dont where to post these kind of questions.its related to COM and also .net so i posted in all the forums. Dear Jeo, Thanks for your help.When iam registring the COM component using the method which specified. Iam getting the following errors. c:\xyz\xyz\COMcomponent.exe was loaded,but the DLLRegisterServer entry point was not found. c:\xyz\xyz\COMcomponent.exe does not apperas to be a .DLL or .OCX file Please help me on this. Thanks and Regards Veeresh

          i want to join this group

          J 1 Reply Last reply
          0
          • V veereshIndia

            Dear All, Sorry i dont where to post these kind of questions.its related to COM and also .net so i posted in all the forums. Dear Jeo, Thanks for your help.When iam registring the COM component using the method which specified. Iam getting the following errors. c:\xyz\xyz\COMcomponent.exe was loaded,but the DLLRegisterServer entry point was not found. c:\xyz\xyz\COMcomponent.exe does not apperas to be a .DLL or .OCX file Please help me on this. Thanks and Regards Veeresh

            i want to join this group

            J Offline
            J Offline
            JoeSharp
            wrote on last edited by
            #5

            in this case your exe ist not a com object. all com object must contain DLLRegisterServer and DLLUnregisterServer methods. this methods register/unregister the com object.

            V 1 Reply Last reply
            0
            • J JoeSharp

              in this case your exe ist not a com object. all com object must contain DLLRegisterServer and DLLUnregisterServer methods. this methods register/unregister the com object.

              V Offline
              V Offline
              veereshIndia
              wrote on last edited by
              #6

              Hi Jeo, Thanks a lot for help.I will get COM component and i will register. Thanks and Regards Veeresh

              i want to join this group

              1 Reply Last reply
              0
              • V veereshIndia

                Dear All, Iam new to c# window application and also for COM.I have a COM component which is developed in Visual Basic.Now i want to use this component into my c# window application.How can i register and use.The COM is in the form of EXE not in the form of DLL.Please help me out on this. Thanks & Regards Veeresh

                i want to join this group

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                DO NOT CROSSPOST the same question in multiple forums. You spammed about half the forums on the site...

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                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