C++/CLI Beginner Questions
-
ref class A
{
...
};int main()
{
A objA;return 0;
}I thought we were not supposed to be able to use ref classes that way...only through tracking handles and tracking references. The above code compiles and runs. Could someone please explain it to me?
-
ref class A
{
...
};int main()
{
A objA;return 0;
}I thought we were not supposed to be able to use ref classes that way...only through tracking handles and tracking references. The above code compiles and runs. Could someone please explain it to me?
-
TripShock wrote:
Could someone please explain it to me?
They implemented stack semantics[^] in C++/CLI
-
Welcome to CodeProject :beer:
TripShock wrote:
Why is it that I can't do this:
Because you need to do this:
String^ yo;
That said, if you had spent like 10 minutes reading any of the tons of beginner material here on this site and all over the internet related to the CLI subject, you would already know that. 10 minutes rather than the 3 hours you have waited for an answer from an internet forum. 10 minutes or 3 hours, you decide.