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.

Newcomers DBPro Corner / function address

Author
Message
Emil_halim
10
Years of Service
User Offline
Joined: 13th Jun 2014
Location: Alex,Egypt
Posted: 13th Jun 2014 09:54
Hi all,

how can i get an address of a user function ,so that i can pass
the address as a parameter of another function?

thanks
Emil_halim
10
Years of Service
User Offline
Joined: 13th Jun 2014
Location: Alex,Egypt
Posted: 13th Jun 2014 19:25
ok ,

got no answer , so i will ask it in another way.

Does DBPro supports CallBack function system?

Hope any one tell me.

thanks.

http://www.freewebs.com/ogremagic/index.htm
nonZero
13
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 14th Jun 2014 10:44 Edited at: 17th Jun 2014 12:38
Hi, sorry if it took long for a response. This board isn't very active these days and people don't check for new posts on a daily-basis.
You cannot get the address of a function in DBPro. There is a plugin called Styx that supports call-backs (apparently, I haven't used it for that).

DBPro does not support many things, most notably address-of, proper pointers and arrays within structures. It's the price you pay for an easy language.

Hope that helps.
 

[My sig is fixed, links work]
Copy-paste, "I vote for nonZero" into this thread to vote for me. If you don't then shame on you!
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 14th Jun 2014 14:00
Matrix1 Utils supports function pointers and callbacks. You can check out the docs and plugin here. See section 20 for function pointers.

Emil_halim
10
Years of Service
User Offline
Joined: 13th Jun 2014
Location: Alex,Egypt
Posted: 14th Jun 2014 18:13
oh , many thanks for your reply nonZero , TheComet.

I will check them.

any way , just want to tell all the user that , i am working to port my OgreMagic library to work with DBpro.

here is a screen shot of it.


here is the ogre forum page
http://www.ogre3d.org/forums/viewtopic.php?f=11&t=25924&hilit=emil

i have made some features tiil now.

if you are interested just let me know.

http://www.freewebs.com/ogremagic/index.htm
Burning Feet Man
16
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 15th Jun 2014 03:44
Yup, I second checking out Matrix1 Utilites for this feature. They're awesome!

Help build an online DarkBASIC Professional help archive.
DarkBasic Help Wikia
nonZero
13
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 17th Jun 2014 01:27 Edited at: 17th Jun 2014 12:40
Yeah, forgot about Matrix Utils so I'll third it. Your project sounds interesting. DBPro needs as much new interest as possible since TGC are too busy with FPSC* and AGKv* these days.
 

[My sig is fixed, links work]
Copy-paste, "I vote for nonZero" into this thread to vote for me. If you don't then shame on you!

Login to post a reply

Server time is: 2024-11-23 14:26:14
Your offset time is: 2024-11-23 14:26:14