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. How to create new functions on runtime with or without VC++ editor and to compile them?

How to create new functions on runtime with or without VC++ editor and to compile them?

Scheduled Pinned Locked Moved C / C++ / MFC
c++debuggingtoolshelptutorial
4 Posts 2 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.
  • A Offline
    A Offline
    Arris74
    wrote on last edited by
    #1

    Hello, I would like to give the users of my application the possibility to create their own collection of C++ functions and to execute them. Am I right to say that I could not use neither VC++ editor nor the compiler and debugger on runtime since the application must be rebuild when adding new functions? And I was wondering about one solution that might be to add an editor and C++ script engine but I do not know if it is the best solution and how to start. Could you please give me your advices and some entry points to start? I thank you very much for your help.

    M 1 Reply Last reply
    0
    • A Arris74

      Hello, I would like to give the users of my application the possibility to create their own collection of C++ functions and to execute them. Am I right to say that I could not use neither VC++ editor nor the compiler and debugger on runtime since the application must be rebuild when adding new functions? And I was wondering about one solution that might be to add an editor and C++ script engine but I do not know if it is the best solution and how to start. Could you please give me your advices and some entry points to start? I thank you very much for your help.

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      Adding scripting to your application can be a great idea. I wouldn't expect end users to code in anything too close to C++ though, perhaps VB or even perl, python, javascript, smallbasic, even C#. If you're adding scripting you probably either want to go with something supported by the Microsoft ActiveX Scripting Engine for a desktop only app or one of the Web Browser hosted scripting languages for Web based apps. If your target audience is developers then you probably ought to be shipping them components of one kind or another, like COM objects, which they can utilise in their own software via a published interface specification, rather than tieing them to scripting your application. It really depends on what sort of app you're doing. I added ActiveX scripting support to a presentation graphics package ( a bit like Powerpoint ) a few years ago. That meant you could script the package in VBScript and JavaScript. It was a great fun project but it did take a few months. I found the source for the Microsoft ActiveX test container, which is knocking around the web, absolutely essential in doing this as it implements all the badly documented and obscure ActiveX stuff. Enjoy :)

      Nothing is exactly what it seems but everything with seems can be unpicked.

      A 1 Reply Last reply
      0
      • M Matthew Faithfull

        Adding scripting to your application can be a great idea. I wouldn't expect end users to code in anything too close to C++ though, perhaps VB or even perl, python, javascript, smallbasic, even C#. If you're adding scripting you probably either want to go with something supported by the Microsoft ActiveX Scripting Engine for a desktop only app or one of the Web Browser hosted scripting languages for Web based apps. If your target audience is developers then you probably ought to be shipping them components of one kind or another, like COM objects, which they can utilise in their own software via a published interface specification, rather than tieing them to scripting your application. It really depends on what sort of app you're doing. I added ActiveX scripting support to a presentation graphics package ( a bit like Powerpoint ) a few years ago. That meant you could script the package in VBScript and JavaScript. It was a great fun project but it did take a few months. I found the source for the Microsoft ActiveX test container, which is knocking around the web, absolutely essential in doing this as it implements all the badly documented and obscure ActiveX stuff. Enjoy :)

        Nothing is exactly what it seems but everything with seems can be unpicked.

        A Offline
        A Offline
        Arris74
        wrote on last edited by
        #3

        My target audience is C C++ developers and my application is the final product therefore I cannot package it as ActiveX. I've found some interesting stuffs on C++ scripting @ http://www.codeproject.com/useritems/Personal\_C\_\_\_Compiler.asp http://root.cern.ch/root/Cint.html

        M 1 Reply Last reply
        0
        • A Arris74

          My target audience is C C++ developers and my application is the final product therefore I cannot package it as ActiveX. I've found some interesting stuffs on C++ scripting @ http://www.codeproject.com/useritems/Personal\_C\_\_\_Compiler.asp http://root.cern.ch/root/Cint.html

          M Offline
          M Offline
          Matthew Faithfull
          wrote on last edited by
          #4

          Looks good. I would expect to be picking up a large Open Source code base with this approach which might be a lot of work to bring up to whatever standards your shop requires. If this isn't a problem then it looks like you might have yourself a cool solution. I might even have a peek at some of it myself. I had to implement syntax colouring in an RTF based editor a few years ago and it was extremely difficult with very few code samples at the time. It woudl be interesting to see how it's supposed to work :-D

          Nothing is exactly what it seems but everything with seems can be unpicked.

          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