And correct me if I'm wrong, Bob (or Theo or anyone for that matter. . .)
Now, I'm writing this as someone who has never (yet) deliberately done anything with COM objects (not even in VB much less Delphi or C++) and my current PB programming style is something of a hash of the PB I used 20 years ago and my C / C++ / Delphi days. So far, everything I've been doing has been in the console compiler (no need to immediately go and learn windows GUI (PB Style) if I can read in a text file for simple input). So with that for context. . .
While the nature of the various discussions here seems to imply that the next version of PB will include OOP capability, that capability will be primarily directed towards the COM standard, rather than a more "traditional" OOP (such as C++) format.
In my C++ days we would define things like:
Given that I have no (zip, zippo, nada) experience using COM (and I'm betting that there are others here as well) could some kind soul "map across" the code above into what we're talking about?
Because without any actual COM experience I feel that I'm getting lost.
Is an INTERFACE just the publically available functions and variables? Does COM support multiple inheritance, public/private/protected, friend classes, etc?
Signed,
Lost in the Arizona Monsoon Season
Now, I'm writing this as someone who has never (yet) deliberately done anything with COM objects (not even in VB much less Delphi or C++) and my current PB programming style is something of a hash of the PB I used 20 years ago and my C / C++ / Delphi days. So far, everything I've been doing has been in the console compiler (no need to immediately go and learn windows GUI (PB Style) if I can read in a text file for simple input). So with that for context. . .
While the nature of the various discussions here seems to imply that the next version of PB will include OOP capability, that capability will be primarily directed towards the COM standard, rather than a more "traditional" OOP (such as C++) format.
In my C++ days we would define things like:
Code:
Class MyClass : public PubBaseClass, private PrivBaseClass private : int myVar1, myVar2, myVar3 static int mySVar1, mySVar2, mySVar3 int myFunct1 float myFunct2 void myFunct3 public: int var1, var2, var3 int PFunct1 float PFunct2 void PFunct3 protected: int pr_var1, pr_var2, pr_var3 int PR_Funct1 float PR_Funct2 void PR_Funct3
Because without any actual COM experience I feel that I'm getting lost.
Is an INTERFACE just the publically available functions and variables? Does COM support multiple inheritance, public/private/protected, friend classes, etc?
Signed,
Lost in the Arizona Monsoon Season
Comment