HPV高危亚型52阳性什么意思| 不成敬意什么意思| 什么叫应届毕业生| 小肚胀是什么原因| 东宫是什么生肖| 易孕体质是什么意思| 为什么喝牛奶会拉肚子| 微不足道什么意思| 事例是什么意思| 青岛啤酒节是什么时候| 玉米不能和什么食物一起吃| 黄精为什么要九蒸九晒| 钻石和锆石有什么区别| 急性肠胃炎吃什么药效果好| spiderman是什么意思| 阳痿早泄吃什么药最好| 梦到牙齿掉了是什么意思| 喝苏打水有什么好处| 贤良淑德后半句是什么| 深度睡眠是什么意思| 李白字什么号什么| 苏打水是什么水| 朋友梦到我怀孕了是什么意思| 三七粉做面膜有什么功效| 磨豆腐是什么意思| 血脂和血糖有什么区别| 孤寡老人国家有什么政策| 客家人是什么意思| 哮喘是什么原因引起的| 浪琴表属于什么档次| 皮可以加什么偏旁| tomboy是什么意思| 78岁属什么| 季字五行属什么| AMI是什么病| 脚软没力气是什么原因引起的| 宫颈活检lsil是什么病| 谨遵医嘱是什么意思| 青睐什么意思| 蚕除了吃桑叶还能吃什么| 头上两个旋代表什么| 柳树的叶子像什么| 颈部淋巴结肿大挂什么科| 古龙香水什么味道| 桃子什么季节成熟| 清净心是什么意思| 肾痛是什么原因| 消融是什么意思| 煮方便面什么时候放鸡蛋| 食邑万户是什么意思| 芹菜炒什么配菜好吃| 风湿因子高是什么原因引起的| 什么地赞叹| 儿童看小鸡挂什么科| 茄子吃多了有什么坏处| 巡查是什么意思| 息肉样增生是什么意思| 黄仙是什么仙| 什么情况下要做肠镜检查| 外阴皮肤痒是什么原因| 男人眼袋大是什么原因造成的| 什么是原生家庭| 女猴配什么属相最好| 体外受精是什么意思| 打蛔虫吃什么药| 刚刚怀孕有什么症状| 生孩子前做什么检查| 边缘性行为包括什么| 五台山求什么最灵| 人生什么最重要| 儿童腹泻吃什么药| 93鸡和94狗生什么宝宝| 什么人不能吃石斛| 有氧运动和无氧运动有什么区别| 亚蒂息肉是什么意思| 84属什么生肖| 中国姓什么的人最多| 92年属猴的是什么命| 晚上睡觉咳嗽是什么原因| 炸薯条用什么粉| 男人高冷是什么意思啊| 子时是什么时间| 脑梗输什么液效果最好| bnp是什么意思| 什么药和酒一起吃必死| 发霉的衣服用什么洗能洗掉| 月经来头疼是什么原因引起的| 什么叫主动脉硬化| 小孩铅过高有什么症状| 大卡是什么意思| cc是什么| 肠镜检查挂什么科室| 整夜做梦是什么原因| 长焦镜头是什么意思| 蜈蚣代表什么生肖| 什么是入珠| 奥运会五环颜色分别代表什么| 一直打嗝不止是什么原因| 什么是直辖市| sca是什么意思| 车挂件挂什么保平安好| 沙僧的武器叫什么| 食用植物油是什么油| 智齿有什么用| 交感神经型颈椎病吃什么药| 3月18号是什么星座| 打醮是什么意思| 4.25什么日子| 不还信用卡有什么后果| 什么是便血| 冬虫夏草什么价格| 黄桃什么时候上市| 嘴唇起泡是什么火| 世界上最小的花是什么花| 平方和是什么| 向日葵代表什么生肖| 胎盘厚度代表什么| 一什么之什么成语| 奥氮平片治疗什么病| 巳时是什么时间| 腹泻吃什么消炎药| 好难过这不是我要的结果什么歌| 蛇与什么属相相配最好| 过敏是什么样的图片| 出去玩带什么| 恐龙为什么叫恐龙| 查微量元素挂什么科| them什么意思| 一直嗝气是什么原因| 京酱肉丝是什么菜系| 皮蛋吃多了有什么危害| 煤油对人体有什么危害| 为什么会经常流鼻血| 梦见什么是受孕成功了| 兵马未动粮草先行是什么意思| 乳腺增生有什么症状| 诸葛亮是一个什么样的人| ehe是什么牌子| 日加一笔变成什么字| 鸡粉是什么| 七月二十四是什么星座| 总胆固醇是什么| 今天什么节日| 夏天有什么水果| 骷髅是什么意思| 箨是什么意思| 五个月宝宝可以吃什么水果| 呆萌是什么意思| 舌头发白是什么情况| 党工委书记是什么级别| 婴儿什么时候会说话| 临兵斗者皆阵列在前什么意思| 较真的人是什么性格| 老是嗝气是什么原因| 音调是什么| 精油有什么作用| 铂金是什么材质| 婴儿外阴粘连挂什么科| 典型是什么意思| 阴虚火旺吃什么食物好| 经常失眠是什么原因| 你为什么不说话歌词| 旧人是什么意思| pc是什么缩写| 8月26日是什么星座| ih是什么意思| 为什么说婴儿摔床没事| 脂肪肝吃什么好得快| 孕妇梦见小蛇是什么意思| 血压低什么原因造成的| 势在必得是什么意思| 内分泌挂什么科| 痛经看什么科| 夏至是什么意思| 龙舌兰是什么酒| 耳心痒是什么原因| 桜什么意思| 备孕喝豆浆有什么好处| 国家专项是什么意思| 很low是什么意思| 南红五行属什么| 什么人不宜吃石斛| 符号是什么| 看舌头应该挂什么科| 羊内腰和外腰分别是什么| 结缡什么意思| 小孩摇头是什么原因| 头痛是什么原因| 试纸什么时候用最准确| 4月10号什么星座| 胳肢窝疼痛是什么原因| 鱼腥草不能和什么一起吃| 1990属什么生肖| 蒲公英泡水喝有什么功效| 爱情和面包是什么意思| 为什么会有黑头| 分手送什么花| 楠字五行属什么| 什么叫痛风| 侧柏是什么植物| 不议价什么意思| ip是什么意思| 三七泡酒有什么功效| 梦见男人是什么意思| 百合和什么一起煮可以治失眠| 7月15日是什么节| 清真是什么意思啊| 龙跟什么生肖配对最好| 金玉其外败絮其中是什么意思| 什么药治高血压效果最好| 贾宝玉和林黛玉是什么关系| 鹅吃什么草| 乳酸菌是什么| 腰肌劳损挂什么科| 见好就收是什么意思| 什么叫执行力| 霜和乳有什么区别| 槟榔长什么样| 粉刺是什么样的图片| 静脉曲张是什么引起的| apgar评分是什么意思| 女人更年期什么症状| 日什么月什么| 禾末念什么| 梦见大山是什么预兆| 尿液清澈透明说明什么| 胃烧心是什么感觉| 区号是什么| 足字旁的字有什么| 大豆是什么豆| 亚麻籽和什么相克| 脾虚可以吃什么水果| 秀气是什么意思| sss是什么意思| 铁棍山药和普通山药有什么区别| 小孩腹泻吃什么药好得快| 人为什么会长白头发| 熬夜眼睛红血丝用什么眼药水| 体恤是什么意思| 梦到挖坟墓是什么意思| 众是什么意思| bp是什么的缩写| 456什么意思| 梦见偷别人东西是什么意思| 玉米属于什么类食物| 1961属什么生肖| 楚楚动人什么意思| 暇步士是什么档次品牌| 猜忌是什么意思| 什么叫化疗| 陆陆续续是什么意思| 白带异常用什么药| 莫逆之交是什么意思| 做nt需要准备什么| 男人遗精是什么原因| 老鹰的天敌是什么| 丝瓜有什么营养| lv什么牌子| 肺纤维灶是什么意思| 老年性脑改变是什么意思| 脚转筋是什么原因引起的| 兴旺的反义词是什么| 叶酸偏高有什么影响| 四物汤是什么| 百度Jump to content

