Page 1 of 1

.dll creation - use by third party programs - DBPro

Posted: Mon Nov 17, 2003 8:19 pm
by Duffer
Hi, Just ordered PureBasic - looks (I hope) like a fine piece of kit... :lol:

Want to use it in part (until/unless I think it better than the competition :oops: ) to author dlls for DBPro (easier than using VC++). Need to add a string table to the W32 .dll produced by PB.... Anyone got any pointers on how best to do this>?

Also, what about creating commands (two or more words with spaces imbetween) accessible without brackets from within 3rd Pty programs??? ie. Print Text "Hello" - instead of PrintText("Hello")??? again, anyone got any pointers???

Much obliged.
:wink:
Duffer.

Posted: Tue Nov 18, 2003 12:36 am
by Duffer
:?

No takers? :cry:

Posted: Tue Nov 18, 2003 12:48 am
by blueznl
i'm not sure but i don't think you can add spaces in there from within purebasic...

Posted: Tue Nov 18, 2003 12:56 am
by Codemonger
Not sure about the first ... But the second can't be done, the spaces in between commands. That is just the script syntax of DBPRO, sort of a pseudo language. DBPro should have docs on creating DLL, I'm sure that will explain almost everything. Anyways feel free to ask more questions but be more specific about what DBPro requires for a DLL, it'l help on this end. :)

Posted: Tue Nov 18, 2003 12:28 pm
by Fred
Don't forget than you can wrap PB functions for DB pro (or any other languages) only if it's for your own projects (not for a kit to be publicy released).

Posted: Wed Nov 19, 2003 3:01 am
by PB
> No takers? :cry:

You posted your message only 4 hours ago... give us a chance! :roll:

Posted: Wed Nov 19, 2003 2:12 pm
by waffle
i think the only way to do that would be in the string table entries. Consult the DLL SDK from DBPro. Also, if you do this for your own projects only, whats the benifit from just using a regular DLL and including an actual function? Is there a speed benifit? Or does it just look better?

dlls into DBPro

Posted: Thu Nov 20, 2003 9:51 pm
by Duffer
would have made it a bit useful - think it's appreciably faster than function includes within DBPro.

Dont get me wrong, Purebasic is a great language in itself - only just starting to work into it.

Anyway, Kn@ckers to that... I've just started learning VC++ and that looks favourite for .dlls for DBPro anyway.