leledumbo wrote:
I'm writing a web app hosting several tasks in FPC, however one of the task is calling a function residing in a .NET dll. I've made a flat C interface for the dll (so that I can call it from FPC easily), and it works just fine IF the dll is somehow loaded first. Currently, I use a trick to debug my web app from Visual Studio and makes the app calls the dll function. This automatically bootstraps the CLR and as long as there's no update on the dll my app would stay working. However, this is of course cumbersome. I wonder if there's any way to load the dll without such a dirty trick.
Nasty. Presumably the .dll wants to invoke entry points in the calling program: I don't know whether you can work around that and you might end up having to do something like http://www.mono-project.com/Embedding_Mono
-- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal