For faster navigation, this Iframe is preloading the Wikiwand page for PowerBASIC.

PowerBASIC

PowerBASIC
发行时间1996年?
当前版本
  • 10.0 (2011年5月4日;稳定版本)
编辑维基数据链接
操作系统Windows, DOS
网站PowerBASIC: Basic Compilers
主要实作产品
PowerBASIC
启发语言
BASIC

PowerBASIC由位于美国佛罗里达州威尼斯的PowerBASIC公司所制作,为一种BASIC编译器,分别拥有DOS版本及Windows版本(其中又有命令行版本及图形界面开发版本)。DOS版本使用的语法类似QBasicQuickBASIC,而Windows版本则类似其他程式编译器,结合标准BASIC语言和API调用。最早发布的版本被称作BASIC/Z,之后由Borland发行时叫做Turbo BASIC。1989年Borland不再贩售Turbo BASIC与Turbo Pascal,Turbo BASIC由原开发者成立公司,而以PowerBASIC为名继续发行。[1]

语言特色

PowerBASIC的Windows版本并没有类似Visual Basic的图形开发界面,取而代之的是一个包含调试工具的纯文字开发界面,但官方及其他团体均有提供另外开发的图形开发界面以解决文字开发界面的不足,例如官方开发的PowerBASIC Forms及HelloBasic.com开发的PwrDev Developer等等。PowerBASIC能编译出机器代码,即不需要运行库的程式,编译所得程式体积小与运行速度快,以此做为与过往执行效率不佳的BASIC语言的差异,声称其运行速度不逊于当今流行的电脑语言,例如Visual Basic, C++[2]同时PowerBASIC支援开发更多范畴的程序,例如DLL控制台程式甚至驱动程式

此外,PB/WIN 10.0虽然是32位元程式,但与Windows 10相容。也支援多线序、序列埠通讯,并提供完整的图型支援。[3]

版本更新

版本 发布日期 主要更新内容 后续更新
PB/WIN 7.0 2003年5月5日[5] --- 于2003年5月29日更新7.02版本。[6]
于2004年4月15日更新7.03版本。[7]
于2004年5月10日更新7.04版本。[8]
PB/WIN 8.0 2005年3月18日[9] --- 于2006年9月21日更新8.02版本。
于2006年11月20日更新8.03版本。[10]
于2007年10月9日更新8.04版本。[11]
PB/WIN 9.0 2008年8月12日[12]
  1. 加入对物件的支持
于2009年3月3日更新9.01版本。[13]
于2009年10月8日更新9.02版本。[14]
于2010年1月6日更新9.03版本。[15]
于2010年3月15日更新9.04版本。[16]
于2010年7月30日更新9.05版本。[17]
PB/WIN 10.0 2011年1月29日[18]
  1. 加入静态连结库(.sll)的支持;
  2. 加强对Unicode字串的支持;
  3. 加强对多线程的支持。
尚未有版本更新。

代码范例

  • 编写静态连结库的范例代码:
'編譯為conversion.sll檔案
#COMPILE SLL "conversion.sll"
#DIM ALL

'由毫米換算成吋的函數
FUNCTION MillimetersToInches (BYVAL mm AS DOUBLE) COMMON AS DOUBLE
    FUNCTION = mm * 0.03937#
END FUNCTION
  • 编写动态连结库的范例代码:
#COMPILE DLL "conversion.dll"
#DIM ALL

FUNCTION LIBMAIN (BYVAL hInstance   AS LONG, _
                  BYVAL fwdReason   AS LONG, _
                  BYVAL lpvReserved AS LONG) AS LONG
    SELECT CASE fwdReason
    CASE %DLL_PROCESS_ATTACH
        FUNCTION = 1
    CASE %DLL_PROCESS_DETACH
        FUNCTION = 1
    CASE %DLL_THREAD_ATTACH
        FUNCTION = 1
    CASE %DLL_THREAD_DETACH
        FUNCTION = 1
    END SELECT
END FUNCTION

'由毫米換算成吋的函數
FUNCTION MillimetersToInches ALIAS "MillimetersToInches" (BYVAL mm AS DOUBLE) EXPORT AS DOUBLE
    FUNCTION = mm * 0.03937#
END FUNCTION

参考文献

  1. ^ PowerBASIC makes smooth move; Tech company finds region's affordability attractive.. Sarasota Herald Tribune (October , 2000). [2008-03-12]. (原始内容存档于2011-05-18). 
  2. ^ PowerBASIC官方介紹. [2010-02-12]. (原始内容存档于2008-03-08). 
  3. ^ PowerBASIC Compiler for Windows Version 10 (PDF). [2019-12-02]. (原始内容存档 (PDF)于2018-11-07). 
  4. ^ 版本更新資料來源:PowerBASIC官方論壇產品發佈頁. [2010-02-12]. (原始内容存档于2010-01-03). 
  5. ^ Free Updates to PB/CC 3 and PB/Win 7.0 - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  6. ^ Free Updates to PB/CC 3 and PB/Win 7(x.02 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  7. ^ Free Updates to PB/CC 3 and PB/Win 7(x.03 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  8. ^ Free Updates to PB/CC 3 and PB/Win 7(x.04 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  9. ^ Free Updates to PB/CC 4, PB/Win 8, and PB/Forms 1.5 - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  10. ^ Free Updates to PB/CC 4 and PB/Win 8(x.03 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  11. ^ Free Updates to PB/CC 4 and PB/Win 8(x.04 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2010-01-04). 
  12. ^ Release of PowerBASIC 9.0 for Windows - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  13. ^ Free Updates to PB/CC 5 and PB/Win 9(x.01 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  14. ^ Free Updates to PB/CC 5 and PB/Win 9(x.02 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  15. ^ Free Updates to PB/CC 5 and PB/Win 9(x.03 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  16. ^ Free Updates to PB/CC 5 and PB/Win 9(x.04 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  17. ^ Free Updates to PB/CC 5 and PB/Win 9(x.05 release) - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2011-07-18). 
  18. ^ PB/Win 10 & PB/CC 6 -- What's new? - PowerBASIC Peer Support Forums. [2011-04-09]. (原始内容存档于2014-07-24). 

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
PowerBASIC
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?