|
-
Jan 6th, 2002, 02:11 AM
#1
Thread Starter
Addicted Member
Dynamic DLL Calling
Hi All
Ok, most of you on here have Winamp I would guess. What I'm trying to figure out is how you would dynamically call a DLL in VB.
For instance:
C:\My VB Winamp\Plugins\plg1.dll
C:\My VB Winamp\Plugins\plg2.dll <-- this one has just been downloaded
Now in the code when you use the API, you have a standard name that you would know e.g. SendMessageA and it never changes Public Declare Functin "SendMessageA" alias SendMessage etc etc, but how would you tell VB that you want to declare plg2 instead of plg1 at runtime? I hope it makes sence to you and if so please help, thanx
Who needs rhetorical questions anyway?
Bazza NET - The place you want to be!

-
Jan 6th, 2002, 02:18 AM
#2
Addicted Member
well...
You can't do that with Declare Statements, in VB... it just doesn't work.
However, if those DLLs are ActiveX DLL's, you can dynamically load, register, and create the objects inside of them with only a filename, as long as you make them conform to a naming guideline for their objects. That's what I do.
"1 4m 4 1337 #4xz0r!'
Janus
-
Jan 6th, 2002, 02:21 AM
#3
Thread Starter
Addicted Member
Would you by any chance have any tutorials or advice about this?
Who needs rhetorical questions anyway?
Bazza NET - The place you want to be!

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|