深圳雕章福田雕章13632505702罗湖雕章南山雕章

From Wikipedia, the free encyclopedia
(Redirected from Turbo Basic)
PowerBASIC
Screenshot of PowerBASIC for Windows 9.0 IDE and an example compiled Windows GUI.
DeveloperRobert "Bob" Zale (b. 1945, d. 2012)
First appeared1989; 36 years ago (1989)
Stable release
10.0 (4 May 2011; 14 years ago (2025-08-07))[1]
OSWindows (32-bit only), MS-DOS
Websitewww.powerbasic.com
Influenced by
Turbo Basic
百度 二、做法建设“法治杭州”工作将紧紧围绕人文法治示范区建设目标,着眼于抓基层、强基础、利长远、惠民生,努力推进“法治杭州”体制机制的改革创新。

PowerBASIC, formerly Turbo Basic, is the brand of several commercial compilers by PowerBASIC Inc. that compile a dialect of the BASIC programming language. There are both MS-DOS and Windows versions, and two kinds of the latter: Console and Windows. The MS-DOS version has a syntax similar to that of QBasic and QuickBASIC. The Windows versions use a BASIC syntax expanded to include many Windows functions, and the statements can be combined with calls to the Windows API.

History

[edit]

The compiler was originally published as BASIC/Z, the first interactive compiler for CP/M and MDOS. Later it was extended to MS-DOS compatible operating systems. In 1987 Borland distributed it as Turbo Basic.

