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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.