locked
COM DLL vs EXE RRS feed

  • Question

  • User559005402 posted

    Is there a difference in the way a COM server is handled if it is compiled as an EXE instead of a DLL? I have one that works when compiled as a DLL but will not work when compiled as an EXE.

    Thanks

    Thursday, May 21, 2009 11:23 AM

Answers

  • User187056398 posted

    If it's a DLL, it runs in the process space of the application using it.

    If it's an executable, it runs in it's own process space and crossing process spaces brings up mucho security issues.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 21, 2009 12:15 PM

All replies

  • User187056398 posted

    If it's a DLL, it runs in the process space of the application using it.

    If it's an executable, it runs in it's own process space and crossing process spaces brings up mucho security issues.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 21, 2009 12:15 PM
  • User559005402 posted

    If it's a DLL, it runs in the process space of the application using it.

    If it's an executable, it runs in it's own process space and crossing process spaces brings up mucho security issues.

    Thanks Steve. I guess that much I already knew. But aside from the security issues, how do you do it? My COM will run as a DLL but not as an EXE. Unfortunately, it needs to be an EXE.

    Wednesday, May 27, 2009 12:41 PM