I have a native c++ class, lets say “probe”.
I need to add it to an arrayList.
Add method of ArrayList is needed an Object^.
So how can I convert it?
I have a native c++ class, lets say probe. I need to add it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t use
ArrayList.Don’t use
ArrayListfor managed objects, prefer one of the generic collections instead, such asList<T>.Don’t use
ArrayListto hold native objects, instead use an STL container, such asstd::vector.The only reason
ArrayListeven exists is for backward compatibility with code written in .NET 1.x.