Bonjour,
Le code suivant est utilisé et fonctionnel sous XE7. Quand je dis fonctionnel, ça veut dire que je peux lancer l'application sur deux machines différentes et que chaque évènement est bien lancé quand il faut.
Sous XE10, ça ne fonctionne plus du tout. Autoconnect par exemple ne déclenche absolument rien. En fait, j'ai juste copié et recompilé le projet dans le nouvel IDE.
XE10 nécessiterait-il un paramétrage supplémentaire pour que le fonctionnement soit correct ?
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 procedure TForm7.FormShow(Sender: TObject); begin TetheringManager1.AutoConnect(2000); end; procedure TForm7.TetheringManager1EndAutoConnect(Sender: TObject); begin Memo1.Lines.Add('TetheringManager1EndAutoConnect'); end; procedure TForm7.TetheringManager1PairedFromLocal(const Sender: TObject; const AManagerInfo: TTetheringManagerInfo); begin Memo1.Lines.Add('PairedFromLocal ' + AManagerInfo.ManagerIdentifier); end; procedure TForm7.TetheringManager1PairedToRemote(const Sender: TObject; const AManagerInfo: TTetheringManagerInfo); begin Memo1.Lines.Add('PairedToRemote ' + AManagerInfo.ManagerIdentifier); end; procedure TForm7.TetheringManager1RemoteManagerShutdown(const Sender: TObject; const AManagerIdentifier: string); begin Memo1.Lines.Add('RemoteManagerShutdown ' + AManagerIdentifier); end; procedure TForm7.TetheringManager1RequestManagerPassword(const Sender: TObject; const ARemoteIdentifier: string; var Password: string); begin Password := 'toto'; end;
Partager