Page 1 of 1

Why no CLSID_NPVector2 ?

Posted: Thu Jan 26, 2006 11:30 am
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?

Re: Why no CLSID_NPVector2 ?

Posted: Thu Jan 26, 2006 12:06 pm
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?