Imports STATCONNECTORCLNTLibImports StatConnectorCommonLibImports STATCONNECTORSRVLibDim sc1 As StatConnector = New STATCONNECTORSRVLib.StatConnectorClass()sc1 = New STATCONNECTORSRVLib.StatConnectorClass()sc1.Init("R")sc1.Evaluate("1+1")
How are DLLs with Lazarus? Perhaps that could be a solution ...
QuoteHow are DLLs with Lazarus? Perhaps that could be a solution ...How what? Create or link? Well, in any case, consult the documentation: http://www.freepascal.org/docs-html/prog/progch12.html
Link. How to link a DLL?
The code provided by Dieter Menne is interesting, but not versatile. It uses COM interfaces and DLLs making the software restricted to Windows.A cross-platform solution would be preferable, e.g. by using embedded shell calls.
QuoteLink. How to link a DLL?You have must declare the function(s) you'd like to call from the dll using external declaration AND call it in your program. The DLL will then be automatically linked.
Please would you have a sample code? Thank you very much!
Quote from: jwdietrich on February 16, 2013, 04:29:01 pmThe code provided by Dieter Menne is interesting, but not versatile. It uses COM interfaces and DLLs making the software restricted to Windows.A cross-platform solution would be preferable, e.g. by using embedded shell calls.I do not care that is only for windows. How would that another solution, using embedded shell calls?Thanks very much!