PureBasic

维基百科,自由的百科全书
跳转到导航 跳转到搜索
PureBasic
File:PureBasic IDE 5.10.png
编程范型结构化编程指令式編程过程式编程
语言家族BASIC
設計者Fantaisie Software
實作者Fantaisie Software
发行时间1998年(AmigaOS)
2000年(Windows)
当前版本
    Module:EditAtWikidata第29行Lua错误:attempt to index field 'wikibase' (a nil value)
    操作系统跨平台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
    

    外部連結[编辑]