Turbo Basic was originally created by Robert "Bob" Zale (1945–2012) and bought from him by Borland. When Borland decided to stop publishing it (1989), Zale bought it back from them, renamed it PowerBASIC and set up PowerBASIC Inc. to continue support and development of it; it was later called PBDOS.[2][3][4]

PowerBASIC went on to develop BASIC compilers for Windows, first PBWIN — their flagship product — and then PBCC, described below.

On November 6, 2012, Robert Zale, the creator of PowerBASIC, died. For a time, it was assumed that the company might cease operations. His wife, Vivian Zale, posted on 8 March 2014 to the PowerBASIC forums a statement that the company would continue in operation.[5] On May 10, 2015, Vivian Zale announced that work was continuing on new versions of PowerBASIC compilers.[6]

On November 2, 2016, Vivian Zale announced her intention to seek a buyer for the company.

On January 31, 2017, Adam Drake announced Drake Software had acquired the PowerBASIC source code from PowerBASIC, Inc., with the intention of updating and improving the functionality of the product.[7] This was later confirmed by Vivian Zale with a forum post thanking the members for their support.[8]

When Bob Zale died, PBWin11 and PBCC7 were in beta testing, and 64-bit compilers and PB/Pro (PBWin and CC in one compiler) were in the alpha stages. However, development of PowerBASIC products has stopped. No new version has been released since v10.03 (13 years ago as of May 2024). No 64-bit version or beta release has been announced. No development activity has been reported. No corrections (such as adding the correct DPI settings for the IDE) have been released. PowerBASIC Tools LLC still sells new licenses for the 32-bit Windows compilers.

Compilers

[edit]

PowerBASIC programs are self-contained and use no runtime file to execute. In all versions of the compiler, the applications compile without external libraries, though it can use such libraries if needed. PBDOS creates 16-bit DOS MZ executable files, while PBWIN and PBCC create 32-bit Portable Executable (PE) files.

Turbo Basic

[edit]

Borland's Turbo Basic contains extensions to classic BASIC (without breaking compatibility), such as a drawing API and mouse access.

Unlike most BASIC implementations of its time, Turbo Basic was a full compiler which generated native code for MS-DOS. Other implementations were either interpreters, or relied heavily on a runtime library. The integrated development environment could run a BASIC program internally for traditional BASIC debugging (see sample below), or generate an MS-DOS stand-alone executable file that could be run on other systems without the Turbo Basic product or runtime libraries.

Code example

[edit]

The following program is an example of the ALGOL-like BASIC dialect that Turbo Basic supported. Unlike traditional BASIC,[citation needed] which used line numbers and had limited control structures and no support for ALGOL-like subroutines, modern BASIC dialects starting at this period were extended to make the language compatible with modern structured programming style by making line numbers optional and adding the control structures and subroutine definitions needed for structured programming.

INPUT "What is your name?: ", n$
PRINT "Hello "; n$
DO
  s$ = ""
  INPUT "How many stars do you want to print"; s
  FOR i = 1 TO s
    s$ = s$ + "*"
  NEXT i
  PRINT s$
  DO
    INPUT "Do you want to print more stars"; q$
  LOOP WHILE LEN(q$) = 0
  q$ = LCASE$(LEFT$(q$, 1))
