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 / Trying to load DLL with no luck

Author
Message
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 11th Mar 2012 21:41
I have found a SID plugin (for playing C64 sid tunes) but I cannot load it :-( I have tried the example code for LOAD DLL and I am trying to load Tiny C64 SID Song Player Plug-in (Which I have attached, there is some info about the sid plugin here: http://basic4gl.proboards.com/index.cgi?board=dllpc&action=print&thread=2853



The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 11th Mar 2012 21:59
looks like everything is right..
but im not sure if "?MyFunc@@YAHH@Z" is the name of the function inside your sid plugin.
try downloading the Resource Hacker
http://www.angusj.com/resourcehacker/
this basicly can load the dll and see all the funtion names inside it.
also if i rememember right, you are able to edit the function name.
also try to find in those forums how to convert plugins into dbp's format using the resource hacker that should help you.

more 3d models .x/.obj and more foramts here:
[href]https://www.turbosquid.com/Search/Index.cfm?keyword=gogetax1&x=0&y=0[href]
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 11th Mar 2012 22:34 Edited at: 11th Mar 2012 22:38
Quote: "but im not sure if "?MyFunc@@YAHH@Z" is the name of the function inside your sid plugin."
it is not, I just did not bother to change it, I wanted to load the DLL first

EDIT: And resourcehacker dont show anything when I open the sidplugin.dll :-(

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 11th Mar 2012 23:30
if it doesnt shows anything,
seens i dont know what dll is that, you have 2 answers here
1) the dll doesnt contain function named "?MyFunc@@YAHH@Z"
2) the dll didnt compiled right.

i belive its the 2nd option..
what program you used to compile the dll?

more 3d models .x/.obj and more foramts here:
[href]https://www.turbosquid.com/Search/Index.cfm?keyword=gogetax1&x=0&y=0[href]
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 12th Mar 2012 01:05
@Cybermind

I think the dll you are trying to use is not generic. I think it is a designed plugin specifically for another BASIC language and therefore may have it's own calling/referencing conventions and may have other dependencies not included in DBPro.

Take a look a sidplay2 for SID chip emulation and libraries (libsidplay) if you are interested in playing sid files directly through DBPro with maybe your own custom dll.

Enjoy your day.
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Mar 2012 19:35
Is it complicated to make an DLL for the purpose? How about compatibility with OS like XP, Vista/Windows 7 x86/x64, is it the same?

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 16th Mar 2012 21:48 Edited at: 16th Mar 2012 21:50
Well, it's not too hard depending on the library. libsidplay was origianlly designed for unix but there is a port to windows - it looks a little tough to me. Sidplay2 has a player you could call directly (without having to build a dll or anything) using EXECUTE FILE or is it EXECUTE COMMAND from DBPro.

Sidplay2-Windows

Enjoy your day.
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Mar 2012 23:00
I already downloaded that I will look into the stuff later, I want maximum compatibility with the three (soon four) major Windows OS, and also x64 versions.

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 16th Mar 2012 23:04
@Sergey K: I know the DLL doesn't contain that weird function name, but that doesn't matter because the program never reaches that line, it failed to load the DLL which was what I wanted to do first, but now I know that DLL's are not universal and have to be tailored for the purpose/language.

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...

Login to post a reply

Server time is: 2026-07-11 11:41:09
Your offset time is: 2026-07-11 11:41:09