• 26345阅读
  • 42回复

QT 基于C/S的远程控制 [复制链接]

上一主题 下一主题
离线big_mouse

只看该作者 40楼 发表于: 04-15
离线oceanwanqing

只看该作者 41楼 发表于: 06-03
楼主您好,我想学习一下您的这个代码,但是ZeroNetClient编译时报了3个错误,分别是:
1)error: invalid conversion from 'BOOL (*)(HWND, UINT, WPARAM, LPARAM) {aka int (*)(HWND__*, unsigned int, long long unsigned int, long long int)}' to 'DLGPROC {aka long long int (*)(HWND__*, unsigned int, long long unsigned int, long long int)}' [-fpermissive]
     int ret = DialogBoxIndirectParamA(NULL,temp, NULL, keyboardSpyWndProc,(LPARAM)NULL);
2) error: invalid conversion from 'void (*)(HWND, UINT, UINT, DWORD) {aka void (*)(HWND__*, unsigned int, unsigned int, long unsigned int)}' to 'TIMERPROC {aka void (*)(HWND__*, unsigned int, long long unsigned int, long unsigned int)}' [-fpermissive]
         SetTimer(hWnd,0, time, sendKeyboardData);
3)error: no matching function for call to 'CreateDCA'
我使用的是Qt5.12
                                                ^
                                                                                       ^
离线oceanwanqing

只看该作者 42楼 发表于: 06-04
您好,我有个项目需要远程控制这个功能,正好看到您的这个程序可以借鉴一下,但是我编译您的这个程序的时候,client那个程序编译不过,分别是keyboardspy.c中第94行的int ret = DialogBoxIndirectParamA ,和第111行的SetTimer (hWnd,0,time,sendKeyboardData)还有screenspy.c中第28行 hScrDC = CreateDCA(_T("DISPLAY"),NULL,NULL,NULL)。这三个都报错,我用的是QT5.12,您方便给指导指导吗。谢谢
快速回复
限100 字节
 
上一个 下一个