नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
operator 'operator-name' cannot be applied to an instance of a ref class
Remarks
use the unary operator-name operator to convert an instance of a ref class to a handle type
A CLR type requires CLR operators, not native (or standard) operators. For more information, see Tracking Reference Operator.
Example
The following example generates C3072.
// C3072.cpp
// compile with: /clr
ref class R {};
int main() {
R r1;
R^ r2 = &r1; // C3072
R^ r3 = %r1; // OK
}