|
-
Nov 24th, 2000, 04:41 PM
#1
Thread Starter
New Member
Has anyone out there ever written a dll using VB? If so, can those same dll's be accessed from a program other then Visual Basic? Is there a web site that has some sample dll code that I can look at?
I admit that I have never written a dll, so I am not sure how to start since there doesn't seem to be a lot of documentation on it.
Thanks a lot,
-
Nov 24th, 2000, 06:19 PM
#2
MSDN has tons of examples on how to create your first ActiveX DLL.
Here can be your first step
-
Nov 24th, 2000, 08:17 PM
#3
Well ...
I have used ActiveX DLLs in VB. But not sure whether they will work with any other programs.
I guess the structure of DLLs in VB and in C is a bit different. In VB you have to have a class in your DLL, while in C you can just combine different functions into a DLL.
I would like to know this, too.
-
Nov 25th, 2000, 12:05 AM
#4
Fanatic Member
Yes c(++) dlls are different from VB dlls. However, they are cross-compatible. VC++ can use ActiveX dlls, and vb can use C(++) dlls. Come to think of it, ActiveX dlls, while less numerous, are supported by more programming languages than I care to think of.
It might also be important to note that dlls only usually work under windows.
-
Nov 25th, 2000, 12:57 AM
#5
The DLL's created in VB are COM DLL's, which means they internally implement the COM interface. THis means that any language that can use COM components (ie: VB, VC++, Delphi, ObjectAda etc.) can access your DLL.
VC++ also has the ability to create non-COM DLL's which you can't do in VB. the non-COM dll's are just collections of functions that you can call - which are declared and used the same waythat you use an API call (which is just accessing a function in a non-COM C DLL).
(NB. COM is effectively the same thing as ActiveX)
- gaffa
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
|