[fpc-pascal] Instances of interfaces ?
    Adriaan van Os 
    fpc at microbizz.nl
       
    Fri Oct 10 11:22:56 CEST 2014
    
    
  
Section 7.1 Definition in Chapter 7 Interfaces of the FreePascal Language Reference says
	"Instances of interfaces cannot be created directly: instead, an instance of a class implementing 
the interface must be created."
However, I assume that FreePascal classes (inheriting from interfaces) are (unlike C++ classes) not 
binary compatible (on Win32) with interfaces ? In other words, when I need to pass an instance of 
an interface to Win32 COM, I have to call CoCreateInstance ?
Regards,
Adriaan van Os
    
    
More information about the fpc-pascal
mailing list