DECLARE (non-BASIC statement) - QB64 Wiki

DECLARE (non-BASIC statement)

From QB64 Wiki

Jump to: navigation, search

Declares calling sequences for external procedures written in other languages.


Syntax:

DECLARE {SUB|FUNCTION} name [ CDECL ] [ ALIAS "aliasname"] [([parameterlist, ...])]


  • Currently NOT supported in QB64!
  • CDECL indicates that the procedure uses the C language argument order.
  • ALIAS indicates the procedure name used in the object or library file.
  • The syntax for the parameterlist is as follows: [{ BYVAL | SEG }] variable [AS type [,[{ BYVAL | SEG }] variable2 [ AS type]]...
  • QB64 ignores DECLARE statements, so define the parameter TYPE values in the SUB!


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version