K8055D & Win10

Hardware- und Elektronikbasteleien, Ansteuerung von Schnittstellen und Peripherie.
Fragen zu "Consumer"-Problemen kommen in Offtopic.
BSP
Beiträge: 188
Registriert: 01.02.2009 14:04

K8055D & Win10

Beitrag von BSP »

Hallo Allerseits.
Ich nutze die Experimentierplatine K8055 von Vellemann.
Nun mit Window10

Unter PB x86 läuft die, unter PB x64 leider nicht.
Hat von Euch jemand eine Idee, was ich machen muss,
damit die DLL auch unter PB x64 läuft?

Gruß & Dank
Bernd

Code: Alles auswählen

a = OpenLibrary(0,"K8055D.DLL")
If a
  Debug a
  CallFunction(0,"OpenDevice",1)
  CallFunction(0,"ClearAllDigital")
  
  For j = 1 To 2
    For i = 0 To 7
      pin = Pow(2, i)
      CallFunction(0, "WriteAllDigital", pin)
      Delay(1000)
    Next
  Next
  
  CallFunction(0,"ClearAllDigital")
  CallFunction(0,"CloseDevice")
  CloseLibrary(0)
  
Else
  MessageRequester("K8055D", "Konnte die"+ #LF$ + "DLL nicht öffnen")
EndIf
End
PB 5.31 (x86) & (x64) Win10
Benutzeravatar
ts-soft
Beiträge: 22292
Registriert: 08.09.2004 00:57
Computerausstattung: Mainboard: MSI 970A-G43
CPU: AMD FX-6300 Six-Core Processor
GraKa: GeForce GTX 750 Ti, 2 GB
Memory: 16 GB DDR3-1600 - Dual Channel
Wohnort: Berlin

Re: K8055D & Win10

Beitrag von ts-soft »

Du kannst mit 64-Bit PB nur 64-Bit DLLs laden und umgekehrt. Wenn es also keine 64-Bit DLL gibt, haste keine Chance!

Ist übrigens keine PB-Einschränkung!
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Nutella hat nur sehr wenig Vitamine. Deswegen muss man davon relativ viel essen.
Bild
BSP
Beiträge: 188
Registriert: 01.02.2009 14:04

Re: K8055D & Win10

Beitrag von BSP »

Hallo ts-soft.

Die Demoversion von Vellemann läuft aber auch.
Und zwar ohne Kompatibilitätsmodus. (Also x64 ?)
http://www.velleman.eu/support/downloads/?code=K8055N
Gruß:
Bernd
PB 5.31 (x86) & (x64) Win10
Benutzeravatar
ts-soft
Beiträge: 22292
Registriert: 08.09.2004 00:57
Computerausstattung: Mainboard: MSI 970A-G43
CPU: AMD FX-6300 Six-Core Processor
GraKa: GeForce GTX 750 Ti, 2 GB
Memory: 16 GB DDR3-1600 - Dual Channel
Wohnort: Berlin

Re: K8055D & Win10

Beitrag von ts-soft »

Nein, die Demo läuft mit 32-Bit
K8055N_DLL_manual.pdf hat geschrieben:In this manual we will describe each of these functions provided by the DLL in detail. Calling the functions exported by
the DLL, you can write custom Windows applications in Delphi, Visual Basic or any other 32-bit Windows application
development tool that supports calls to a DLL.
Steht ganz am Anfang im Handbuch! Betonung liegt auf: any other 32-bit Windows application.
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Nutella hat nur sehr wenig Vitamine. Deswegen muss man davon relativ viel essen.
Bild
BSP
Beiträge: 188
Registriert: 01.02.2009 14:04

Re: K8055D & Win10

Beitrag von BSP »

Schiete.
Also Gut, dass die PB x86 Version auch unter Win10 läuft.
Sonst müsste ich meine Modellbahn komplett umrüsten.

Danke für Deine Mühe, ts-soft.
Gruß:
Bernd
PB 5.31 (x86) & (x64) Win10
Benutzeravatar
ts-soft
Beiträge: 22292
Registriert: 08.09.2004 00:57
Computerausstattung: Mainboard: MSI 970A-G43
CPU: AMD FX-6300 Six-Core Processor
GraKa: GeForce GTX 750 Ti, 2 GB
Memory: 16 GB DDR3-1600 - Dual Channel
Wohnort: Berlin

Re: K8055D & Win10

Beitrag von ts-soft »

Kleiner Tipp noch am Rande: CallFunction usw. sind veraltet, besser Prototypes nutzen!
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Nutella hat nur sehr wenig Vitamine. Deswegen muss man davon relativ viel essen.
Bild
Antworten