Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. MFC DLL with automation in VC++ .NET 2003

MFC DLL with automation in VC++ .NET 2003

Scheduled Pinned Locked Moved COM
helpc++csharptestingtools
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mila025
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups