Using Classic Com with .Net
I am trying to use a Classic Com in .Net. The com object needed a wrapper so I used tlbimp with no switches
tlbimp myTest.tlb which ran ok, took the resulting myTestLib.dll & copyed into the bin directory of my website.
Name space imports fine
<%@ Import Namespace="myTestLib" %>
<script runat="server">
'Where CurrVer should return a string of what the_
current com version is
Dim p as string
p=(myTestLib.CurrVer)
</script>
Fails on myTestLib.CurrVer BC30188: Declaration expected.
I've only been working with .Net a week so Im not sure if I have done something improper on the conversion of the com or its just my syntax ignorance.
Thanks
Earl
|