Click here to Skip to main content
15,920,688 members
Home / Discussions / COM
   

COM

 
GeneralRe: why CoCreateInstance( ... IID_IShellLink, ..) failed Pin
PengFeidu7-Sep-03 20:08
PengFeidu7-Sep-03 20:08 
GeneralRe: why CoCreateInstance( ... IID_IShellLink, ..) failed Pin
Lim Bio Liong18-Sep-03 8:06
Lim Bio Liong18-Sep-03 8:06 
GeneralRe: why CoCreateInstance( ... IID_IShellLink, ..) failed Pin
Lim Bio Liong19-Sep-03 0:53
Lim Bio Liong19-Sep-03 0:53 
GeneralKeeping COM server active Pin
Gilrock1-Sep-03 14:00
Gilrock1-Sep-03 14:00 
GeneralRe: Keeping COM server active Pin
igor19603-Sep-03 10:43
igor19603-Sep-03 10:43 
GeneralRe: Keeping COM server active Pin
Gilrock3-Sep-03 11:20
Gilrock3-Sep-03 11:20 
GeneralRe: Keeping COM server active Pin
igor19603-Sep-03 11:36
igor19603-Sep-03 11:36 
GeneralRe: Keeping COM server active Pin
Gilrock3-Sep-03 11:50
Gilrock3-Sep-03 11:50 
Maybe my first post wasn't clear enough, but that's basically what I've done. It now looks like this:
COleTemplateServer::RegisterAll();<br />
if (RunEmbedded() || RunAutomated())<br />
{<br />
  // Register all OLE server (factories) as running.  This enables the<br />
  //  OLE libraries to create objects from other applications.<br />
}<br />
else<br />
{<br />
  // When a server application is launched stand-alone, it is a good idea<br />
  //  to update the system registry in case it has been damaged.<br />
  COleObjectFactory::UpdateRegistryAll();<br />
}


That change is what allowed a .vbs script to attach to the server instance that was started from the command line instead of creating a new one. But the problem is that the application still disappears when I close the dialog which leaves the clients with no server.

Gil
GeneralRe: Keeping COM server active Pin
igor19603-Sep-03 12:01
igor19603-Sep-03 12:01 
GeneralRe: Keeping COM server active Pin
Gilrock3-Sep-03 12:13
Gilrock3-Sep-03 12:13 
GeneralRe: Keeping COM server active Pin
Gilrock3-Sep-03 13:02
Gilrock3-Sep-03 13:02 
GeneralRe: Keeping COM server active Pin
Gilrock4-Sep-03 6:20
Gilrock4-Sep-03 6:20 
GeneralRe: Keeping COM server active Pin
igor19604-Sep-03 6:50
igor19604-Sep-03 6:50 
GeneralReturn Interface Pointer Pin
Daniel Strigl1-Sep-03 4:50
Daniel Strigl1-Sep-03 4:50 
GeneralRe: Return Interface Pointer Pin
valikac1-Sep-03 6:01
valikac1-Sep-03 6:01 
GeneralRe: Return Interface Pointer Pin
Daniel Strigl1-Sep-03 20:03
Daniel Strigl1-Sep-03 20:03 
GeneralRe: Return Interface Pointer Pin
Stefan Pedersen1-Sep-03 10:20
Stefan Pedersen1-Sep-03 10:20 
GeneralRe: Return Interface Pointer Pin
Daniel Strigl1-Sep-03 20:04
Daniel Strigl1-Sep-03 20:04 
GeneralRe: Return Interface Pointer Pin
Lim Bio Liong18-Sep-03 19:28
Lim Bio Liong18-Sep-03 19:28 
GeneralRe: Return Interface Pointer Pin
Lim Bio Liong18-Sep-03 19:34
Lim Bio Liong18-Sep-03 19:34 
GeneralRe: Return Interface Pointer Pin
Daniel Strigl11-Oct-03 2:27
Daniel Strigl11-Oct-03 2:27 
Question&quot;parameter not optional&quot;? Pin
Yu Zhiquan1-Sep-03 1:24
Yu Zhiquan1-Sep-03 1:24 
AnswerRe: &quot;parameter not optional&quot;? Pin
Stefan Pedersen1-Sep-03 10:21
Stefan Pedersen1-Sep-03 10:21 
AnswerRe: &quot;parameter not optional&quot;? Pin
igor19603-Sep-03 10:59
igor19603-Sep-03 10:59 
GeneralThread Id of client app Pin
In-At31-Aug-03 23:08
In-At31-Aug-03 23:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.