PureBasic

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

代碼範例
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

外部連結

评论 (0)

  • 还没有评论,来抢沙发吧。