Click to See Complete Forum and Search --> : How to create a DLL without using classes.
Darin
April 12th, 1999, 02:44 PM
I want to write a DLL that would be used like a subroutine repository. I don't want to write a class and then use the methods, because I don't want to have to change all of the calls to each of the procedures. This DLL would then be accessible just like a DLL written in another language, referenced in my project, and used after declaring the DECLARE statement for the procedures.
Thanks for your response.
Chris Eastwood
April 12th, 1999, 03:11 PM
Hi
The simple answer is .. you can't
VB only allows you to create ActiveX DLL's - if you want to create a standard windows DLL, you'll need to use a language that can create them -
C, C++, Delphi, Modula2, Pascal etc
An ActiveX DLL can be used by any programming language that supports COM -
C++, Delphi etc
Regards
Chris Eastwood
CodeGuru - the website for developers
http://www.codeguru.com/vb
Lothar Haensler
April 13th, 1999, 02:05 AM
you CAN achieve what you want, although you HAVE to create a class, but that's NOT a problem.
Just set the Instancing property of your class module to GlobalMultiUse!
that's it.
Now in your client programs, add a reference to that AX dll and call the "methods" like regular functions and subs! It works!
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.