Einzelnen Beitrag anzeigen

yogie

Registriert seit: 11. Sep 2003
Ort: bei Goslar
213 Beiträge
 
Delphi 6 Professional
 
#4

AW: Bluetooth und AsyncPro

  Alt 31. Jul 2011, 11:08
.. das ging schnell

Auszug aus AsyncPro

Result := CreateFile(ComName, {name}
GENERIC_READ or GENERIC_WRITE, {access attributes}
0, {no sharing}
nil, {no security}
OPEN_EXISTING, {creation action}
FILE_ATTRIBUTE_NORMAL or
FILE_FLAG_OVERLAPPED, {attributes}
0); {no template}

als Result kommt -1
@ Chemiker : ja immer noch D6 Pro
@ himitsu : das problem ist bekannt, der Fehler tritt auch unmittelbar nach einem reboot auf

Ich lasse AsyncPro nach verfügbaren COM Ports suchen, manch mal ist der
Bluetooth Port in der Liste, manchmal nicht, obwohl er im Gerätemanager immer auftaucht!

Zusatz: GetLastError liefert als code 1168 das ist laut einer Liste "Element not found"
Kompatibilität ist ein Euphemismus für n i c h t einhunderprozentige Austauschbarkeit
http://b-und-l-service.de/

Geändert von yogie (31. Jul 2011 um 11:46 Uhr)
  Mit Zitat antworten Zitat