-
Dll help
ok does anybody know the name of a site that would have some help on creating dll's? also many times in VB i saw
Code:
Implements SomeName
//and then later in the code
SomeName_Function
what are these for? i am currently looking at msdn for help, but it is not quite simple for a beginner in that dll thing..anybody knows where i could start?
thanks you very much
-
This is actually VB code -- not c++
Implements ISomeInterfaceName
COM objects (like a ListBox or toher control) have something called an interface. This is the 'contract' they have with other client programs. They agree to expose only those functions and properties defined in the interface.
The Implements keyword says that the code in the class module to follow supports and defines the methods & properties for a particular named interface.
Interface names traditionally start with I - IMovies, IMoniker.
There are a lot of them that are standard parts of the MS OLE support. When you create a VB ActiveX dll, you create (behind your back) a lot of these interfaces.
In C++, you get to specify what interfaces you are supporting.
-
ok, so where should i look to get info on how to create a Dll with a class and a few functions?
thanks
-
If you are using VC++, there is a project that gives an example of exporting a class, function, and variables.
The project name is Win32 Dynamic-Link Library
-
but that won't work with VB.
You can either create a COM object with C++ (very complicated on the C++ side) or use a regular Dll with VB (complicated on both sides, espacially at the function call)
Search posts that contain "dll", especially those by parksie, there are enough of them.
-
the dll i wanted to write was for use in C++ anyways
-