LOOP WHILE q$ = "y"
PRINT "Goodbye "; n$

(s$ is a string and s is a single-precision floating-point (number). They are separate variables.)

Like the other Borland products of this era, the code executes within the integrated development environment.

PowerBASIC for DOS (PBDos)

[edit]

PBDOS includes an integrated development environment (IDE) and supports DOS 3.30 and all later versions.[9]

PowerBASIC Console Compiler (PBCC)

[edit]

PBCC is a 32-bit compiler for the Windows 9x series and Windows NT series of operating systems, including Windows XP, Windows Server 2008, Windows Vista, and Windows 7. PBCC applications can use dynamic-link libraries (DLLs). The compiler comes with an IDE including an editor and stepping debugger.

No knowledge of Windows programming is required to create character mode or graphical applications with this compiler. PBCC-compiled executables can also be used as Common Gateway Interface executables (for web servers).

PBCC creates only executables, not DLLs. (PBWin — see below — can create both.)

PowerBASIC Compiler for Windows (PBWin)

[edit]

PBWin is a 32-bit compiler compatible with the Windows 9x series and the Windows NT series of operating systems, including Windows XP, Windows Server 2008, Windows Vista, Windows 7, Windows 8 (8.1), Windows 10 and Windows 11[10] PBWin can create dynamic-link libraries. PBWin applications can read dynamic-link libraries]. PBWin comes with a compiler, IDE with editor, and stepping debugger.

Dynamic Dialog Tools (DDT)

[edit]

You can create an application's graphical user interface using the Windows API, or by using the built-in DDT language extensions. The group of BASIC statements which wrap Windows API functions, particularly in the creation and handling of dialog boxes and child controls, is collectively known as Dynamic Dialog Tools. Using DDT requires less coding than to create a similar program using the Windows API. Using the DDT and the Windows API (known as SDK style as in Microsoft Windows SDK) are not mutually exclusive.

Trial versions of compilers

[edit]

PowerBASIC renamed PBWin v9.07 and PB/CC v5.07 as "Classic PBWin" and "Classic PB/CC", respectively, and on November 1, 2016, offered them for a short time through their online store as free, no-nag, trial versions along with PBForms v1.0 (PowerBASIC Forms).[11]

Tools

[edit]

PB Forms

[edit]

PowerBASIC Forms, available for purchase separately, is a graphical user interface design tool add-on for PBWin. It automatically produces source code using the DDT language extension that creates forms using the Windows graphical user interface.

COM Browser

[edit]

The PowerBASIC COM Browser, which comes with PBWin, is an application that exposes the interfaces, methods, and properties of COM objects, as described by type-library files. The PowerBASIC COM Browser exports an interface structure of a COM object for early-binding purposes in PowerBASIC code, and gives syntax reference and context-help on the interface members exposed by a COM object.[12]

Programming language

[edit]

Characteristics

[edit]

PowerBASIC is a native-code BASIC compiler whose reported merits are simplicity of use and speed compared to other languages.[13][14] Although the compiled code is fast enough for most purposes, the compilers also support inline assembler which can be used for hand optimization of critical routines. The Windows compilers (PBWin & PBCC) support almost all of the x86 instruction set, including FPU, SIMD, and MMX, the main exceptions being a few which are useful mostly to systems programmers. One can insert any unsupported instructions by inserting their opcodes with the "db", "dw", and "dd" statements. Lines of assembler code can be freely interspersed with lines of BASIC code, although one must always consider the potential interactions between the two types of code.

Hello world

[edit]

Hello world is used to give a very small example of the syntax used by a programming language and is often the smallest possible program for any given programming language.

Here is an example of a PBCC hello world program. By default PBCC creates a console window at runtime for displaying output. The use of Waitkey$ in this example prevents the console window from automatically closing until the operator sees the displayed text.

Function PBMain

  Print "Hello, World!"
  Waitkey$

End Function

Here is the PBWin version, which displays a Windows "dialog" message box.

Function PBMain

  MsgBox "Hello, World!"

End Function

Structured control statements

[edit]

