Migrating to VB.net

vidhi

Newcomer
Joined
Jun 19, 2008
Messages
3
Hi
I have following code in my Visual Basic Project.

It contains html page which includes classid of vb6 class and method in VB6 class is called from html

Code in HTML:

<HTML>
<HEAD>
</HEAD>
<BODY>
<OBJECT id=objView tabIndex=-1 height=0 width=0
classid=clsid:97919B55-C676-468C-8B04-C57DBC931E1D></OBJECT>

</BODY>
<SCRIPT language = vbscript>
objView.SetTVRef()
</SCRIPT>
</HTML>

But same thing when i try to do with VB.net class it does not work. I just replaces classid value in above html with classid of the .net class. But it does not work :(

Thanks in advance.
 
How did you create the vb.net dll? You need to make sure the dll itself is also made COMVisible (there should be an option from the property pages somewhere or in the assemblyInfo.vb file add a line..
Visual Basic:
<assembly: ComVisible(True)>
and see if that helps.
 
Back
Top