我使用QAxBase::signal来连接COM事件。
QAxBase :: signal有参数:
import { Component } from '@angular/core';
@Component({
selector: 'app-subscribe',
templateUrl: './subscribe.component.html',
styleUrls: ['./subscribe.component.scss']
})
export class SubscribeComponent {
constructor() { }
}
void * argv转换为VARIANTARG:
signal(const QString &name, int argc, void *argv)
如何将VARIANTARG转换为QString?
UPD:
VARIANTARG结构:
VARIANTARG *params = (VARIANTARG*)argv;
// *params[2] - it's QString