このインターフェイスが 1 つのバイナリで定義されているとします。
struct ISomething
{
virtual void __stdcall DoSomething() = 0;
};
別のバイナリで定義されたこの関数シグネチャは安全ですか?
bool __stdcall RunSomething(const ISomething &something);
または、そうでなければなりません
bool __stdcall RunSomething(const ISomething *something);
( Visual Studio 以外のコンパイラでは何もない__stdcall
と仮定します。)#define