|
-
Oct 8th, 2002, 03:05 PM
#1
Thread Starter
Hyperactive Member
COM and .NET
Hi, I have a COM object which I created and used under ASP and VB 6.
I want to use the same COM object under .NET so I added a reference to it under the VS IDE (Specifying COM).
When I define a variable and associate it with the COM object I get
Type 'ProjectName.ClassName' is not defined.
The 'ProjectName' reference shows up under the references panel in my project.
I have tried copying the dll to the Bin folder.
Help appreciated
Regards
MarkusJ
-
Oct 8th, 2002, 03:17 PM
#2
Member
open the object browser and have alook at the com object (it should be listed) and check that the namepace and classnames are right,
Last edited by spike232; Oct 8th, 2002 at 03:20 PM.
-
Oct 8th, 2002, 03:32 PM
#3
Thread Starter
Hyperactive Member
Hi, I checked the Object browser and it all seems ok.
In the object browser tree I have:
+MyProject
-Interop.DLLProjectName
-DllProjectName
- Classname
+Microsoft Visual Basic .NET runtime
+ ....
In my Code I am just going:
VB Code:
Dim oNewObject as new DllProjectName.ClassName
I still receive the 'Compiler Error Message: BC30002: Type 'DllProjectName.Classname' is not defined.' error
Thanks again for your help
MarkusJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|