I am experimenting with an ActiveX app that has no window. Just as an experiment I made a windowless ActiveX control that has only one interface (added by me): Add5().
This function takes a long as it's input and returns the value with 5 added to it.

OK, well, creating the control was no big deal, but using it looks like a real bear. If I create a very simple MFC dialog based app and drop the control onto the dialog, I don't see how I access the control.

How should I use this control (or any control that I just want to call functions on without having the control as a visible object)?

Regards,

-Tim

Dead men don't spam.