Hi,
For one of the MFC dll application(which creates acrobat plug-in) i want to add a reference to a C# dll. I created the MFC dll application(with /clr option to refer managed C# object), it complied and executed fine before adding C# class reference, once i added that C# dll and tried to get a object reference instance(using gcnew), it is not getting it but application raising an exception saying "File not found" error for that C# dll.
Can't we add reference to C# dll in an MFC dll application? if we can how to do, what's mistake i am doing?
Any help would be highly appreciated.
palaksha
Loading
Hurkadli palakshaPosted Sep 24, 2010, 1:05 AM
Yes, i tried putting my C# dll in main project folder and pointing the reference to that, but no use.
i added your code and compiled it before that i added
using namespace System;
using namespace System::Windows;
using namespace System::String;
and in Add New reference tab i added "System", "WindowsBase", "UIAutomationTypes" References,
But after compiling am getting
rror C2867: 'System::String' : is not a namespace error,
what's the wrong with my settings,
Please help me
Mike GoldPosted Sep 23, 2010, 2:49 PM
e.g.
using namespace System::String;
String^ myString = gcnew("Hello World");
You should be able to do this without adding the reference. Make sure this works. (I may have forgotten another line
-Mike