DLLs

Blitz3D Forums/Blitz3D Programming/DLLs

Quite a stupid question...
Can a DLL developed for one programming language be used in a different language. eg. There's a DLL desined for C++, and I want to use it with Blitz, is this possible? (and vice-versa?)

Yes

except if they are vb6 dll's becaus ethey are actualy ole objects...

u can use purebasic,c++,powerbasic and asm ;)etc. to make
a dll for use in bb

except if they are vb6 dll's becaus ethey are actualy ole objects...


Incorrect. BlitzPrinter and BlitzData are both written in VB6. However you have to purchase a 3rd party tool that modifies the project to allow exportable functions.

Kanati

How do you create a dll i powerbasic ?

If you don't include #COMPILE EXE at the top of the code
the compiler will automatically compile it as a dll.

ok, thanks. Just to clarify: I wan to use BulletML which is a DLL designed for use with C/D languages - can I use it with Blitz??

Never heard of it. But if it returns standard data types, doesn't require callbacks or pointers to functions... Then yes. Probably.

Ok thanks. I'll give it a try.