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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with CoCreateInstance

Problem with CoCreateInstance

Scheduled Pinned Locked Moved C / C++ / MFC
c++comdesigndebugginghelp
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.
  • R Offline
    R Offline
    Raj Prathap
    wrote on last edited by
    #1

    Hi, I'm facing a problem with the COM Dll that is also written by us. I have a COM Dll, which uses another two dlls. And for UI I have another application which uses the COM Dll(The application is a Win32 application without MFC Support). When the COM Dll is built in the release mode, CoCreateInstance method causes the message box "User breakpoint called" to be popped up. In fact the CoCreateInstance does so many other things like initializing the communication, initializing the drive..etc. When the Dll is built in the release mode, it causes no problem. The problem I've identified is in the statement where delete was being called. The interesting fact is that the problem does not araises with the applications with MFC Support. My one perticular application is without MFC Support. The COM Dll is built with Static MFC support. Another thing is that, to make tha applicaion up the COM Dll should be built with the Shared MFC Dll support. But when I make COM Dll with shared MFC, other applications(those were built with MFC support earlier) does not work. I'm confused how the MFC support for the COM Dll affect the behaviur of the applications. Please provede me with a solution. Thanks and regards, Raja Pratap Reddy

    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