Click here to Skip to main content
15,887,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC CreateInstance from CWinThread Pin
IAmRami19-May-10 22:05
IAmRami19-May-10 22:05 
QuestionHow to get all instances of Excel.exe Pin
KTTransfer17-May-10 2:17
KTTransfer17-May-10 2:17 
AnswerRe: EnumWindowsProc( ) , EnumProcessModules , FindWindow( ), Pin
Software_Developer17-May-10 3:00
Software_Developer17-May-10 3:00 
AnswerRe: How to get all instances of Excel.exe Pin
sashoalm17-May-10 5:07
sashoalm17-May-10 5:07 
GeneralRe: How to get all instances of Excel.exe Pin
KTTransfer17-May-10 18:12
KTTransfer17-May-10 18:12 
GeneralRe: How to get all instances of Excel.exe Pin
sashoalm17-May-10 23:33
sashoalm17-May-10 23:33 
GeneralRe: How to get all instances of Excel.exe Pin
T210211-Jan-11 22:00
T210211-Jan-11 22:00 
QuestionHow to register an automation enabled application in the ROT when it's started from the command line. Pin
TClarke17-May-10 0:45
TClarke17-May-10 0:45 
Hi All,

I have an application generated by the VS2005 AppWizard so that it has Automation enabled and I've setup the interface so it all works correctly.
However, I also have the app accepting command line parameters when starting from the command line(which it mainly is since it's fired up from a Java servlet).
The app gets called so many times I only want one instance of it to exist at a time so as to cut down on system resource usage.
What I want to do is register the IDispatch of the automation object with the ROT when the app is first started up with the command line. That way when a user starts the app again I can check with the ROT to see if an instance of my app is running. If it is, I just get the IDispatch out of the ROT and pass the parameter values to the running instance via the methods on it. I then shut down my app before I've completed assigning all the necessary resources to it.
So my question is: How do I get the IDispatch to my app if it has been started with the command line?

Thanks very much for any help

Thomas
Cheers
Tom

Philosophy: The art of never getting beyond the concept of life.
Religion: Morality taking credit for the work of luck.

Questionneed help vc++.net please Pin
Gilbertu16-May-10 23:54
Gilbertu16-May-10 23:54 
AnswerRe: need help vc++.net please Pin
Hristo-Bojilov17-May-10 0:09
Hristo-Bojilov17-May-10 0:09 
GeneralRe: need help vc++.net please Pin
Gilbertu17-May-10 0:19
Gilbertu17-May-10 0:19 
QuestionHiding Controls Dynamically in Dialog Pin
Anu_Bala16-May-10 23:40
Anu_Bala16-May-10 23:40 
AnswerRe: Hiding Controls Dynamically in Dialog Pin
Hristo-Bojilov17-May-10 0:59
Hristo-Bojilov17-May-10 0:59 
AnswerRe: Hiding Controls Dynamically in Dialog Pin
Member 392263917-May-10 2:18
Member 392263917-May-10 2:18 
GeneralRe: Hiding Controls Dynamically in Dialog Pin
David Crow17-May-10 3:05
David Crow17-May-10 3:05 
QuestionInput from Commandline. Pin
krishna_CP16-May-10 22:37
krishna_CP16-May-10 22:37 
AnswerRe: Input from Commandline. Pin
Hristo-Bojilov16-May-10 22:44
Hristo-Bojilov16-May-10 22:44 
AnswerRe: Input from Commandline. Pin
Garth J Lancaster16-May-10 23:33
professionalGarth J Lancaster16-May-10 23:33 
AnswerRe: Input from Commandline. Pin
Aescleal17-May-10 1:11
Aescleal17-May-10 1:11 
QuestionWriteprivateprofilestring() take delay to update original ini file Pin
Shivanand Gupta16-May-10 20:56
Shivanand Gupta16-May-10 20:56 
AnswerRe: Writeprivateprofilestring() take delay to update original ini file Pin
Richard MacCutchan16-May-10 21:03
mveRichard MacCutchan16-May-10 21:03 
QuestionRe: Writeprivateprofilestring() take delay to update original ini file Pin
David Crow17-May-10 3:08
David Crow17-May-10 3:08 
Questionwmv blank file creation Pin
mohan_chandra8416-May-10 20:29
mohan_chandra8416-May-10 20:29 
Questionreleated to netdefender firewall Pin
promila jangra16-May-10 6:00
promila jangra16-May-10 6:00 
QuestionUseing UTF-8 in CHttpFile Pin
m_code16-May-10 5:27
m_code16-May-10 5:27 

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.