How do you call dll functions
BlitzMax Forums/BlitzMax Beginners Area/How do you call dll functions
| ||
For my latest project I want to be able to make my BlitzMAx application communicate with the outside world. A colleague of mine has written a test dll in C#. Now I'm trying to call the functions in the dll but with no success. I found some examples but I can't make it work. Here is the BlitzMAx code: When I run this it says: Unhandled Exception:Attempt to call uninitialized function pointer when reaching the line: Print hello() Seaching the forum and the internet doesn't bring me any further. So, I was hoping anyone in the community could help me. |
| ||
A DLL is not the same as an assembly, which is the only thing you can create with C# directly. Tell your friend to create a win32 DLL (CDecl DLL) or a wrapper DLL for it. Otherwise yo ucan not use it. |