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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can i use ActiveX control in console base application?

How can i use ActiveX control in console base application?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncom
9 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.
  • B Offline
    B Offline
    Banks K
    wrote on last edited by
    #1

    Hi all , I have one Dll which is activex control named as “AxInterop.ECLActiveX.dll” I have to use this DLL in my application which is console base application. this DLL export some function like "compreesFile" etc. can anybody tell me how can call function from that DLL. if anybody have for the please share with me. thanks bankey khandelwal

    W C S 3 Replies Last reply
    0
    • B Banks K

      Hi all , I have one Dll which is activex control named as “AxInterop.ECLActiveX.dll” I have to use this DLL in my application which is console base application. this DLL export some function like "compreesFile" etc. can anybody tell me how can call function from that DLL. if anybody have for the please share with me. thanks bankey khandelwal

      W Offline
      W Offline
      With_problem
      wrote on last edited by
      #2

      I am also strrugling with same problem....you can have look at this site it may be helpful to you http://www.codeproject.com/dll/vbactivexwithvc.asp[^]

      B 1 Reply Last reply
      0
      • W With_problem

        I am also strrugling with same problem....you can have look at this site it may be helpful to you http://www.codeproject.com/dll/vbactivexwithvc.asp[^]

        B Offline
        B Offline
        Banks K
        wrote on last edited by
        #3

        thanks for ur reply but i have DLL which also developed in vc++ and also when trying to import this DLL as # import "Interop.ECLActiveX.dll" it giving a error like fatal error C1083: Cannot open type library file: 'e:\workarea\data\code\consolebasetest\interop.eclactivex.dll': Error loading type library/DLL. also this dll is at the same path can you explain me what is the problem ?

        W 1 Reply Last reply
        0
        • B Banks K

          thanks for ur reply but i have DLL which also developed in vc++ and also when trying to import this DLL as # import "Interop.ECLActiveX.dll" it giving a error like fatal error C1083: Cannot open type library file: 'e:\workarea\data\code\consolebasetest\interop.eclactivex.dll': Error loading type library/DLL. also this dll is at the same path can you explain me what is the problem ?

          W Offline
          W Offline
          With_problem
          wrote on last edited by
          #4

          you can find lot of project here hoe to load vc++ dll....see this link http://www.codeproject.com/dll/[^]

          1 Reply Last reply
          0
          • B Banks K

            Hi all , I have one Dll which is activex control named as “AxInterop.ECLActiveX.dll” I have to use this DLL in my application which is console base application. this DLL export some function like "compreesFile" etc. can anybody tell me how can call function from that DLL. if anybody have for the please share with me. thanks bankey khandelwal

            C Offline
            C Offline
            Cedric Moonen
            wrote on last edited by
            #5

            Banks K wrote:

            I have one Dll which is activex control named as “AxInterop.ECLActiveX.dll”

            ActiveX have the '.ocx' extension, not '.dll'. So, there is something wrong here.


            Cédric Moonen Software developer
            Charting control [v1.1]

            M 1 Reply Last reply
            0
            • C Cedric Moonen

              Banks K wrote:

              I have one Dll which is activex control named as “AxInterop.ECLActiveX.dll”

              ActiveX have the '.ocx' extension, not '.dll'. So, there is something wrong here.


              Cédric Moonen Software developer
              Charting control [v1.1]

              M Offline
              M Offline
              Monty2
              wrote on last edited by
              #6

              Cedric Moonen wrote:

              ActiveX have the '.ocx' extension, not '.dll'.

              ocx and dll are both same, ocx is just a dll with the extention renamed.


              OK, so what's the speed of dark?

              C 1 Reply Last reply
              0
              • M Monty2

                Cedric Moonen wrote:

                ActiveX have the '.ocx' extension, not '.dll'.

                ocx and dll are both same, ocx is just a dll with the extention renamed.


                OK, so what's the speed of dark?

                C Offline
                C Offline
                Cedric Moonen
                wrote on last edited by
                #7

                Monty2 wrote:

                ocx and dll are both same, ocx is just a dll with the extention renamed.

                Not entirely true. ActiveX is based on a dll but it is more than just a regular dll (it provides much more than a simple dll). Thus there something strange here. Why does it speak about an ActiveX that has a .dll extension ? I just wanted to clarify the situation.


                Cédric Moonen Software developer
                Charting control [v1.1]

                S 1 Reply Last reply
                0
                • C Cedric Moonen

                  Monty2 wrote:

                  ocx and dll are both same, ocx is just a dll with the extention renamed.

                  Not entirely true. ActiveX is based on a dll but it is more than just a regular dll (it provides much more than a simple dll). Thus there something strange here. Why does it speak about an ActiveX that has a .dll extension ? I just wanted to clarify the situation.


                  Cédric Moonen Software developer
                  Charting control [v1.1]

                  S Offline
                  S Offline
                  Sam Hobbs
                  wrote on last edited by
                  #8

                  Not all files with a DLL extension are regular DLLs. An ActiveX control can be in a file with a DLL extension. It is common for an ActiveX control to be in a file with the OCX extension, but I think that is primarily due to the way VB uses them. Windows will use whatever file that is registered.

                  1 Reply Last reply
                  0
                  • B Banks K

                    Hi all , I have one Dll which is activex control named as “AxInterop.ECLActiveX.dll” I have to use this DLL in my application which is console base application. this DLL export some function like "compreesFile" etc. can anybody tell me how can call function from that DLL. if anybody have for the please share with me. thanks bankey khandelwal

                    S Offline
                    S Offline
                    Sam Hobbs
                    wrote on last edited by
                    #9

                    The definition of "ActiveX Control" is nebulous but typically they include a UI. If the control has a UI then you probably need to create a window for it.

                    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