I could really use some advice. I’m using Qt 4.1 and trying to implement an Active X control.

Here is a link to the Active X – AxisMediaControl SDK
http://www.axis.com/techsup/cam_servers/dev/activex.htm

In the SDK they have sample software using this Active X app through the MFC library, which I’ve noticed that the wrapper they wrote inherits a class called CWnd and calls a function named “InvokeHelper” for all of it’s control of the Active X component. This gives me no signs that a COM object exists for this app.

This is what I did and it doesn’t seem to work:

// ---------------------------------------------------------
QAxWidget* axis = new QAxWidget(this);

// this control id was verified and is correct
axis->setControl(QString::fromUtf8(“{745395C8-D0E1-4227-8586-624CA9A10A8D}”));
axis->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
axis->setObjectName(QString::fromUtf8(“AxisMediaC ontrol”));

// setup the MediaURL
axis->dynamicCall(“InvokeHelper(0x1, 0x4, 0, 0, “”\x0E””, http://dizco.com:81/axis-cgi/mjpg/video.cgi)”);

// setup the MediaType
axis->dynamicCall(“InvokeHelper(0x1, 0x4, 0, 0, “”\x0E””, mjpeg-unicast)”);

// press Play
axis->dynamicCall(“InvokeHelper(0x65, 0x1, 0, 0, 0, 0);
// ---------------------------------------------------------

NOTE: If you decide to download the Active X control and run the sample Visual C++ project provided by them, go to the MJPEGunicastDlg.cpp and change the media URL to the one above and you can see the live camera feed work.

Any help you may be able to give me on using this Active X app in my Qt application would be much appreciated.
Thank you.