Boujour,
je cherche une solution à l'érreur cité dans le titre:
ERROR C3867, liste d'arguments manquante dans l'appel de fonction!
header file:
et voici le fichier cpp qui contient l'erreur!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QtGui/QWidget> #include <QLabel> #include <QPushButton> #include <QVBoxLayout> #include <QString> #include <QMainWindow> #include "stdafx.h" #include "bthUtils.h" #include "resourceppc.h" #include <atlbase.h> #include <ws2bth.h> #include <bthapi.h> #include <bthutil.h> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = 0); ~MainWindow(); void DisplayMessage(WCHAR *szMessage); protected: void changeEvent(QEvent *e); private: Ui::MainWindow *ui; private slots: void search(); void getLocalName(); void startServerConnection(); void stopServerConnection(); void sendMessage(); private: BthUtils* bthUtil; }; #endif // MAINWINDOW_H
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 ..... void MainWindow::DisplayMessage(WCHAR *szMessage) { // QString name; // name.fromUcs4(szMessage,static_cast<unsigned int>(wcslen(szMessage))); LPWSTR msg = szMessage; USES_CONVERSION; QString message = QString(W2A(msg)); //operation pour detecter le GPS TOMTOM Bluetooth ui->listWidget->addItem(message); .... ... void MainWindow::startServerConnection() { ui->listWidget->addItem("Opening Server Connection"); ui->label->setText("Opening Server Connection"); DeviceInfo* g_pLocalDeviceInfo = (DeviceInfo*)malloc(sizeof(DeviceInfo)); bthUtil->GetLocalDeviceName(g_pLocalDeviceInfo); int resConn = bthUtil->OpenServerConnection(rgbSdpRecord, SDP_RECORD_SIZE, SDP_CHANNEL_OFFSET , DisplayMessage ); if ( resConn!= 0) { ui->listWidget->addItem("Server Failed"); } else { ui->listWidget->addItem("Server State...OK"); } ui->label->setText("Server start"); } }
Partager