Hello all. I quickly threw this together for another thread, and thought I would contribute it here as well.
What it does
It simply allows more than 9 parameters to be used in a dll call. Its probably a little bit quicker than dbps native dll calling commands as well.
Purpose?
As mentioned, I made it for another thread. Just enjoy it.
Where is this other thread?
here.
Code examples?
Do some simple stuff with the DLL.
initextdll
user32=loaddll("user32.dll")
window=calldll(user32,"FindWindowA","DarkBASIC Pro Project12345","DarkBASIC Pro Project")
find_system_menu=calldll(user32,"GetSystemMenu",window,0)
add_menu_item_to_system_menu=calldll(user32,"AppendMenuA",find_system_menu,0,0,"my new command")
refresh_system_menu_to_include_new_command=calldll(user32,"DrawMenuBar",window)
do
loop
Grab a resource string.
InitExtDll
Basic3DDebug=LoadDll("DBProBasic3DDebug.dll")
string$=space$(256)
GetDllString Basic3DDebug,rnd(50)+1,string$,256
DeleteDll Basic3DDebug
print string$
suspend for key
end
x=object exist(1)
Where can I download it from?
Version 1.1
Version 1.0
I hope some one finds use of this.
Cheers,
-db
UPDATE! ~
Tuesday, 4-24-07, 9:56PM
I now made it so that this DLL can get a string from the DLLs string table.
Code used to prove it:
InitExtDll
Basic3DDebug=LoadDll("DBProBasic3DDebug.dll")
string$=space$(256)
GetDllString Basic3DDebug,rnd(50)+1,string$,256
DeleteDll Basic3DDebug
print string$
suspend for key
end
x=object exist(1)
Cheers,
-db
What? You mean I cant sleep here???