C++/CLI syntax for: declaring property in .h, implementing it in .cpp ?
This is driving me up the wall. How do you create a property, using C++/CLI syntax, so that its declaration appears in the .h file, but its implementation can appear in the corresponding .cpp file? All the examples I've seen on the web define and declare the property in the same place. Thanks.
[301 byte] By [
PChandra] at [2007-12-16]
Finally figured it out. In the header file:
virtual property bool Foo { bool get(); }
In the .cpp file:
bool ClassName::Foo::get()
{
return true;
}