"Sid" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
Thanks for replying, can I just clarify, if I am therefore
writing ASP.NET pages using notepad, then I am unable to
call COM components that I have previously created in VB
6.0? Or is it possible to set a reference to a dll
programmatically?
First off, you don't need an interop assembly.
If you are using VB, at least, you can just use CreateObject and late
binding.
Dim d As Object = CreateObject("MyComponent.MyClass")
d.DoSomething()
This will use late binding to access the component, just like in classic
ASP.
If you want to early-bind to the component, you do need an interop assembly.
But you still don't need VS. You can use tlbimp.exe to generate the interop
assembly, and then add a directive to your aspx page to reference it.
David