Mahlzeit!
Ähm, also "laufen" tut es ohne Fehlermeldung, aber die Ausgabe kommt mir spanisch äh chinesisch vor
Code: Alles auswählen
Version: 1.0.22.11312琀潯洠湡⁹ (瑨灴⼺氯扩獵)
䥌啂䉓卟䍕䕃卓⼠䰠䉉单彂剔乁䙓剅䍟䵏䱐呅䑅
*context = 17408608
[ERR] LIBUSB::openDevice: 䥌啂䉓䕟剒剏䅟䍃卅S䥌啂䉓䕟剒剏也彏䕄䥖䕃䰀䉉单彂
Bus 004 Device 001: ID 1D6B:0003
[ERR] LIBUSB::openDevice: 䥌啂䉓䕟剒剏䅟䍃卅S䥌啂䉓䕟剒剏也彏䕄䥖䕃䰀䉉单彂
Bus 003 Device 001: ID 1D6B:0002
[ERR] LIBUSB::openDevice: 䥌啂䉓䕟剒剏䅟䍃卅S䥌啂䉓䕟剒剏也彏䕄䥖䕃䰀䉉单彂
Bus 002 Device 004: ID 05E3:0617
[ERR] LIBUSB::openDevice: 䥌啂䉓䕟剒剏䅟䍃卅S䥌啂䉓䕟剒剏也彏䕄䥖䕃䰀䉉单彂
Bus 002 Device 002: ID 2109:0811
[ERR] LIBUSB::openDevice: 䥌啂䉓䕟剒剏䅟䍃卅S䥌啂䉓䕟剒剏也彏䕄䥖䕃䰀䉉单彂
Bus 002 Device 003: ID 05E3:0612
[ERR] LIBUSB::openDevice: 䥌啂䉓䕟剒剏䅟䍃卅S䥌啂䉓䕟剒剏也彏䕄䥖䕃䰀䉉单彂
Bus 002 Device 001: ID 1D6B:0003
[ERR] LIBUSB::openDevice: 䥌啂䉓䕟剒剏䅟䍃卅S䥌啂䉓䕟剒剏也彏䕄䥖䕃䰀䉉单彂
Bus 001 Device 008: ID 046D:C52B
Bus 001 Device 007: ID 0BDA:2838 敒污整k 呒㉌㌸唸䥈䥄R
[...]
... dabei stören mich als ersten Schritt die Fehler nicht, sondern daß die Zeichenausgabe nicht funzt.
Das hier ist die Ausgabe der 1. Zeile:
Code: Alles auswählen
Procedure.s getVersionString()
Protected *version.libusb_version
Protected result.s
*version = getVersion()
With *version
result = Str(\major) + "." + Str(\minor) + "." + Str(\micro) + "." + Str(\nano)
If (\rc)
result + PeekS(\rc, #PB_Ascii)
EndIf
If (\describe)
result + " (" + PeekS(\describe, #PB_Ascii) + ")"
EndIf
EndWith
ProcedureReturn result
EndProcedure
Wobei ich davon ausgehe, daß
Ascii die Entsprechung zu
http://libusb.sourceforge.net/api-1.0/s ... rsion.html:
Code: Alles auswählen
struct libusb_version {
const uint16_t major;
const uint16_t minor;
const uint16_t micro;
const uint16_t nano;
const char *rc;
const char* describe;
};
const char ist ?!
Dann habe ich mich gefragt: ist ein String unter Linux x64 evtl. #PB_UTF8, oder gar #PB_Unicode ???
Aber nichts hat funktioniert. Nun bin ich doch von C nach Basic gewechset, damit es einfacher wird!

(Nicht wirklich, aber passt in diesem Kontext

)
Kann mir jemand, mit deutlich mehr Ahnung als ich, da evtl. weiter helfen?
Gruß,
Stefan