Click to See Complete Forum and Search --> : mixing managed and unmanaged C++


Alain68
November 18th, 2005, 07:55 AM
I want to make a progressive migration of a huge C++ MDI application from VS6 to VS 2005 using the /clr option.
It compiles and it works but I have 2 problems:
1) the application runs very slower as usual.
How can I put only a few methods among 50 classes in managed mode? Using '#pragma unmanaged' seems not to be sufficient. Is there any other recommandation to optimize my code?
2) I tried to instanciate a managed class from a method using the predicate 'managed'. It works only if I uncheck the debug exception 'Loaderlock' to avoid breakdown. I read many documentation about this issue but I cannot explain it in my case.
Thanks
Alain