<s>
PowerBASIC	B-Language
,	O
formerly	O
Turbo	B-Language
Basic	I-Language
,	O
is	O
the	O
brand	O
of	O
several	O
commercial	O
compilers	B-Language
by	O
PowerBASIC	B-Language
Inc	O
.	O
that	O
compile	B-Language
a	O
dialect	O
of	O
the	O
BASIC	O
programming	O
language	O
.	O
</s>
<s>
There	O
are	O
both	O
MS-DOS	O
and	O
Windows	O
versions	O
,	O
and	O
two	O
kinds	O
of	O
the	O
latter	O
:	O
Console	O
and	O
Windows	O
.	O
</s>
<s>
The	O
MS-DOS	O
version	O
has	O
a	O
syntax	O
similar	O
to	O
that	O
of	O
QBasic	B-Language
and	O
QuickBASIC	B-Language
.	O
</s>
<s>
The	O
Windows	O
versions	O
use	O
a	O
BASIC	O
syntax	O
expanded	O
to	O
include	O
many	O
Windows	O
functions	O
,	O
and	O
the	O
statements	O
can	O
be	O
combined	O
with	O
calls	O
to	O
the	O
Windows	B-Library
API	I-Library
.	O
</s>
<s>
The	O
first	O
version	O
of	O
the	O
DOS	B-Device
compiler	B-Language
was	O
published	O
as	O
BASIC/Z	O
,	O
the	O
very	O
first	O
interactive	O
compiler	B-Language
for	O
CP/M	O
and	O
MDOS	O
.	O
</s>
<s>
Later	O
it	O
was	O
extended	O
to	O
MS-DOS/PCDOS	O
and	O
in	O
1987	O
Borland	O
distributed	O
it	O
as	O
Turbo	B-Language
Basic	I-Language
.	O
</s>
<s>
Turbo	B-Language
Basic	I-Language
was	O
originally	O
created	O
by	O
Robert	O
"	O
Bob	O
"	O
Zale	O
(	O
1945	O
–	O
2012	O
)	O
and	O
bought	O
from	O
him	O
by	O
Borland	O
.	O
</s>
<s>
When	O
Borland	O
decided	O
to	O
stop	O
publishing	O
it	O
(	O
1989	O
)	O
,	O
Zale	O
bought	O
it	O
back	O
from	O
them	O
,	O
renamed	O
it	O
PowerBASIC	B-Language
and	O
set	O
up	O
PowerBASIC	B-Language
Inc	O
.	O
to	O
continue	O
support	O
and	O
development	O
of	O
it	O
;	O
it	O
was	O
later	O
called	O
PBDOS	O
.	O
</s>
<s>
PowerBASIC	B-Language
went	O
on	O
to	O
develop	O
BASIC	O
compilers	B-Language
for	O
Windows	O
,	O
first	O
PBWIN	O
—	O
their	O
flagship	O
product	O
—	O
and	O
then	O
PBCC	O
,	O
described	O
below	O
.	O
</s>
<s>
On	O
November	O
6	O
,	O
2012	O
,	O
Robert	O
Zale	O
,	O
the	O
creator	O
of	O
PowerBASIC	B-Language
,	O
died	O
.	O
</s>
<s>
His	O
wife	O
,	O
Vivian	O
Zale	O
,	O
posted	O
on	O
8	O
March	O
2014	O
to	O
the	O
PowerBASIC	B-Language
forums	O
a	O
statement	O
that	O
the	O
company	O
would	O
continue	O
in	O
operation	O
.	O
</s>
<s>
On	O
May	O
10	O
,	O
2015	O
,	O
Vivian	O
Zale	O
announced	O
that	O
work	O
was	O
continuing	O
on	O
new	O
versions	O
of	O
PowerBASIC	B-Language
compilers	B-Language
.	O
</s>
<s>
On	O
January	O
31	O
,	O
2017	O
,	O
Adam	O
Drake	O
announced	O
Drake	O
Software	O
had	O
acquired	O
the	O
PowerBASIC	B-Language
source	O
code	O
from	O
PowerBASIC	B-Language
,	O
Inc.	O
,	O
with	O
the	O
intention	O
of	O
updating	O
and	O
improving	O
the	O
functionality	O
of	O
the	O
product	O
.	O
</s>
<s>
When	O
Bob	O
Zale	O
died	O
,	O
PBWin11	O
and	O
PBCC7	O
were	O
in	O
beta	O
testing	O
,	O
and	O
64-bit	O
compilers	B-Language
and	O
PB/Pro	O
(	O
PBWin	O
and	O
CC	O
in	O
one	O
compiler	B-Language
)	O
were	O
in	O
the	O
alpha	O
stages	O
.	O
</s>
<s>
However	O
,	O
development	O
of	O
PowerBASIC	B-Language
products	O
has	O
stopped	O
.	O
</s>
<s>
No	O
corrections	O
(	O
such	O
as	O
adding	O
the	O
correct	O
DPI	O
settings	O
for	O
the	O
IDE	B-Application
)	O
have	O
been	O
released	O
.	O
</s>
<s>
PowerBASIC	B-Language
Tools	O
LLC	O
still	O
sells	O
new	O
licenses	O
for	O
the	O
32-bit	O
Windows	O
compilers	B-Language
.	O
</s>
<s>
PowerBASIC	B-Language
programs	O
are	O
self-contained	O
and	O
use	O
no	O
runtime	O
file	O
to	O
execute	O
.	O
</s>
<s>
In	O
all	O
versions	O
of	O
the	O
compiler	B-Language
,	O
the	O
applications	O
compile	B-Language
without	O
external	O
libraries	O
,	O
though	O
it	O
can	O
use	O
such	O
libraries	O
if	O
needed	O
.	O
</s>
<s>
PBDOS	O
creates	O
16-bit	O
DOS	B-Device
MZ	O
executable	O
files	O
,	O
while	O
PBWIN	O
and	O
PBCC	O
create	O
32-bit	O
Portable	O
Executable	O
(	O
PE	O
)	O
files	O
.	O
</s>
<s>
Borland	O
's	O
Turbo	B-Language
Basic	I-Language
contains	O
extensions	O
to	O
classic	O
BASIC	O
(	O
without	O
breaking	O
compatibility	O
)	O
,	O
such	O
as	O
a	O
drawing	O
API	O
and	O
mouse	O
access	O
.	O
</s>
<s>
Unlike	O
most	O
BASIC	O
implementations	O
of	O
its	O
time	O
,	O
Turbo	B-Language
Basic	I-Language
was	O
a	O
full	O
compiler	B-Language
which	O
generated	O
native	O
code	O
for	O
MS-DOS	O
.	O
</s>
<s>
Other	O
implementations	O
were	O
either	O
interpreters	B-Language
,	O
or	O
relied	O
heavily	O
on	O
a	O
runtime	O
library	O
.	O
</s>
<s>
The	O
integrated	B-Application
development	I-Application
environment	I-Application
could	O
run	O
a	O
BASIC	O
program	O
internally	O
for	O
traditional	O
BASIC	O
debugging	O
(	O
see	O
sample	O
below	O
)	O
,	O
or	O
generate	O
an	O
MS-DOS	O
stand-alone	O
executable	O
file	O
that	O
could	O
be	O
run	O
on	O
other	O
systems	O
without	O
the	O
Turbo	B-Language
Basic	I-Language
product	O
or	O
runtime	O
libraries	O
.	O
</s>
<s>
The	O
following	O
program	O
is	O
an	O
example	O
of	O
the	O
ALGOL-like	B-Language
BASIC	O
dialect	O
that	O
Turbo	B-Language
Basic	I-Language
supported	O
.	O
</s>
<s>
Unlike	O
traditional	O
BASIC	O
,	O
which	O
used	O
line	O
numbers	O
and	O
had	O
limited	O
control	O
structures	O
and	O
no	O
support	O
for	O
ALGOL-like	B-Language
subroutines	O
,	O
modern	O
BASIC	O
dialects	O
starting	O
at	O
this	O
period	O
were	O
extended	O
to	O
make	O
the	O
language	O
compatible	O
with	O
modern	O
structured	B-Language
programming	I-Language
style	O
by	O
making	O
line	O
numbers	O
optional	O
and	O
adding	O
the	O
control	O
structures	O
and	O
subroutine	O
definitions	O
needed	O
for	O
structured	B-Language
programming	I-Language
.	O
</s>
<s>
Like	O
the	O
other	O
Borland	O
products	O
of	O
this	O
era	O
,	O
the	O
code	O
executes	O
within	O
the	O
integrated	B-Application
development	I-Application
environment	I-Application
.	O
</s>
<s>
PBDOS	O
includes	O
an	O
integrated	B-Application
development	I-Application
environment	I-Application
(	O
IDE	B-Application
)	O
and	O
supports	O
DOS	B-Device
3.30	O
and	O
all	O
later	O
versions	O
.	O
</s>
<s>
PBCC	O
is	O
a	O
32-bit	O
compiler	B-Language
for	O
the	O
Windows	O
9x	O
series	O
and	O
Windows	B-Device
NT	I-Device
series	I-Device
of	O
operating	O
systems	O
,	O
including	O
Windows	B-Application
XP	I-Application
,	O
Windows	B-Device
Server	I-Device
2008	I-Device
,	O
Windows	B-Application
Vista	I-Application
,	O
and	O
Windows	B-Device
7	I-Device
.	O
</s>
<s>
The	O
compiler	B-Language
comes	O
with	O
an	O
IDE	B-Application
including	O
an	O
editor	O
and	O
stepping	O
debugger	B-Application
.	O
</s>
<s>
No	O
knowledge	O
of	O
Windows	O
programming	O
is	O
required	O
to	O
create	O
character	O
mode	O
or	O
graphical	O
applications	O
with	O
this	O
compiler	B-Language
.	O
</s>
<s>
PBCC-compiled	O
executables	O
can	O
also	O
be	O
used	O
as	O
Common	B-Language
Gateway	I-Language
Interface	I-Language
executables	O
(	O
for	O
web	O
servers	O
)	O
.	O
</s>
<s>
PBWin	O
is	O
a	O
32-bit	O
compiler	B-Language
compatible	O
with	O
the	O
Windows	O
9x	O
series	O
and	O
the	O
Windows	B-Device
NT	I-Device
series	I-Device
of	O
operating	O
systems	O
,	O
including	O
Windows	B-Application
XP	I-Application
,	O
Windows	B-Device
Server	I-Device
2008	I-Device
,	O
Windows	B-Application
Vista	I-Application
,	O
Windows	B-Device
7	I-Device
,	O
Windows	B-Application
8	I-Application
(	O
8.1	B-Device
)	O
,	O
and	O
Windows	B-Operating_System
10	I-Operating_System
.	O
</s>
<s>
PBWin	O
comes	O
with	O
a	O
compiler	B-Language
,	O
IDE	B-Application
with	O
editor	O
,	O
and	O
stepping	O
debugger	B-Application
.	O
</s>
<s>
You	O
can	O
create	O
an	O
application	O
's	O
graphical	B-Application
user	I-Application
interface	I-Application
using	O
the	O
Windows	B-Library
API	I-Library
,	O
or	O
by	O
using	O
the	O
built-in	O
DDT	O
language	O
extensions	O
.	O
</s>
<s>
The	O
group	O
of	O
BASIC	O
statements	O
which	O
wrap	O
Windows	B-Library
API	I-Library
functions	O
,	O
particularly	O
in	O
the	O
creation	O
and	O
handling	O
of	O
dialog	O
boxes	O
and	O
child	O
controls	O
,	O
is	O
collectively	O
known	O
as	O
Dynamic	O
Dialog	O
Tools	O
.	O
</s>
<s>
Using	O
DDT	O
requires	O
less	O
coding	O
than	O
to	O
create	O
a	O
similar	O
program	O
using	O
the	O
Windows	B-Library
API	I-Library
.	O
</s>
<s>
Using	O
the	O
DDT	O
and	O
the	O
Windows	B-Library
API	I-Library
(	O
known	O
as	O
SDK	O
style	O
as	O
in	O
Microsoft	B-Application
Windows	I-Application
SDK	I-Application
)	O
are	O
not	O
mutually	O
exclusive	O
.	O
</s>
<s>
PowerBASIC	B-Language
renamed	O
PBWin	O
v9.07	O
and	O
PB/CC	O
v5.07	O
as	O
"	O
Classic	O
PBWin	O
"	O
and	O
"	O
Classic	O
PB/CC	O
"	O
,	O
respectively	O
,	O
and	O
on	O
November	O
1	O
,	O
2016	O
,	O
offered	O
them	O
for	O
a	O
short	O
time	O
through	O
their	O
online	O
store	O
as	O
free	O
,	O
no-nag	O
,	O
trial	O
versions	O
along	O
with	O
PBForms	O
v1.0	O
(	O
PowerBASIC	B-Language
Forms	O
)	O
.	O
</s>
<s>
PowerBASIC	B-Language
Forms	O
,	O
available	O
for	O
purchase	O
separately	O
,	O
is	O
a	O
graphical	B-Application
user	I-Application
interface	I-Application
design	O
tool	O
add-on	O
for	O
PBWin	O
.	O
</s>
<s>
It	O
automatically	O
produces	O
source	O
code	O
using	O
the	O
DDT	O
language	O
extension	O
that	O
creates	O
forms	O
using	O
the	O
Windows	O
graphical	B-Application
user	I-Application
interface	I-Application
.	O
</s>
<s>
The	O
PowerBASIC	B-Language
COM	B-Application
Browser	O
,	O
which	O
comes	O
with	O
PBWin	O
,	O
is	O
an	O
application	O
that	O
exposes	O
the	O
interfaces	O
,	O
methods	O
,	O
and	O
properties	O
of	O
COM	B-Application
objects	I-Application
,	O
as	O
described	O
by	O
type-library	O
files	O
.	O
</s>
<s>
The	O
PowerBASIC	B-Language
COM	B-Application
Browser	O
exports	O
an	O
interface	O
structure	O
of	O
a	O
COM	B-Application
object	I-Application
for	O
early-binding	O
purposes	O
in	O
PowerBASIC	B-Language
code	O
,	O
and	O
gives	O
syntax	O
reference	O
and	O
context-help	O
on	O
the	O
interface	O
members	O
exposed	O
by	O
a	O
COM	B-Application
object	I-Application
.	O
</s>
<s>
PowerBASIC	B-Language
is	O
a	O
native-code	O
BASIC	O
compiler	B-Language
whose	O
reported	O
merits	O
are	O
simplicity	O
of	O
use	O
and	O
speed	O
compared	O
to	O
other	O
languages	O
.	O
</s>
<s>
Although	O
the	O
compiled	B-Language
code	O
is	O
fast	O
enough	O
for	O
most	O
purposes	O
,	O
the	O
compilers	B-Language
also	O
support	O
inline	O
assembler	B-Language
which	O
can	O
be	O
used	O
for	O
hand	O
optimization	O
of	O
critical	O
routines	O
.	O
</s>
<s>
The	O
Windows	O
compilers	B-Language
(	O
PBWin	O
&	O
PBCC	O
)	O
support	O
almost	O
all	O
of	O
the	O
x86	B-Device
instruction	I-Device
set	I-Device
,	O
including	O
FPU	B-General_Concept
,	O
SIMD	B-General_Concept
,	O
and	O
MMX	B-Architecture
,	O
the	O
main	O
exceptions	O
being	O
a	O
few	O
which	O
are	O
useful	O
mostly	O
to	O
systems	O
programmers	O
.	O
</s>
<s>
Lines	O
of	O
assembler	B-Language
code	I-Language
can	O
be	O
freely	O
interspersed	O
with	O
lines	O
of	O
BASIC	O
code	O
,	O
although	O
one	O
must	O
always	O
consider	O
the	O
potential	O
interactions	O
between	O
the	O
two	O
types	O
of	O
code	O
.	O
</s>
<s>
PBWin	O
and	O
PBCC	O
support	O
object-oriented	B-Language
programming	I-Language
in	O
the	O
form	O
of	O
COM	B-Application
classes	O
,	O
however	O
the	O
compilers	B-Language
do	O
not	O
force	O
you	O
to	O
use	O
OOP	O
,	O
it	O
is	O
merely	O
an	O
option	O
.	O
</s>
<s>
In-process	O
and	O
out-of-process	O
COM	B-Application
Servers	I-Application
can	O
also	O
be	O
built	O
using	O
these	O
compilers	B-Language
.	O
</s>
<s>
Both	O
the	O
Console	O
Compiler	B-Language
and	O
Windows	O
Compiler	B-Language
can	O
create	O
graphic	O
windows	O
.	O
</s>
<s>
The	O
GRAPHICs	O
statements	O
are	O
higher-level	O
than	O
Windows	O
 '	O
