But it doesn't work. Exception "Class not registered" occurs.
Is your application built as 64-bit or Any CPU on a 64-bit computer? ServerX is a 32-bit ActiveX and this could be the reason why you are getting the "Class not registered" error, because a 64-bit application cannot instantiate 32-bit ActiveX controls.
Is it possible that ServerX works without user interface?
I haven’t tried this, but chances are, that if you don’t want to show any UI, you would need to create a hidden window and add use it as a parent to window create a ServerX control instance.
Kindest Regards,SmartCode Solutions Support