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. .NET (Core and Framework)
  4. IE create object to com wrapped dotnet dll launch exe

IE create object to com wrapped dotnet dll launch exe

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpjavascripthtmlcomalgorithms
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.
  • N Offline
    N Offline
    nlarson11
    wrote on last edited by
    #1

    Hello, I have a full application suite of software (multiple dlls) that is launched from a single exe acting as a main menu. The applications within this suite can be launched from the main menu or from IE that tells the exe to launch a specific application. I want to change the way that IE is currently launching the apps (current method is embed a dll in an html page) to using create object. So have a com wrapped dll that will tell the exe to launch a specific app using mutex. This dll not only tells the exe to launch an app, it also will start the exe if it's not running already. My problem is when it has to start the exe, I'm not sure when the exe is fully loaded to start excepting launch requests(they go unheard or cause errors). I have tried to use flags that in my mutex i'm checking but with the complexity of mutex it's giving me false positives that the exe is ready. I'm tried loops but that results in a not responding of IE or the exe itself - the not responding goes away but I can't have that coming up each time it starts. The main purpose for using mutex is to control multiple instances of the exe starting. If it's started via IE, it becomes a tray icon with the mainmenu being hidden only accepting launch requests from the browser. If the user then double-clicks on the desktop short cut, the 2nd instances tells the 1st instance to launch the main menu then it will accepting launch requests from both the mainmenu and the browser. So i'm trying to use the 2nd instance to tell the 1st instance to launch an application when the com wrapped dlls does a loadassemblyfrom but the 1st instance isn't fully loaded yet whenn the 2nd instance tries to tell it to launch an app. Does anyone have any ideas on how to "poll" the exe to make sure its ready before I tell it to launch an app so that I don't run into these not responding messages? I've used setTimeout javascript code to poll but that either doesn't work or also causes the not responding. thanks for your time Nathan

    'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous 'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous

    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