These structured control statements eliminate many instances that would require the use of GOTO and labels:

  • iterate - skips ahead to the next iteration of the loop containing it (iterate do, iterate loop, iterate for), like the continue statement in most languages
  • exit - sends execution to just after the loop (exit for, exit do, exit loop), conditional (exit if, exit select), or block (exit function, exit sub) containing it, like the break statement in most languages

Object-oriented programming

[edit]

PBWin and PBCC support object-oriented programming in the form of COM classes, however the compilers do not force you to use OOP, it is merely an option. In-process and out-of-process COM Servers can also be built using these compilers.

Graphics

[edit]

Both the Console Compiler and Windows Compiler can create graphic windows. The GRAPHICs statements are higher-level than Windows' Graphics Device Interface (GDI) library functions.[15][16]

Elements of the GRAPHIC statements
[edit]

GRAPHIC WINDOWS are dedicated dialogs each containing a single control which fills the dialog's client area. GRAPHIC controls are child windows which support the same GRAPHIC drawing functionality as GRAPHIC windows. GRAPHIC BITMAPS are also defined, again supporting the GRAPHIC drawing functionality, but as purely memory objects, like Windows bitmaps or DIB sections. Keyboard and mouse handling statements are included among the GRAPHIC statements. Character output to a GRAPHIC target uses fonts specified via the FONT NEW statement.

Creating a GRAPHIC WINDOW application
[edit]

A GRAPHIC WINDOW is the equivalent of a Windows dialog box containing a static control on which drawing operations can be done. A single BASIC statement will create a GRAPHIC WINDOW and specify its size, position and title. It is not essential to specify a WNDPROC for the GRAPHIC WINDOW. A short source code example for a complete GRAPHIC WINDOW application follows:

#Compile Exe ' using either PBCC6 or PBWIN10 compiler
#Dim All

Function PBMain
    Local GW As Dword
    ' start a GRAPHIC WINDOW
    Graphic Window New "graphic window", 100, 100, 200, 200 to GW
    ' show a coloured disc
    Graphic Ellipse (10, 10)-(190, 190), %rgb_Red, %rgb_SeaGreen, 0
    ' wait for a keypress
    Graphic Waitkey$
End Function
Comparison of PB GRAPHIC statements with the GDI API
[edit]

Using PB GRAPHIC statements, a GRAPHIC (WINDOW, BITMAP, or control) is first selected as the current GRAPHIC target, then operations are done on it without requiring it to be identified again. Contrast this with the GDI API approach, where the Device Context handle is required for every drawing operation.

It is not necessary when using the PB GRAPHIC statements to define a brush or pen as a separate entity, nor is it necessary to redraw the GRAPHIC target (when in view) in response to Windows messages such as WM_PAINT and WM_ERASEBKGND. GRAPHIC targets are persistent.

When GRAPHIC targets are attached, a REDRAW option can be specified which buffers the results of drawing operations until they are specifically requested. Using this technique reduces flicker in a similar way to the technique of drawing on memory DCs [17] when using the GDI API.

Pixel operations are possible using the GRAPHIC GET|SET PIXEL statements, in a manner similar to GetPixel/SetPixel of the GDI API. GRAPHIC GET BITS allows the entire bitmap to be loaded into a dynamic string. This can be manipulated either as a string or by mapping an array onto it. It can be placed back into the GRAPHIC target by GRAPHIC SET BITS.

Complementarity of GRAPHIC statements and the Windows GDI API
[edit]

The GRAPHIC statements contain all the commonly used GDI API functions, but if you need one that is not included it is possible to obtain the hDC of any GRAPHIC target and thereby use GDI API functions on it.

User community

[edit]

PowerBASIC provides an online forum for users to ask questions and share knowledge.[18] On 8 July 2012 the forum had 5,623 members (only a fraction of them still active) and contained 50,093 threads comprising 408,642 posts since August 26, 1998. The Source Code section alone contained 3,768 threads.[19]

In early 2024 the main PowerBASIC website was switched to "under construction". This was heavily discussed in PB forums. The rights owner wrote that the website will not come back.[20]

References

