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.

Program Announcements / Extended DLL functions. Break the 9 parameter dll limit. ^_^

Author
Message
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 14th Apr 2007 14:35 Edited at: 26th Apr 2007 08:59
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.


Grab a resource string.


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:




Cheers,

-db


What? You mean I cant sleep here???
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 15th Apr 2007 11:14
Any criticisms? Comments? Suggestions?

Cheers,

-db


Albert Einstein believed that imagination is more important than knowledge.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 15th Apr 2007 13:55
I never knew there was a limit to parameters! Well this should be useful

Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 15th Apr 2007 16:04
Useful? USEFUL?
This is great!!!
memblocks and its pointers in combination with this plugin...

Is there still a limitation in accessing DLL's?

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 15th Apr 2007 17:13 Edited at: 15th Apr 2007 17:15
@DB User 2006

It sounds incredible! Is there any reason this couldn't be used with DBC? And if so, how would you call it to use in conjunction with other DLLs?

Enjoy your day.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 16th Apr 2007 00:48
@Zotoaster
Thank you.

@Sven B
Im not sure what you mean by "limitation in accessing DLL's". Would you care to explain a little bit more?

@Latch
Unfortunately, I dont believe that this would work with DBC. Unless there is some way I can force DBC to use it, but that would cause a hack most likely, and as well, I dont own DBC. :/ (I did use the trial once, which is why I bought DBP).

Cheers,

-db


Albert Einstein believed that imagination is more important than knowledge.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 16th Apr 2007 01:50
@DB

I'm guessing that it works by counting the number of parameters that you are trying to pass to a particular DLL and stringing them together based on character versus numeric input (CALLDLL and rCALLDLL) inside your custom DLL - and then calling the real dll through your custom one.

My question is, how are you (in DBPro) telling your dll to load in the real DLL? Is that the ini file? If so, can you explain what the ini is doing? That probably is the key to being able to use your dll in DBC. The solution might be just to load your DLL, call startup, and then load the DLLs I want to use with your LoadDLL function - and call them likewise.

Thanks in advance! This is really a great addition and you've got my wheels turning for something similar in DBC if this won't work.

Enjoy your day.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 16th Apr 2007 03:31
In dbpro, I simply add a resource file, describing the string table of the dll. The string table is formated to tell dbpro about the commands. DBPro then builds its executable with my dll. As for how it works, it has overloaded functions. DBP can call the dll with these overloaded functions for anywhere from no parameters and no return value to 15 parameters and a return value.

Cheers,

-db


Albert Einstein believed that imagination is more important than knowledge.
Azrael
19
Years of Service
User Offline
Joined: 2nd Mar 2005
Location: Germany
Posted: 16th Apr 2007 20:13
I thought there's a undocumented command which already allow a dll call with more than 9 parameters.


OK .. with this on - if it still exists - you have to use a pointer so your plugin is still quite usefull.

Good works.

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 17th Apr 2007 04:27
Yes, I did notice that command, but not being completely sure how it works, and knowing dbp does some special processing, I figured this way would be quicker, and better. Not to mention, it makes DLLs more dynamic (You dont need a preset ID).

Cheers,

-db

PS: Thank you.


Albert Einstein believed that imagination is more important than knowledge.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 18th Apr 2007 17:01
Quote: "Is there still a limitation in accessing DLL's?"


Sorry, that was a retorical question

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 19th Apr 2007 03:20
Ok then.

Cheers,

-db


Albert Einstein believed that imagination is more important than knowledge.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Apr 2007 07:56
UPDATE!
I now made it so that this DLL can get a string from the DLLs string table.

Code used to prove it:


Attatched is the DLL.

Cheers,

-db


There is a very fine line between hobby and mental illness.

Attachments

Login to view attachments
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 26th Apr 2007 09:00
any comments on this update?

Cheers,

-db


What? You mean I cant sleep here???
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 27th Jul 2007 07:21
Ok, ask questions over here (If you have any): Aex.Uni Forums.

Please make your own topic in the proper forum, thank you.


Cheers,

-naota

PS: I know that's like 4 posts by me, but they are all days apart, and this one like a month or two. Flame me if you like for the quad post.

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 24th Sep 2007 03:19
The extended DLL plugin now has it's own web page.

Extended DLL plugin's page.


Cheers,

-naota

DBP, $80. DBP's plugins, $320. Watching DBP Crash, Priceless.
NG Website Aex.Uni forums

Login to post a reply

Server time is: 2024-11-24 00:08:41
Your offset time is: 2024-11-24 00:08:41