Die Suche ergab 195 Treffer

von - chris -
29.08.2020 17:29
Forum: Allgemein
Thema: Frequenzgenerator mit PB über DLL ansprechen
Antworten: 4
Zugriffe: 1595

Re: Frequenzgenerator mit PB über DLL ansprechen

Der Befehl "ShowGen(1)" startet das Programm "FGU.exe"



Global FGULINK_hDLL.i

;- Prototype
Prototype.i GenReady()
Prototype.i SetLibWave(freq.f, ampl.f, offset.f, filter.i, FileName.p-ascii)
Prototype.i SetSweep(freq1.f, freq2.f, ampl.f, offset.f, time.f, form.i)
Prototype.i SetGen(func.i, freq ...
von - chris -
22.01.2017 20:16
Forum: Anfänger
Thema: Gelöst: Datumsfunktionen
Antworten: 6
Zugriffe: 2208

Re: Datumsfunktionen

Code: Alles auswählen

Text$=FormatDate("%dd.%mm.%yyyy",769446000)
Debug Text$
von - chris -
22.08.2016 17:56
Forum: Anfänger
Thema: MyLittleGrid MLG.DLL
Antworten: 11
Zugriffe: 3881

Re: MyLittleGrid MLG.DLL

Bei MLG_PUT bekomme ich auch einen Fehler "Ungültiger Speicherzugriff".

Mit MLG_PUTZ funktioniert es:
(For non Power Basic languages that do not reference BSTRs see the PutZ function.)



Prototype.i MLG_PUTZ(hGrid.l, ROW.l, COL.l, *mystr, refresh.l, sheetnum.l = 0)

....

*buffer = AllocateMemory ...
von - chris -
20.08.2016 19:23
Forum: Anfänger
Thema: MyLittleGrid MLG.DLL
Antworten: 11
Zugriffe: 3881

Re: MyLittleGrid MLG.DLL

Die ersten Versuche mit MyLittleGrid:



;http://shop.powerbasic.com/products/my-little-grid

#IDC_MLGGRID = 100

;#MLG_STYLE = 1353711616
#MLG_STYLE = #WS_VISIBLE | #WS_BORDER | #WS_CHILD | #WS_CLIPCHILDREN | #WS_CLIPSIBLINGS

Global MLG_hDLL.i

;- Prototype
Prototype.i MLGHSIZERPROC()
Prototype.i ...
von - chris -
10.12.2015 19:59
Forum: Code, Tipps und Tricks
Thema: ExcelFunktionen COMatePlus
Antworten: 179
Zugriffe: 104099

Re: ExcelFunktionen COMatePlus

Das Funktioniert bei mir nur mit Unicode
von - chris -
22.11.2015 15:39
Forum: Anfänger
Thema: Windows Threads auslesen
Antworten: 9
Zugriffe: 2080

Re: Windows Threads auslesen



; https://msdn.microsoft.com/en-us/library/windows/desktop/ms686832%28v=vs.85%29.aspx

EnableExplicit

Global Kernel32_hDLL.i

Prototype.i CloseHandle(hObject.i)
Prototype.i CreateToolhelp32Snapshot(dwFlags.l, th32ProcessID.l)
Prototype.i Process32First(hSnapshot.i, *lppe)
Prototype.i ...
von - chris -
22.11.2015 14:52
Forum: Anfänger
Thema: Windows Threads auslesen
Antworten: 9
Zugriffe: 2080

Re: Windows Threads auslesen

Until Thread32Next_(Snapshot, @ThE32)

Da fehlt das #False
von - chris -
26.04.2015 19:05
Forum: Anfänger
Thema: Bedingungen bei While/Until: Auswertung unterschiedlich
Antworten: 6
Zugriffe: 1275

Re: Bedingungen bei While/Until: Auswertung unterschiedlich

Code: Alles auswählen


a = 3
While a > 0 Or a = #False
  a - 1
  Debug a
Wend

Bei "Or #False" ist die Bedingung nie erfüllt.

Code: Alles auswählen


a = 3
Repeat
  a - 1
  Debug a
Until a = 0 Or a = #True

Bei "Or #True" wird die Repeat Schleife sofort verlassen
von - chris -
08.02.2015 16:32
Forum: Anfänger
Thema: string in byte array
Antworten: 10
Zugriffe: 3267

Re: string in byte array

Hier kommt ohne PrototypeC:

"[15:30:23] [ERROR] Ungültiger Speicherzugriff. (Lesefehler an der Adresse 0)"



EnableExplicit

IncludeFile "AHid.pbi"

Global *parm1

*parm1 = AllocateMemory(1024)
If *parm1 = 0
End
EndIf

Procedure init()

Protected res.i, hwnd.i

PokeS(*parm1, "012345678", -1 ...
von - chris -
08.02.2015 14:56
Forum: Anfänger
Thema: string in byte array
Antworten: 10
Zugriffe: 3267

Re: string in byte array

#AHID_LICENSE_ERROR wird zurück gegeben wenn die 30 Tage abgelaufen sind.