Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / How to make a TPC with languages other then C++?

Author
Message
Dostej
23
Years of Service
User Offline
Joined: 21st Jan 2003
Location: Switzerland
Posted: 18th Aug 2003 11:50
Hi
Im reading the help-file coming along with the docs, where there is an explanation how to make a tpc with c++. Unfortunatly I´m not famiiar with c++ (or better I´ve no idea ...).

But Im working with purebasic and I want to make TPC with this language. Has anyone an idea of how to include a stringtable in a Dll `manually`?. And has the dll to be in the `CDecl`- Format or not?

Any help will be appriciated...
THX
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th Aug 2003 18:56
I've never used PB, so I can't help too much except to confirm that your entry-point routines do need to use the C calling convention.
Neophyte
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 18th Aug 2003 21:28
@Dostej

I think you'll have better luck asking at the PB forums. Just explain that you are making dlls for DBPro and the requirements that it needs. I think even the creator of PB hangs around the forums a lot so you should get some help.

waffle
23
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 19th Aug 2003 03:46
not sure what your trying to do.
you can place a string in a data section....


yourstring:this is a string

and then return the string from a dll function call...
proceduredll GetString()
procedurereturn @yourstring
endprocedure

is that what your after?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Aug 2003 10:21
Nope. The strings aren't for the program. They are data that the DBPro compiler uses to identify all the new commands that you are providing inside the DLL for it to use.

I can provide a small string resource file for you to look at, but how you would compile it into a PB program is beyond me
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 19th Aug 2003 11:41
This is the umpteenth time this has been asked, I think a tutorial is called for

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Aug 2003 15:35
Unfortunately, my tutorial writing skills are ... unfortunate

Maybe a FAQ? I could maybe start compiling one for C++, but it's a bit difficult to do for a language I know nothing technical about.

Login to post a reply

Server time is: 2026-07-25 08:13:22
Your offset time is: 2026-07-25 08:13:22