查看完整版本: [-- qt dumpcpp mstscax.dll --]

QTCN开发网 -> Qt基础编程 -> qt dumpcpp mstscax.dll [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

libin0410 2015-06-07 14:00

qt dumpcpp mstscax.dll

使用qt开发windows远程桌面程序,调用mstscax.dll。
通过dumpcpp 导出mstscax.dll的头文件和源文件,但是使用头文件里面的函数时,出现以下错误
mainwindow.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall MSTSCLib::MsRdpClient6NotSafeForScripting::Connect(void)" (?Connect@MsRdpClient6NotSafeForScripting@MSTSCLib@@QAEXXZ),该符号在函数 "public: __thiscall MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QAE@PAVQWidget@@@Z) 中被引用
mainwindow.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall MSTSCLib::IMsRdpClientAdvancedSettings5::SetClearTextPassword(class QString const &)" (?SetClearTextPassword@IMsRdpClientAdvancedSettings5@MSTSCLib@@QAEXABVQString@@@Z),该符号在函数 "public: __thiscall MainWindow::MainWindow(class QWidget *)" (??0MainWindow@@QAE@PAVQWidget@@@Z) 中被引用


源码如下:MainWindow::MainWindow(QWidget *parent) :   QMainWindow(parent),    ui(new Ui::MainWindow){  
ui->setupUi(this);    
//rdpWidget=new MSTSCLib::MsRdpClient6(this);  
//vBox=new QVBoxLayout(this);    
rdpWidget=new MsRdpClient6NotSafeForScripting(this);  
rdpWidget->show();    //vBox->addWidget(rdpWidget);    
rdpWidget->SetUserName("username");    
rdpWidget->SetServer("ip");    
rdpWidget->AdvancedSettings6()->SetClearTextPassword("123");  
rdpWidget->Connect();
}

mqb1129 2016-12-27 17:46
楼主,问题解决吗?


查看完整版本: [-- qt dumpcpp mstscax.dll --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled