Just wondering how COM implementation uses keyword interface without compile error, for a normal C++ project, if we use keyword interface, there will be compile error.
Expand|Select|Wrap|Line Numbers
- interface IFoo {
- int func() = 0;
- };
--------------------
1>d:\visual studio 2008\projects\test_virtual1\test_virtual1\main2.cp p(1) : error C2146: syntax error : missing ';' before identifier 'IFoo'
1>d:\visual studio 2008\projects\test_virtual1\test_virtual1\main2.cp p(1) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\visual studio 2008\projects\test_virtual1\test_virtual1\main2.cp p(1) : error C2470: 'IFoo' : looks like a function definition, but there is no parameter list; skipping apparent body
--------------------
Any ideas?
thanks in advance,
George