Loading swfs in QAxWidget only full paths load
-
For example:
[code]
QAxWidget *flash = new QAxWidget(ui->widget);
flash->resize(740, 580);
flash->setControl(QString::fromUtf8("{d27cdb6e-ae6d-11cf-96b8-444553540000}"));
flash->dynamicCall("LoadMovie(long,string)", 0, QDir::currentPath()+"/file.swf");
[/code]
^ works[code]
QAxWidget *flash = new QAxWidget(ui->widget);
flash->resize(740, 580);
flash->setControl(QString::fromUtf8("{d27cdb6e-ae6d-11cf-96b8-444553540000}"));
flash->dynamicCall("LoadMovie(long,string)", 0, "file.swf");
[/code]
^ doesn't workI run the untitled1.exe from the same folder as the file.swf but the swf never loads.
Does it look somewhere else for file.swf other than the working directory?