COM dlls

BlitzMax Forums/BlitzMax Programming/COM dlls

Docster(Posted 2009) [#1]
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


Brucey(Posted 2009) [#2]
No idea. What's a COM dll ?


GW(Posted 2009) [#3]
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]:)


grable(Posted 2009) [#4]
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.


Docster(Posted 2009) [#5]
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