How I can define this class correctly:
public ref class WICBMP sealed
{
void Load(IWICBitmapSource ^wicBitmapSource);
};
How I can define this class correctly:
public ref class WICBMP sealed
{
void Load(IWICBitmapSource ^wicBitmapSource);
};
This is not possible. Only Windows Runtime types may be used when declaring members of a Windows Runtime interface (in this specific case, the compiler will need to generate an interface that declares your
Load
member function). You can't even do this if you try to define the interface in IDL.A runtime class can implement COM interfaces that are not Windows Runtime interfaces, though. For example, see
IBufferByteAccess
(a COM interface), which allIBuffer
(a Windows Runtime interface) implementations must implement.