I just bought Visual C++ 6 and I wanted to create a simple COM object that I could call from VB.

I created an ATL COM project and added a class with one method. I compiled the project and the output was the dll that I wanted. Opened vb and made a reference to the dll and then tried to code a simple routine that would call the ATL COM object.

Dim oTest As New <Project>.<Class>

Well, intellisense doesn't pick it up like it does with ActiveX dll's from vb and I didn't think much of it but when I ran the project and made the call I get a message about the User defined type is not defined.

Well, I'm very new to Visual C++ so some help would be appreciated.

Thanks.