Re: Function pointers for DLL functions?




"David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:dqsch.18266$9v5.4234@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"Peter Olcott" <NoSpam@xxxxxxxxxxxxx> wrote in message
news:gjYbh.1273$BD5.84@xxxxxxxxxxxxxxx

I am not encountering a problem, I am examining the feasibility of making an
extensible interpreted scripting language. I want to provide the capability
of extending the language by adding functions written in C++. Although the
functions would be written in C++ they would be callable from the interpreted
language.


Why don't you embed a Python or Lua interpreter into your C++ app? These
script languages are made to be embedded into your app and you can easily
expose C functions callable by the script. I highly recommend this over
ActiveX because you control the whole thing.

-- David



Your idea lead me to another idea that I will probably adopt. Although the
syntax of the languages that you suggested would require too much learning curve
for my users, an embedded C/C++ interpreter would not. The end result of these
combined ideas drastically reduces my development time, and development costs.
At least one of the two C/C++ interpreters below is offered as complete
freeware.

http://root.cern.ch/root/Cint.html
http://www.softintegration.com/


.



Relevant Pages

  • Re: Why Ive returned
    ... It was a parody of an absurd idea. ... not have the C language required to major at Kernighan's Princeton, ... Kernighan and John Hennessy, the RISC computer architect, rejected the ... the firmware interpreter for 1401 code on the old IBM 360 mainframe, ...
    (comp.programming)
  • Re: Mathematical ASL?
    ... You can imagine when I was interpreting for computer science classes, and the professor said "UNIX", and my non-computer-literate interpreter colleague signed "eunuchs". ... Teachers may need to make clear that they are using word in a technical sense for both their hearing and deaf students. ... Sign language can represent italics or "quotes" during conversation in ways spoken langauge cannot, ... If you say "the difference between a series and a sequence is X", and the same sign is used for both series and sequence (as they are in non-technical ASL), the interpreter will easily be able to create that distinction for the students whether or not s/he knows the math signs, and maintain the distinction going forward. ...
    (sci.math)
  • Re: OFF-TOPIC:: Why Lisp is not my favorite programming language
    ... The interpreter would be written in C. ... It is always possible to beat any interpreted language for speed using ... >at me for calling lisp a parsing language... ... I would write a parser to do so. ...
    (comp.lang.python)
  • Re: Which Is The Better Approach To Working With Javascript?
    ... Java SCRIPT runs in the browser exclusively. ... No language is written just for a single environment. ... You have to understand that I come from a hardware background, a huge area that is complately unknown to most 'computer programmers' whose life begins and ends with an interpreter or compiler.. ...
    (comp.lang.php)
  • Rexx and Security
    ... I surmise from the text that the thought is that simply having an interpretive / scripting language installed in computers is dangerous as someone might develop an evil script / program with that tool. ... I would conclude that the only secure computing model in the opinions of the writers is that of the Linux / Unix environment which has the execute bit in the filesystem, and that the only programs allowed to be installed are statically compiled C/C++ programs. ... Requiring the interpreter to only interpret source files with the execute bit set is an option that comes to my mind... ...
    (comp.lang.rexx)