Bonjour à tous!
voila j'ai un problème au niveau d'un timer que j'ai créé de la manière suivante
J'ai essayé de suivre les indications du faq de farscape mais j'ai les erreurs suivantes:
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75 #include<windows.h> #include <stdio.h> #include <stdlib.h> #include "Timer.h" // Timer dialog /*static*/void Timer::OnStartTimer() { UINT_PTR m_nTimer; m_nTimer = SetTimer(1, 10, 0); } /*static*/void Timer::OnStopTimer() { UINT_PTR m_nTimer; KillTimer(m_nTimer); } /*static*/ void Timer::OnTimer(UINT IdTimer) { int PedalState; PedalState=0; unsigned char Authmov[1]={140}; // get etat command unsigned char NoAuthmov[1]={141}; // get etat command CCom::ClosePortCom(); CCom::InitPortCom(); if(PedalState = 0) { WriteFile(hcom,Authmov, 1, &m, NULL); CCom::ReadBuffer(); if ((data[1]=1)&&(data[0]=140)) { OnStopTimer(); OnStartTimer(); } else { OnStopTimer(); OnStartTimer(); } } else { WriteFile(hcom,NoAuthmov, 1, &m, NULL); if ((data[1] = 1) && (data[0]=141)) { OnStopTimer(); OnStartTimer(); } else { OnStopTimer(); OnStartTimer(); } } }
error LNK 2019:unresolved external symbol "public:static unisgned int_cdecl Timer::SetTimer...
error LNK 2019:unresolved external symbol "public:static unisgned int_cdecl Timer::killTimer...
J'ai cherché dans les forums mais je ne comprends pas vraiment ...
Pouvez vous me donner un coup de main?
Merci d'avance.
Partager