Migrating Com Componets -
08-23-2006
, 08:17 AM
I have a VB dll which has one class which exposes a collection. Now i want
to use that collection in ASP.Net page. What i did was following.
I converted VB dll to .Net compatible dll with TlbImp utility and then i
referenced that dll into my ASP.Net project. Everything works fine with the
dll except this collection problem. Following is the code
Dim mycol As VBA.CollectionClass
mycol = objQRQuestionInfo.CollQPartInfo()
Where CollQPartInfo function returns a VB collection object.
Now what i see in .Net IDE is objQRQuestionInfo.CollQPartInfo is under lined
and the message i see is "Reference required to assembly VBA containing the
type VBA.Collection". But i have reference set to VBA.
Do i need to do anything extra? Please help
Thanks and regards |