QAxObject *act = new QAxObject("V77.Application"); connect(act,SIGNAL(exception(int,QString,QString,QString)),this,SLOT(err(int,QString,QString,QString))); QString path = trUtf8("C:\\1"); QString user = "user"; QString pass = "123"; QString connectString = "/D"+path+" /N"+user+" /P"+pass; qDebug()<<act->dynamicCall("Initialize(const QVariant&, const QVariant&, const QVariant&)", act->dynamicCall("RMTrade"), connectString, "no_splash_show"); QAxObject *query = act->querySubObject("NewObject(QString)", trUtf8("Запрос"));
QVariant(bool, true) QAxBase::dynamicCallHelper: NewObject(QString): No such property in {63112d80-94f0-11d2-9f39-008048da120f} [unknown] Candidates are:
NewObject(QString)
QString QAxBase::generateDocumentation ()
Signals:void exception(int code, QString source, QString disc, QString help);void propertyChanged(QString name);void signal(QString name, int argc, void* argv);Properties:QString objectName;QString control;
QAxObject *res = query->querySubObject("Execute(QString)", trUtf8("ВЫБРАТЬ * ИЗ Справочник.Справочник1"));
CoCreateInstance failure (????? ?? ???????????????)QAxBase::setControl: requested control V77.Application could not be instantiated
CoInitializeEx(NULL, COINIT_MULTITHREADED);
cmd> cd /d "C:\Program Files\1cv82\8.2.15.294\bin\"> regsvr32 -i comcntr.dll