[edit]
  1. ^ Release of PowerBASIC 10.0 Compiler for Windows
  2. ^ "PowerBASIC makes smooth move; Tech company finds region's affordability attractive". Sarasota Herald Tribune. 2025-08-07. Retrieved 2025-08-07.
  3. ^ Tooley, Michael H. (2005). PC Based Instrumentation and Control. Elsevier. p. 214. ISBN 0-7506-4716-7.
  4. ^ "An Introduction to PowerBASIC". Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  5. ^ Zale, Vivian (8 March 2014). "PowerBASIC Update". PowerBASIC Peer Support Community.
  6. ^ Eccles, John. "PowerBASIC Plans". PowerBASIC Forums. PowerBASIC, Inc. Archived from the original on 24 September 2015. Retrieved 5 July 2015.
  7. ^ Drake, Adam (January 31, 2017). "PowerBASIC Has a New Home". PowerBASIC Peer Support Community. Archived from the original on 2025-08-07.
  8. ^ Zale, Vivian (February 12, 2017). "Thank You". PowerBASIC Peer Support Community. Archived from the original on 2025-08-07.
  9. ^ "PowerBASIC 3.5 for DOS". PowerBASIC. Archived from the original on 2025-08-07.
  10. ^ "PowerBASIC Compiler for Windows". PowerBASIC. Archived from the original on 2025-08-07.
  11. ^ PowerBASIC 9 for Windows and PowerBASIC Console Compiler 5: $99 and $89 on 2025-08-07; $0 and $0 on 2025-08-07; $0 and $0 on 2025-08-07; not offered on 2025-08-07.
  12. ^ "Com Browser on PowerBASIC's website".
  13. ^ New geometries for new materials, Eric A. Lord, Alan Lindsay Mackay, Srinivasa Ranganathan, Cambridge University Press, 2006, ISBN 0-521-86104-7 ("a very simple user interface ... speed and power of the underlying C++ ... runs extremely fast") Google Books
  14. ^ Chaos and Time-series Analysis, Julien C. Sprott, Oxford University Press, 2003, ISBN 0-19-850840-9 ("easy to learn, powerful, and as fast as any C compiler I have encountered") Google Books
  15. ^ "PowerBASIC Console Compiler". PowerBASIC Peer Support Community.
  16. ^ "PowerBASIC for Windows". PowerBASIC Peer Support Community.
  17. ^ Petzold, Charles (1998). Programming Windows Fifth Edition, Microsoft Press, ISBN 978-1-57231-995-0
  18. ^ "PowerBASIC Peer Support Community help".
  19. ^ PowerBASIC's vBulletin forum software statistics
  20. ^ [1]
[edit]

Third-party support

[edit]
千金是什么生肖 金银花不能和什么一起吃 肠易激综合征是什么原因造成的 什么拉车连蹦带跳 川芎有什么功效
澳门什么时候回归的 11号来月经什么时候是排卵期 记吃不记打的下一句是什么 dvt是什么意思 甘之如饴什么意思
生殖器疱疹用什么药最好 事宜愿为是什么意思 牙龈翻瓣术是什么意思 墨菲定律讲的是什么 笑得什么
4月出生是什么星座 折叠胆囊是什么意思 四肢麻木是什么原因引起的 下巴起痘痘是什么原因 缺锌吃什么食物和水果
任正非用的什么手机hcv9jop6ns0r.cn 日照香炉生紫烟的香炉是什么意思hcv9jop7ns5r.cn 铁扇公主是什么生肖hcv9jop1ns3r.cn 圣经是什么时候写的520myf.com 正常的心电图是什么样的图形hcv8jop2ns8r.cn
6月份有什么节假日hcv7jop5ns3r.cn 点茶是什么意思hcv7jop9ns6r.cn 历法是什么意思hcv8jop8ns0r.cn 睡眠不好去医院挂什么科hcv7jop6ns2r.cn 尿分叉吃什么药好得快hcv8jop9ns6r.cn
潜血阴性是什么意思hcv9jop1ns1r.cn 证候是什么意思hcv7jop6ns3r.cn 幼儿园什么时候开学hcv8jop2ns5r.cn 羊水指数是什么意思ff14chat.com 红豆吃多了有什么坏处travellingsim.com
躁动是什么意思hcv8jop6ns6r.cn 上眼皮浮肿是什么原因hcv9jop2ns4r.cn 肠胃痉挛什么症状hcv8jop4ns4r.cn 产后第一天吃什么最好hcv8jop9ns1r.cn 面瘫挂什么科室hcv8jop5ns8r.cn
百度