Graphics	B-Operating_System
Device	I-Operating_System
Interface	I-Operating_System
(	O
GDI	O
)	O
library	O
functions	O
.	O
</s>
<s>
GRAPHIC	O
BITMAPS	O
are	O
also	O
defined	O
,	O
again	O
supporting	O
the	O
GRAPHIC	O
drawing	O
functionality	O
,	O
but	O
as	O
purely	O
memory	O
objects	O
,	O
like	O
Windows	B-Device
bitmaps	I-Device
or	O
DIB	B-Device
sections	I-Device
.	O
</s>
<s>
The	O
GRAPHIC	O
statements	O
contain	O
all	O
the	O
commonly	O
used	O
GDI	O
API	O
functions	O
,	O
but	O
if	O
you	O
need	O
one	O
that	O
is	O
not	O
included	O
it	O
is	O
possible	O
to	O
obtain	O
the	O
hDC	B-Operating_System
of	O
any	O
GRAPHIC	O
target	O
and	O
thereby	O
use	O
GDI	O
API	O
functions	O
on	O
it	O
.	O
</s>
<s>
PowerBASIC	B-Language
provides	O
an	O
online	O
forum	O
for	O
users	O
to	O
ask	O
questions	O
and	O
share	O
knowledge	O
.	O
</s>
