Thread: exe work but dll does not work?

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    exe work but dll does not work?

    Hello everyone,


    I have written two simple programs (source codes are the same),

    1. In an exe, loading a class from another COM component by invoking CoCreateInstance;

    2. In a COM DLL, loading a class from another COM component by invoking CoCreateInstance;

    1 success but 2 fails. I am running in the same environment (machine) using Visual Studio 2005. Any ideas of this issue?


    thanks in advance,
    George

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    I work on a massive COM/DCOM project every day with dozens of DLLs containing COM components in VS2005.

    First things first though. What is the return value of CoCreateInstance?
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dll Injection Question
    By zenox in forum C Programming
    Replies: 13
    Last Post: 03-15-2008, 10:54 AM
  2. Error C2664 - Trying to call an external Dll
    By jamez05 in forum C++ Programming
    Replies: 3
    Last Post: 08-08-2006, 06:07 AM
  3. Dll question again. Reference to No-One
    By G'n'R in forum C Programming
    Replies: 0
    Last Post: 10-24-2001, 03:52 AM
  4. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 01:26 PM