Interface / EndInterface
Posted: Thu Oct 16, 2003 10:56 am
The amount of information about these new keywords in the
help file is extremely sparse and confusing.
First off, what are they for? The help section opens up
with the following:
"Interfaces are used to access Object Oriented modules,
like COM (Component Object Model) or DirectX dynamic
libraries (DLL)."
To begin with - to my knowledge - there is no such thing
as a "DirectX dynamic library" on Windows ... they must
mean "ActiveX", not "DirectX"??
Also, I'm confused - will the new Interface keyword
actually allow you to do all this? Will I be able to
import (or manually port) the OO interface for a COM
object, like say, the Macromedia Flash player, or the
Microsoft Scripting object? ... sounds from the
description like it would, but I don't see how? there
doesn't seem to be any support (nothing documented)
for the visual embedding of such controls in the GUI,
like an "ActiveX Gadget" or something like that?
...
The help goes on with the following:
"Most of the standard Windows interfaces are already
implemented in a resident file which allow a direct
use of these objects"
What objects would those be? Where is this residents
file? Is there any documentation for these objects,
or at least a list of the ported object interfaces so
you can find the documentation for them elsewhere?
...
The help then provides a couple of examples - but
these don't have any implementation code for any of
the declared methods ... how do you implement methods
for declared interfaces?
or are you not supposed to write code for methods?
if not, where does the code come from then? - if it
comes from an external DLL (like an ActiveX control),
how does PB find these objects? where do you provide
the GUID or the .DLL filename of the object??
...
And finally the help ends abruptly with:
"Example 3 : Creating its own object in PureBasic
(see advanced examples)"
I've looked everywhere, and there don't seem to be
any examples? I searched in all files in the PB dir
for "Interface", and nothing turns up ... looks like
the help author just stopped writing here???
...
In short: what are the commands for, and how do you
use them? This information, and at least one working
example, should have been in the help files. Or not?
help file is extremely sparse and confusing.
First off, what are they for? The help section opens up
with the following:
"Interfaces are used to access Object Oriented modules,
like COM (Component Object Model) or DirectX dynamic
libraries (DLL)."
To begin with - to my knowledge - there is no such thing
as a "DirectX dynamic library" on Windows ... they must
mean "ActiveX", not "DirectX"??
Also, I'm confused - will the new Interface keyword
actually allow you to do all this? Will I be able to
import (or manually port) the OO interface for a COM
object, like say, the Macromedia Flash player, or the
Microsoft Scripting object? ... sounds from the
description like it would, but I don't see how? there
doesn't seem to be any support (nothing documented)
for the visual embedding of such controls in the GUI,
like an "ActiveX Gadget" or something like that?
...
The help goes on with the following:
"Most of the standard Windows interfaces are already
implemented in a resident file which allow a direct
use of these objects"
What objects would those be? Where is this residents
file? Is there any documentation for these objects,
or at least a list of the ported object interfaces so
you can find the documentation for them elsewhere?
...
The help then provides a couple of examples - but
these don't have any implementation code for any of
the declared methods ... how do you implement methods
for declared interfaces?
or are you not supposed to write code for methods?
if not, where does the code come from then? - if it
comes from an external DLL (like an ActiveX control),
how does PB find these objects? where do you provide
the GUID or the .DLL filename of the object??
...
And finally the help ends abruptly with:
"Example 3 : Creating its own object in PureBasic
(see advanced examples)"
I've looked everywhere, and there don't seem to be
any examples? I searched in all files in the PB dir
for "Interface", and nothing turns up ... looks like
the help author just stopped writing here???
...
In short: what are the commands for, and how do you
use them? This information, and at least one working
example, should have been in the help files. Or not?