MFC DLL with automation in VC++ .NET 2003
-
Hi, hm... how to start ... I work with MSVS VC++ .NET 2003 (Windows XP SP2) I created simple MFC DLL with automation (should work in-proccess) and added a interface to it (based on CCmdTarget class). Everything compilation and registration succeeds. In my application which will be using DLL, when I do: #import "path_to_DLL_file" use namespace LibTest; LibTest::ITrackerPtr ptrTrack; HRESULT hr = CoInitialize( NULL ); hr = ptrTrack.CreateInstance( "LibTest.Tracker" ); CreateInstance returns REGDB_E_CLASSNOTREG error (CoCreateInstance returns E_OUTOFMEMORY). When I create similar project in MSVS VC++ 6.0 everything works fine and problem with initiation DLL doesn't exist. Anyone knows how to resolve this problem ? Maybe I forgot about something ? Please help ! Mila