rlb_wpg
Nov 1st, 2000, 03:54 PM
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. $QU0 U0 U0 ,T0 f`fDfnMf^fU f(Ef
...
What am I doing wrong?
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. $QU0 U0 U0 ,T0 f`fDfnMf^fU f(Ef
...
What am I doing wrong?