Hi All,
1. I am new to Managed C++, In my program, based on C++, In case I need to make a transition to Managed C++ and use the equivalent constructs.
Eg.,
System::String ^ ptr = gcnew ("C:\Dir1\abc.txt");
// SomeClass ObjSomeClass should consume the <<ptr>> in MC++
and input the above ptr in the Class someClass
Could you let me know the approach by using the Managed C++,
Basically the above path should be available to the someclass in managed C++,
2. Are there any prerequisites other than including the following in Unmanaged Code to obtain autocompletion/intellisense to able to invoke Managed Code(C++/CLI)
#include "Stdafx.h"
.....
using <mscorlib.dll>
using System;
using System::EnterpriseServices::Internal;
....
Adding References using the project properties for System::EnterpriseServices::Internal and also setting the .NET Framework to 3.5 and above
also, Compiler Switch Settings to using /CLR.
despite of the above inclusions, still I am unable to invoke Managed Code(C++/CLI) Please let me know the process to resolve the same.
any help in resolving the above would be much appreciable.
Regards,
VishalK_90