You are not logged in.
Pages: 1
Hello,
I have posted a question in lazarus forum
Issue With DLL, exposing some problems related to some made functions incapsulating mORMot functions and classes instances.
So.
Can we instantiate a Connection to remote server with global variable located in a DLL.
if no Can I initialise a global variable in Program, and give it as parameter to functions located in DLL.
Thank you.
Last edited by Bsaidus (2021-06-08 10:08:38)
Offline
Would the opposite of this be possible?
I have a generic mormot server that is used for authentication and to perform some calculations and database actions. This runs offline directy at customers' sites. For some customers, some of the interface functions must be replaced to do calculations differently.
Since I do not want to recompile the exe for every customer request, I'm hoping to move only those functions to a dll and have the mormot server use the custom versions of the functions in the dll if they are present.
From my understanding of TSQLRestServer.ExportServer, the expectation is that the entire mormot server will live inside the dll. Is that correct? I hope to keep the rest server inside my main exe (since that is its only reason to exist) and just extend it with additional or replacement interface functions from the dll. Would that be possible?
Offline
What you expect is perhaps to have two servers.
The DLL is not a "server" in terms of HTTP, but more like a processing unit.
Then you publish the calculations of this DLL to the real main "server".
Offline
That would work, I'll just have to consider that the functions in the dll will need db access and should not be able to be used by other unauthenticated programs/users
Offline
Pages: 1