PureBasic

维基百科,自由的百科全书
PureBasic
编程范型结构化编程指令式編程过程式编程
语言家族BASIC
設計者Fantaisie Software
實作者Fantaisie Software
发行时间1998年(AmigaOS)
2000年(Windows)
当前版本
  • 6.01 LTS (2023年3月7日;穩定版本)[1]
編輯維基數據鏈接
操作系统跨平台Microsoft WindowsLinuxMac OS XRaspberry Pi OS (活躍中)
AmigaOS (停產,开放源代码
許可證商业软件
文件扩展名.pb .pbi .pbf, .pbp
網站www.purebasic.com
啟發語言
BASIC

PureBasic是由Fantaisie Software所開發的商用BASIC程序语言整合開發環境(IDE)。特點是語法簡單直接,不依賴运行时库,因此能編譯出相當小巧的程序,包含命令列GUI執行檔DLL等。而且不使用各系統的API,所以有高度的跨平台特性,支持Windows 32/64位元、Linux 32/64位元、Mac OS XAmiga

代碼範例

CompilerIf #PB_Compiler_OS = #PB_OS_Windows
    ProcedureDLL AttachProcess(Instance)
    EndProcedure

    ProcedureDLL DetachProcess(Instance)
    EndProcedure

    ProcedureDLL AttachThread(Instance)
    EndProcedure

    ProcedureDLL DetachThread(Instance)
    EndProcedure
CompilerEndIf

ProcedureDLL Test(Message$)
    MessageRequester("Test!", Message$)
EndProcedure

外部連結

  1. ^ PureBasic 6.01 LTS. 2023年3月7日 [2023年4月12日].