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 Discussion / DLL File's (????)

Author
Message
B1rD
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location:
Posted: 28th Apr 2004 19:15
Hello,

I'm currently trying to make a menu system, just like in windows with the windows DLL files.

There's a big issue, i dont know what functions the DLL files have.

ex,:

LOAD DLL "SHELL32.DLL",1
NULL = CALL DLL 1,"????????"

Is there a way to see the functions of a dll file ?
I hope you guys understand this post, i'm cant explain it in other words...


- B1rD
B1rD
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location:
Posted: 29th Apr 2004 00:21
anyone ???
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 29th Apr 2004 00:33 Edited at: 29th Apr 2004 00:36
Quote: "Is there a way to see the functions of a dll file ?"

Yes, you'd need to read the export table of the DLL (something I wouldn't want to do in DB, though). But there's no way (except for disassembling or analysing the binary code) to find out what parameters the function needs or what calling convention it uses, unless the function name is decorated.

EDIT:
OK I've just re-read your question... forget the above paragraph.
You want to make a windows menu with the windows library, correct?

Play Nice! Play Basic!
B1rD
21
Years of Service
User Offline
Joined: 21st Mar 2004
Location:
Posted: 4th May 2004 00:17
Yes thats correct
just such as a menubar with "file edit view", etc...
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 4th May 2004 18:38
can anyone post a link were i can find all the names of all the windows dll files and the functions that can be used with them.

the_winch
22
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 4th May 2004 19:53
thanks for the links. would i be right in the following code then:

[the function it gives is ScrollWindow and the dll is comctl32.dll]

call dll "comctl132.dll" 1, ScrollWindow

if not please can you correct it for me as an example or post up antoher one.

stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 4th May 2004 20:29
ok i now have got:

load dll "cmtl32.dll",1
call dll 1,"EnableScrollBar",hWnd, [and some others]

ok and what it does is allow it run fine with line 1 but when line 2 is added it says it failed to execute dll why is this.(i know that the parameters are ok)

the_winch
22
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 4th May 2004 21:21
That function is in user32.dll not cmtl32.dll.

i won't see you in the pit
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 4th May 2004 23:20
ok heres wot i now have;

load dll "user32.dll",1
print "h"
print "e"
print "l"
print "l"
print "o"
print "h"
print "e"
print "l"
print "l"
print "o"
print "h"
print "e"
print "l"
print "l"
print "o"
print "h"
print "e"
print "l"
print "l"
print "o"
print "h"
print "e"
print "l"
print "l"
print "o"
print "h"
print "e"
print "l"
print "l"
print "o"
do
call dll 1,"EnableScrollBar",hWmd,wSBflags,wArrows
loop


it runs without an error but my scrollbar is not showing at all what can i do to fix it. [the site i used for the function is http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/scrollbars/scrollbarreference/scrollbarfunctions/enablescrollbar.asp

waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 10th May 2004 19:56
there are many things that can be wrong here...

The obvious:
parameters not set properly
you showed no code on where you obtained or set the values for
hWND and the others....

Not obvious:
are you running in windows mode, not exclusive?
You might also need to call

BOOL ShowScrollBar(
HWND hWnd,
int wBar,
BOOL bShow
);

internet gaming group
current project http://home.comcast.net/~norman.perry/Archon.html

Login to post a reply

Server time is: 2025-05-23 13:40:45
Your offset time is: 2025-05-23 13:40:45