MemDll - Load DLL from memory

Share your advanced PureBasic knowledge/code with the community.
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: Load DLL from memory

Post by SeregaZ »

it is some kind of protection of this bass.dll :( i made ugly way - include bass.dll in exe, but not use from memory. it unpack near exe, then load. but bassmix.dll and bassenc.dll can work from memory fine and use this bass.dll from file, not memory. first i made using bass.dll from memory and unpack as file for bassmix.dll, but this mix command not work :) so this bassmix.dll requared not only bass.dll as file, near exe and requared "not using" bass.dll from memory too. or i am just dumbass and make import from memory only command what i need - not full list, and this is reason why bassmix.dll is not happy with memory call too.
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Load DLL from memory

Post by luis »

I replaced the first post with a zip, more info in that post.
"Have you tried turning it off and on again ?"
A little PureBasic review
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: Load DLL from memory

Post by SeregaZ »

Restricted Content
This file is no longer available. For additional information contact Dropbox Support.
probably you need to set password for arhive and say this pass here in a topic.
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Load DLL from memory

Post by luis »

SeregaZ wrote: probably you need to set password for arhive and say this pass here in a topic.
Nope, looks like there is something not right with dropbox itself.

When I posted the link I checked it, it was working.

Now it's not working anymore for me too, with the same message.

The file it's there, it has not been removed or locked.

I tried to upload another file, a pdf.

Trying to download it I get:
This link is temporarily disabled. The person who shared it hit their daily limit of traffic or downloads. Learn about traffic limits.
The limits are 20GB daily. No way I reached them.

So, whatever it's happening I have no idea. Dropbox is slowing shoving more problems in my direction in the last year.
Maybe it's time to "drop" them.

After all they brought Condoleezza Rice on their board, the less privacy-oriented person available, so it may be not a bad idea.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Load DLL from memory

Post by luis »

Dropped Dropbox, fixed link.
"Have you tried turning it off and on again ?"
A little PureBasic review
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: Load DLL from memory

Post by SeregaZ »

i am download fine, thanks :)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Load DLL from memory

Post by ts-soft »

luis wrote:Dropped Dropbox, fixed link.
Dropbox have changed something in the last weeks. You should have a email from dropbox. For example: no directlinks to images, binaries and so on.

greetings - Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Load DLL from memory

Post by luis »

Hi Thomas, I got probably one or two emails from them in 6 years.

It's already at least a couple of years they are changing urls and their meaning, sometimes breaking previous urls which are using an older format and suddenly start to behave differently.

First you had to use dl.dropbox.com in your url instead of http://www.dropbox.com to avoid the preview on dropbox.com.
Then you had to change the ?dl=0 in ?dl=1 to force the browser to download the file.
Then you had to use ?raw=1 to force the opening of the file in the browser (for example an image you want to embed in html code).

Their client force the updates on you, doesn't have the option to disable them, and if you block it in the firewall after a certain amount of time has passed the client warn you it will stop working soon.

Today this bogus "bandwidth exceeded".

And there is still Condoleezza.

I'll try something else or just use plain web space.
"Have you tried turning it off and on again ?"
A little PureBasic review
xakep
User
User
Posts: 40
Joined: Fri Mar 25, 2016 2:02 pm
Location: Europe

Re: MemDll - Load DLL from memory

Post by xakep »

Can someone please reupload it?
Maybe to mega.co.nz
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: MemDll - Load DLL from memory

Post by RSBasic »

http://www.rsbasic.de/backups/ :arrow: Search for memDll.pbi

\\Edit:
But I think I have an older version. :cry:
Image
Image
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: MemDll - Load DLL from memory

Post by Cyllceaux »

I use this Module so much... Every of mine project with DLLs (bass, pdfium, lcui, fmodex.. and much more) are using this.

Kudos, Kisses and Money to the developers :)
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: MemDll - Load DLL from memory

Post by SeregaZ »

how do you include bass.dll? with only bass.dll is no any problem, but when it need some additional dlls from bass's family... they all requared bass.dll as a file, that lays near main exe file. maybe you are know somw trick to include them all into memory? for my case it is bassmix.dll and bassenc.dll. i need to record and encode into specific quality mono PCM 8bit.
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: MemDll - Load DLL from memory

Post by Cyllceaux »

I only use bass.dll. I don't use the others bass DLLs
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: MemDll - Load DLL from memory

Post by Mijikai »

SeregaZ wrote:how do you include bass.dll? with only bass.dll is no any problem, but when it need some additional dlls from bass's family... they all requared bass.dll as a file, that lays near main exe file. maybe you are know somw trick to include them all into memory? for my case it is bassmix.dll and bassenc.dll. i need to record and encode into specific quality mono PCM 8bit.
Apparently bass.dll is not mapped properly into memory otherwise those other dlls would have no problem linking to it.
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: MemDll - Load DLL from memory

Post by SeregaZ »

i know and attach them into memory. so when my exe is starts - it check bass.dll as a file. if it is not exists - unpack it from datasection and only them start load that another dll's from memory - bassmix and bassenc. but better will be without that bass.dll at all. i mean use inside exe, from memory - without unpack.
Post Reply