21 May '13 - 18:19 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Bass without bass.dll  (Read 2203 times)
Chris
Posts: 1507


« on: 5 Aug '05 - 15:46 »
Reply with quoteQuote

Hi everybody...

We have here often the discussion if its possible to load the bass.dll not from hd separate from Memory.


The answer it`s possible..!!

Here an short example....(its the modified DSP-Example)
(in the example you will find a special bass_dynamic Unit  ~ 430 kb)

http://www.cst-development.de/bass_samples/bass_test.zip

So far I will see all will working....

BUT :

If I`m adding basswma (loading as the same way how the bass.dll) then basswma will not find bass.dll

(I will become the Message "Bass 2,1 is required")

@ IAN
Now my Qustion does basswma searching self if the bass.dll is present in the Searchpath or does basswma looking if the bass.dll is in the memory ??

Greets Chris

« Last Edit: 5 Aug '05 - 15:48 by Chris » Logged
saivert
Posts: 36


« Reply #1 on: 6 Aug '05 - 01:58 »
Reply with quoteQuote

Normally when you bundle BASS.DLL you put it in the EXE as a resource (RCData) and then extract it to the temp folder before loading it with LoadLibrary. I guess you are talking about a way to load it directly from within your executable without extracting it. I know this is possible by emulating the LoadLibrary function by doing all the loading work yourself using some kernel API calls.

basswma.dll does not scan the memory for a loaded instance of BASS.DLL. It just does a LoadLibrary("bass.dll") call relying on Windows search path. So you would need to get a custom built basswma.dll in order to load both libraries directly from within the executable.

Happy asking!
Logged
Chris
Posts: 1507


« Reply #2 on: 6 Aug '05 - 11:41 »
Reply with quoteQuote

Hi
yep i mean without extracting it..
This is that what I`m doing in the Example above.
And it works without Problems...
The only Problem is that all the Addons will search in the Searchpath and not in the Memory ...
Greets Chris
Logged
Ian @ un4seen
Administrator
Posts: 15259


« Reply #3 on: 7 Aug '05 - 17:26 »
Reply with quoteQuote

@ IAN
Now my Qustion does basswma searching self if the bass.dll is present in the Searchpath or does basswma looking if the bass.dll is in the memory ??

The add-ons are linked with BASS.DLL, so it needs to be either on disk or already loaded in memory. Note by "loaded in memory" I mean that Windows loaded it, not just somewhere in memory Smiley

basswma.dll does not scan the memory for a loaded instance of BASS.DLL. It just does a LoadLibrary("bass.dll") call relying on Windows search path.

Not that it makes much difference, but BASSWMA doesn't actually use LoadLibrary (it used to in the old days to allow multiple instances/devices). It's linked with BASS.DLL now, so there's no need.
Logged
saivert
Posts: 36


« Reply #4 on: 8 Aug '05 - 19:12 »
Reply with quoteQuote

I really don't see any problems with extracting the required DLL files to Windows temp folder before you run the rest of your application. A lot of programs does this and I have never heard anyone complain about this. As long as you clean up (delete the files from temp folder) everything should be just fine.

And where did find the article about directly loading a DLL from memory without using LoadLibrary ?? I wanna know.
Logged
pethead
Posts: 27


« Reply #5 on: 24 May '12 - 03:23 »
Reply with quoteQuote

http://www.cst-development.de/bass_samples/bass_test.zip wrong link!  Huh
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines