We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Can VB create Windows DLL

wrightb5
wrightb5 asked
on
Medium Priority
493 Views
Last Modified: 2009-12-16
I am trying to make a windows dll, with exposed functions, in VB. In C++ you could use a .def file to specify the exported functions. What is the equivalent in VB?
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
ho hum...
After looking around all day I was begining to suspect this. At least I can start trying to think of some other way now.
Very prompt reply, thanks.

Ben
Top Expert 2010

Commented:
You can create a windows DLL in visual basic
EGL: Its an activeX dll, I've never seen a Win32 DLL written in Visual Basic.
Top Expert 2010

Commented:
Yes I know but It is now possible Have you seen the article yet?
Top Expert 2010

Commented:
I know it works because I make them all the time. No need to register it either. It intercepts the compiler.
http://www.windowsdevcenter.com/pub/a/windows/2005/04/26/create_dll.html
Although that is a clever work around...the reliability of the article is in question. You are better off using PowerBasic or something to accomplish a task like this. I've never been a fan of the Visual Basic hacks, ie (inline asm via op codes in vb, ** vb windows dlls **,etc). If you plan on distributing software you cannot have DLLs that were created this way. Although they might work, the fact is, VB was not ment to do this. If you want a language that you dont have to "hack" to make a windows dll, then program in c/c++,delphi,etc.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.