Author Topic: VB to QB64 converting Win API calls  (Read 53 times)

Offline SW

VB to QB64 converting Win API calls
« on: June 14, 2019, 05:13:05 PM »
Just code samples for VB and QB64 convertion. Not found something like this, so can be usefull.

sample #1
Code: Visual Basic [Select]
  1. Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Long, Source As Long, ByVal Length As Long)
Code: QB64 [Select]
  1.      SUB CopyMemory ALIAS "RtlMoveMemory" (Destination AS LONG, Source AS LONG, BYVAL Length AS LONG)

sample #2
Code: Visual Basic [Select]
  1. Declare Function GetTickCount Lib "kernel32" () As Long
Code: QB64 [Select]
  1.     FUNCTION GetTickCount&
Pay attention! "as Long" transform to suffix "&"