Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert the VB code in dll

Status
Not open for further replies.

JackONeill

Programmer
Mar 8, 2004
65
US
hi,

My VB Code start to be very important,

i heard about dll... extention of programm

is there a way to convert my vb code in dll
or other exetention program ???

i though to import my code in VB6 and save as dll...
but how can i use dll???

can you help me?
do you have some tutorial?
...

cya
 
Jack,

A .dll or a .exe is compiled code. You run your VB source code thru your VB 6 complier to create such. A .dll is a dynamic link library, that you can use in other programs if you create a reference to that library. For instance, in VBA like Excel, many .dlls are referenced, and others can be referenced using Tools/References for specific types of applications, like ADO (msado15.dll)or XML (msxml4.dll).

Skip,

[glasses] [red]Be advised:[/red] It's been reported that a wee psychic is roaming the countryside.
Small Medium @ Large! [tongue]
 
To expand,

You create an DLL project in VB.

You can probably bring most of your VBA code into the DLL project and make it work. You may have to tweak a little, but it will work.

Compile and save the DLL.

You must register the DLL. Look up Help in VB.

Once registered, you can simply use it, as Skip stated, like any other reference library. Tools > References. Browse to your DLL and...there you go.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top