.dll creation - use by third party programs - DBPro

Advanced game related topics
Duffer
New User
New User
Posts: 3
Joined: Mon Nov 17, 2003 8:14 pm
Location: United Kingdom

.dll creation - use by third party programs - DBPro

Post 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.
so where's the MAKE SELLABLE GAME command?
Duffer
New User
New User
Posts: 3
Joined: Mon Nov 17, 2003 8:14 pm
Location: United Kingdom

Post by Duffer »

:?

No takers? :cry:
so where's the MAKE SELLABLE GAME command?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i'm not sure but i don't think you can add spaces in there from within purebasic...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

Post 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. :)
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
Fred
Administrator
Administrator
Posts: 18384
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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).
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> No takers? :cry:

You posted your message only 4 hours ago... give us a chance! :roll:
User avatar
waffle
Enthusiast
Enthusiast
Posts: 129
Joined: Mon May 12, 2003 1:34 pm
Location: USA
Contact:

Post 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?
Duffer
New User
New User
Posts: 3
Joined: Mon Nov 17, 2003 8:14 pm
Location: United Kingdom

dlls into DBPro

Post 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.
so where's the MAKE SELLABLE GAME command?
Post Reply