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. what about dll application

what about dll application

Scheduled Pinned Locked Moved C / C++ / MFC
c++workspace
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.
  • G Offline
    G Offline
    Gerald Mercet
    wrote on last edited by
    #1

    I would like to create a vc++ application which could be used from excel. in fact i would like to use the calculation possibilities from c++ and use the environment of excel. I heard that i have to create a dll application, but i never do that before, so i would like to know if anybody could give me a sample of code or indicate me a place where i could find some explanation to do that. thanks in advance gerald

    H M 2 Replies Last reply
    0
    • G Gerald Mercet

      I would like to create a vc++ application which could be used from excel. in fact i would like to use the calculation possibilities from c++ and use the environment of excel. I heard that i have to create a dll application, but i never do that before, so i would like to know if anybody could give me a sample of code or indicate me a place where i could find some explanation to do that. thanks in advance gerald

      H Offline
      H Offline
      HintiFlo
      wrote on last edited by
      #2

      there's an MSDN sample called COMEXCEL, which controls an Excel-programm out of a c++-app. Maybe youcan make it go in the other direction! good luck!

      G 1 Reply Last reply
      0
      • H HintiFlo

        there's an MSDN sample called COMEXCEL, which controls an Excel-programm out of a c++-app. Maybe youcan make it go in the other direction! good luck!

        G Offline
        G Offline
        Gerald Mercet
        wrote on last edited by
        #3

        i don't want to control excel, i just want to do some calculation with c++ from excel so that i could use the excel environment and benefit of the vc++ compilation do you see what i mean?

        M 1 Reply Last reply
        0
        • G Gerald Mercet

          i don't want to control excel, i just want to do some calculation with c++ from excel so that i could use the excel environment and benefit of the vc++ compilation do you see what i mean?

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          You'll probably need to create a COM DLL that can be called from Excel VBA via the CreateObject method. Michael :-)

          G 1 Reply Last reply
          0
          • M Michael P Butler

            You'll probably need to create a COM DLL that can be called from Excel VBA via the CreateObject method. Michael :-)

            G Offline
            G Offline
            Gerald Mercet
            wrote on last edited by
            #5

            could you tell me more about this way of working? thanks

            M 1 Reply Last reply
            0
            • G Gerald Mercet

              could you tell me more about this way of working? thanks

              M Offline
              M Offline
              Michael P Butler
              wrote on last edited by
              #6

              It depends on what your are trying to achieve but in theory, Create an ATL DLL with a Simple COM object, add your methods to the object. In Excel create your VBA code to call your functions and return your results. If you need a more detailed answer, you'll need to supply more information about what you want to do. Michael :-)

              G 1 Reply Last reply
              0
              • G Gerald Mercet

                I would like to create a vc++ application which could be used from excel. in fact i would like to use the calculation possibilities from c++ and use the environment of excel. I heard that i have to create a dll application, but i never do that before, so i would like to know if anybody could give me a sample of code or indicate me a place where i could find some explanation to do that. thanks in advance gerald

                M Offline
                M Offline
                Michael P Butler
                wrote on last edited by
                #7

                Do a search on MSDN for "Excel COM Add-ins and Automation Add-ins" or do a search for Office COM Add-ins. Michael :-)

                1 Reply Last reply
                0
                • M Michael P Butler

                  It depends on what your are trying to achieve but in theory, Create an ATL DLL with a Simple COM object, add your methods to the object. In Excel create your VBA code to call your functions and return your results. If you need a more detailed answer, you'll need to supply more information about what you want to do. Michael :-)

                  G Offline
                  G Offline
                  Gerald Mercet
                  wrote on last edited by
                  #8

                  in fact, even i'm not sure if it's possible, i would like to creta a library of functions which could be called from excel or vba, i don't know, so that as i need some array of inputs which are created in excel, i could use the inputs parameters in excel and use c++ methods to do calculations. is it enough to help me, because it will be very difficult to specify all my application in only few words. thanks gerald

                  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