all groups > vb.net upgrade > december 2003 >
You're in the

vb.net upgrade

group:

use VB.NET DLL in VB6 or ASP ?


use VB.NET DLL in VB6 or ASP ? Tony
12/30/2003 10:50:42 AM
vb.net upgrade:
Hi,

I created a DLL using VB.NET(because VB.NET have a few new functions which
VB6 havn't ), and I tried to use this DLL in my ASP pages( we would not dare
to upgrade thousands of those things to ASP.NET yet ), using something like:

set myObject=Server.CreateObject("myObj.ClsDoSomething")

I know if the DLL is created by VB6, I could use "regsvr32" to register it,
but this way does not work for VB.NET DLL, I even can not see this object in
VB6 using "Project's Reference".

I searched in the Newsgroup and find "regasm.exe" mentioned by someone, I
use this tool to register my object, now I can see it in VB6, but all
functions and parameters are not there, and I still can not create object...
my machine has .Net Framework 1.1 installed.

the question is:

Is there a way to use DLL created by VB.NET in VB6 or ASP?


Re: use VB.NET DLL in VB6 or ASP ? hirf-spam-me-here NO[at]SPAM gmx.at
12/30/2003 5:51:17 PM
* "Tony" <tonewrfe@msn.com> scripsit:
[quoted text, click to view]

You will have to mark the classes/members with the
'ComClassAttribute'/'ComVisibleAttribute' (see MSDN).

--
Herfried K. Wagner [MVP]
Re: use VB.NET DLL in VB6 or ASP ? Patrick Steele [MVP]
12/31/2003 9:54:13 AM
In article <eOGGNzuzDHA.1708@TK2MSFTNGP12.phx.gbl>, tonewrfe@msn.com
says...
[quoted text, click to view]

See:

http://weblogs.asp.net/psteele/articles/7511.aspx

--
Patrick Steele
Microsoft .NET MVP
AddThis Social Bookmark Button