|
-
Oct 8th, 2001, 10:18 PM
#1
Thread Starter
Hyperactive Member
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
Amon Ra
The Power of Learning.
-
Oct 9th, 2001, 04:59 AM
#2
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.
-
Oct 9th, 2001, 10:00 AM
#3
Thread Starter
Hyperactive Member
ok, so where should i look to get info on how to create a Dll with a class and a few functions?
thanks
Amon Ra
The Power of Learning.
-
Oct 9th, 2001, 02:38 PM
#4
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
-
Oct 10th, 2001, 03:00 PM
#5
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 10th, 2001, 06:00 PM
#6
Thread Starter
Hyperactive Member
the dll i wanted to write was for use in C++ anyways
Amon Ra
The Power of Learning.
-
Oct 12th, 2001, 10:48 PM
#7
PowerPoster
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
|