Why no CLSID_NPVector2 ?

Post Reply
Anonemous
Posts: 6
Joined: Thu Jan 26, 2006 5:00 am
Location: USA

Why no CLSID_NPVector2 ?

Post by Anonemous »

First off, let me say that I'm rather unfamiliar with the Microsoft programming environment.

But in any case, I wanted to take the Optitrack sample VC code and try out using Vector2 instead of Vector. Given that it's a derived class, I figured that I could just add '2's where appropriate, but of course this did not work, or else I wouldn't be here.

So did you guys forget to declare a CLSID for NPVector2, or should I be doing something completely different?
Anonemous
Posts: 6
Joined: Thu Jan 26, 2006 5:00 am
Location: USA

Re: Why no CLSID_NPVector2 ?

Post by Anonemous »

So I tried just changing the definition of m_spVector in CameraDlg.h while leaving the call to the CoCreateInstance unchanged, and that seems to work. I think. Why does Microsoft have to make everything harder?
Post Reply