PureBasic是由Fantaisie Software所开发的商用BASIC程序语言集成开发环境(IDE)。特点是语法简单直接,不依赖运行时库,因此能编译出相当小巧的程序,包含命令列GUI执行档DLL等。而且不使用各系统的API,所以有高度的跨平台特性,支持Windows 32/64位元、Linux 32/64位元、Mac OS XAmiga

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

代码范例 编辑

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日].