// main.cpp#include <QAxObject>#include <qt_windows.h>int main(int argc, char **argv){ CoInitialize(0); QByteArray object("Excel.Application"); QAxObject axobject(object); if (axobject.isNull()) { qWarning("Could not instantiate COM object '%s'", object.data()); return -2; } else { qWarning("COM object '%s' instantiated!", object.data()); return -2; } return 0;}
TEMPLATE = appCONFIG += console qaxcontainerSOURCES += main.cpp
dumpdoc Excell.Application