I create a dll using VB6 where a number
of variables are passed with 3 string values being
passed ByRef to a public function.
(ie.
public function MyFunction(byVal var1 as lng,
byval var2 as bln, byRef var3 as string,
byRef var4 as string, byRef var5 as string)
as boolean
)
A recordset is opened and the values, along with
HTML tags, are added to these 3 strings.

On my asp page I get the values from the previous form.
Pass these values to the function and then print the 3
string variables.

I tested the dll with another VB6 application to make sure
the strings were formatted correctly.

I put the dll in the same directory as my asp page, included
the file in the asp code.
(ie.
<% OPTION EXPLICIT %>
<!-- #include file="CreateCallRpt.dll" -->
)

But, when I run the page I receive an entire page like:
MZÿÿ¸@Àº´ Í!¸LÍ!This program cannot be run in DOS mode. $QÎÛU0 ˆU0 ˆU0 ˆÖ,®ˆT0 ˆf`f¨DfnMfû^fU§ f(Ef©
...



What am I doing wrong?