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 / Series of DLL Questions

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 22nd Nov 2003 20:42
Firstly:
What is the name of the Windows DLL File that will allow Edit boxes buttons spinedits etc... to appear on the screen. (kernel32?)

Is there a help or reference file that will tell me how to call functions within the dll. Or could sombody list some common functions in it. e.g. making a button appear.

plz thanks and everything that goes with it

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 22nd Nov 2003 22:05 Edited at: 22nd Nov 2003 22:05
http://www.partware.com/ebooks/api/ref/funcc.html
Can't rember who posted it originally.

Depending on what you want to do it could be easier and quicker to use db commands or buy RobK's blue plugin.

dbpro : p166mmx @ 233 : 256mb : sb 128pci : sis onboard
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Nov 2003 22:15
There are a lot of things that you cannot do directly within DBPro - message handlers are required for most GUI related things, which is why Rob wrote his BLUE GUI plug-in
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Nov 2003 23:35
@TeraByte

Most of the required functions are in User32.dll

I'm afraid it isn't quite as simple as calling a function to make a button appear. You simply cannot do it in DarkBASIC Pro code, because DarkBASIC doesn't allow you to get function addresses (the place in memory where the function starts). Buttons etc. are all types of windows, in order to create a window, you need to fill various type structures and pass them as parameters to the CreateWindow / CreateWindowEx functions. RegisterClass is also needed. I don't think you can do this in DB either.

There are various articles on MSDN. Search for "MSDN CreateWindow" on Google for more info.


BLUE GUI Plugin: http://blue.robert-knight.net / BLUE IDE [href]http://blueide.sf.net/ - Replacement editor for DBPro[/href]

Login to post a reply

Server time is: 2026-07-26 19:47:52
Your offset time is: 2026-07-26 19:47:52