Hi, If i have to use managed code with unmanaged code. What are the possible risks?
Thanks in advance.
cliext::vector<int> ^vec = gcnew vector<int>(3);
If you use Warning Level 4 and "all warnings as errors", you will reduce the risk significantly. Avoid direct casting between managed and unmanaged types.