Author Topic: virtual methods?  (Read 2491 times)

0 Members and 1 Guest are viewing this topic.

pber

  • Guest
virtual methods?
« on: March 25, 2015, 03:37:31 AM »
hi Charles,
virtual is understood in methods, but should it work too?
I mean as in cpp?

(...if not i can bet it will do soon,
since i see curly braces here and there in your examples...)

Charles Pegge

  • Guest
Re: virtual methods?
« Reply #1 on: March 25, 2015, 04:16:43 AM »
Hi Paolo,

Yes, Virtual methods are operational. But I have only used them to access the SAPI text-to-speech voice so far. This uses COM, which is a bit more specialised than generic cpp.

I you know of a small cpp-compiled class library, in DLL form, we can try it out. According to what I have read, Virtual methods are the only ones guaranteed to work between different cpp compilers.


pber

  • Guest
Re: virtual methods?
« Reply #2 on: March 25, 2015, 05:11:16 AM »
i'll give it a look.

Now i'm trying to do simply without virtual methods.
After all it was the only useful(?) thing i learned from oop.
Maybe i'll find that printing-programming can be funny without virtual methods.