- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to include a dll in Dymola?
How to include a dll in Dymola?
How to include a dll in Dymola?
Hello everybody,
I managed to use an external function from a .lib file using:
annotation(Include="#include <add2.h>", Library="ext");
But I currently have the actual functions stored in a dll. Can I include the dll somehow?
Thanks!
Cristian Stefan
Re: How to include a dll in Dymola?
Hello Cristian
As far as I know you cannot load directly a DLL into OpenModelica. However you can easily create a lib with some C functions using LoadLibrary() and GetProcAddress() to load the DLL and calling the DLL functions.
If you need more details we will be glad to answer you.
Best regards
Koldo
Re: How to include a dll in Dymola?
Hello,
@Koldo: I don't know what you mean by creating a lib using LoadLibrary(). Can you expand on that? Thanks!
@Gora: I already tried that , but it only shows you how to call functions from a .lib library and not a .dll . The only thing they say about using dll's is that you can use a wrapper function which I don't know exactly how it works.
Best regards,
Cristian
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to include a dll in Dymola?