COM dlls
BlitzMax Forums/BlitzMax Programming/COM dlls
| ||
Hello people! :) I just wondering; Do BlitzMax support use/loading of COM .dlls? I have made a COM dll in C#, but how do I access it from BlitzMax? Anyone? Thanks in advance, Docster |
| ||
No idea. What's a COM dll ? |
| ||
no, Bmax doesnt do activex style dll's but you can modify a '.net' dll to expose its functions as if it were a standard dll with cdecl or stdcall. There is a tutorial on this site somewhere that has the instructions. There is also a C library called DispHelper [http://disphelper.sourceforge.net/] that can allow you to use activex dlls in C [and BMax], but Im not skilled in C enough to just drop it in and use it. However it would be a perfect project for Brucey! [hint hint]:) |
| ||
Too bad disphelper only does dispinterfaces. not all com objects have a dispinterface, and they can be quite slow as they use strings as access modifiers. You can still use regular COM objects in blitzmax though, if you have functions exported to create/free the objects. Extern "win32" Type IMyInterface Extends IUnknown ... See PUB.DirectX for a better example. |
| ||
Well, I created my dll in c++ instead. :P But, I'll have a look at disphelper and pub.directx. Thanks for all help! :D Doc |