Are there static functions in ATL/COM

Is it possible to have static methods declared and defined within an ATL object, so that VB client  won't have to create the object but call the method directly as I do within C++ MyClass::MyStaticMethod() without having to call 'new' on MyClass.

If there is, I would appreciate a link to an example
yossikallyAsked:
Who is Participating?
 
multithreadingConnect With a Mentor Commented:
Not via COM. It is an interface based calling protocol. Interfaces (by their very nature, being interfaces to -objects-, not interfaces to -classes-) have no static (class level) methods.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.