B2Ben
Well-known member
- Joined
- Aug 17, 2006
- Messages
- 52
- Programming Experience
- Beginner
Hey all...
I'm totally new to dealing with DLL files, and I want to build a utility in VS2003 to connect to various DLL files.
(as a side note, if anyone knows any good tutorials for making/using DLLs, I'd love to see it )
A little background...
My company creates custom DLL files that contain settings for customizing our software. If we want our software to act differently, we just drop in a different DLL with different settings stored in it.
I'd like to make a utility to read the settings in a particular DLL file, which may not be in the standard file location(s) for DLL files.
So, for example, the DLL file has a function inside of it that I want to run:
GetOption( OptionName as String ) as String
This would look up the option name, and return it to me as a string.
In my VB code, I would do something like this, right?
What I want to do is be able to choose a particular DLL file with an OpenFileDialog, and change "MyDLLFile.dll" to the full path of another DLL file - one that might be on my desktop, or in a network folder. I tried replacing "MyDLLFile.dll" with a variable containing a path, but Visual Studio didn't like that.
I hope that all made sense... any help would be greatly appreciated.
I'm totally new to dealing with DLL files, and I want to build a utility in VS2003 to connect to various DLL files.
(as a side note, if anyone knows any good tutorials for making/using DLLs, I'd love to see it )
A little background...
My company creates custom DLL files that contain settings for customizing our software. If we want our software to act differently, we just drop in a different DLL with different settings stored in it.
I'd like to make a utility to read the settings in a particular DLL file, which may not be in the standard file location(s) for DLL files.
So, for example, the DLL file has a function inside of it that I want to run:
GetOption( OptionName as String ) as String
This would look up the option name, and return it to me as a string.
In my VB code, I would do something like this, right?
VB.NET:
Public Declare Function GetOption Lib "MyDLLFile.dll" (ByVal OptionName as String) as String
What I want to do is be able to choose a particular DLL file with an OpenFileDialog, and change "MyDLLFile.dll" to the full path of another DLL file - one that might be on my desktop, or in a network folder. I tried replacing "MyDLLFile.dll" with a variable containing a path, but Visual Studio didn't like that.
I hope that all made sense... any help would be greatly appreciated.