Click here to Skip to main content
15,904,817 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sorting a linked list of type class Pin
Maxforce20-Nov-04 19:47
Maxforce20-Nov-04 19:47 
GeneralCustom CImageList VS manifest files Pin
alex.barylski20-Nov-04 14:16
alex.barylski20-Nov-04 14:16 
GeneralRe: Button and Testbox help Pin
bmzhao20-Nov-04 14:32
bmzhao20-Nov-04 14:32 
GeneralRe: Button and Testbox help Pin
Timothy Grabrian20-Nov-04 17:09
professionalTimothy Grabrian20-Nov-04 17:09 
GeneralCreateProcess stack overflow Pin
Michael Sobers20-Nov-04 11:59
Michael Sobers20-Nov-04 11:59 
GeneralRe: CreateProcess stack overflow Pin
BaldwinMartin20-Nov-04 17:22
BaldwinMartin20-Nov-04 17:22 
GeneralRe: CreateProcess stack overflow Pin
Michael Sobers22-Nov-04 10:23
Michael Sobers22-Nov-04 10:23 
GeneralRe: CreateProcess stack overflow Pin
BaldwinMartin22-Nov-04 12:08
BaldwinMartin22-Nov-04 12:08 
Yes, use a thread and rerurn a handle.
PJ and Dr. N both have good articles on these.
PJ. www.naughter.com
and Dr. N www.flounder.com

P.J. example is in popwatch

Dr. N's is called worker threads I believe..?

Anyway create a handle


HANDLE myproject::StartShell(blah,blah,blah){
ShellExecute or CreatePro
return hwnd;
}
CP has a good artice also called A newbie's elementary guide to spawning processes.

Nishant does a good job, but does not go into the depth of the articles above.

Dr. N. is hard to read, but once you understand him he provides great info on both these subjects.

A good article appeared in March 1998 in MSDN Journal.
"Extend the Windows 95 Shell with Application Desktop Toolbars "
Notice how they managed the threads both worker and UI.

Also look at blade and the many win UI's that shell it. Notice they have setup two way communication between the com object and the UI.

Most all rippers include blade as the workhorse.
Also WinLame uses two way between the GUI and the com obj (LAME)

Another option is to create Custom Messages and post them. In your child process trap em in the default process and extract the params.
You may also create a defwinpro in the spawner and trap message back from the child app.

Remem to create a header with the defines and include it in both apps.
pcode:

#define my_message ((WIN_USER)+1024);
CStringArray message;
Message.SetSize(0,1999);
message.Add(2,"please insert new disk into drive A:")
...
message.Add(99,"Please remove disk from drive A:");
...

PostMessage(my_message,0,99);

= Remove disk from drive A:


"Naked we come and bruised we go."
- James Douglas Morrison

Best Wishes,
ez_way
QuestionHow do you properly usethe Doc/View Pin
Larry Mills Sr20-Nov-04 11:45
Larry Mills Sr20-Nov-04 11:45 
AnswerRe: How do you properly usethe Doc/View Pin
qcha0s20-Nov-04 12:06
qcha0s20-Nov-04 12:06 
GeneralIncrementing object names in MFC Pin
Sgt.Xyclone20-Nov-04 9:33
Sgt.Xyclone20-Nov-04 9:33 
GeneralRe: Incrementing object names in MFC Pin
PJ Arends20-Nov-04 9:54
professionalPJ Arends20-Nov-04 9:54 
QuestionSNMP Anyone? Pin
qcha0s20-Nov-04 7:12
qcha0s20-Nov-04 7:12 
AnswerRe: SNMP Anyone? Pin
BaldwinMartin20-Nov-04 17:09
BaldwinMartin20-Nov-04 17:09 
AnswerRe: SNMP Anyone? Pin
Henry miller22-Nov-04 2:52
Henry miller22-Nov-04 2:52 
Generalwould like to launch request "SHOW TABLE STATUS LIKE 'Clients'" in VC++ Pin
Member 124237320-Nov-04 4:43
Member 124237320-Nov-04 4:43 
QuestionHow do I know when CDialog is deleted by a destructor? Pin
tip231020-Nov-04 4:25
tip231020-Nov-04 4:25 
AnswerRe: How do I know when CDialog is deleted by a destructor? Pin
Maximilien20-Nov-04 5:29
Maximilien20-Nov-04 5:29 
GeneralRe: How do I know when CDialog is deleted by a destructor? Pin
tip231020-Nov-04 6:00
tip231020-Nov-04 6:00 
GeneralRe: How do I know when CDialog is deleted by a destructor? Pin
Maximilien20-Nov-04 6:08
Maximilien20-Nov-04 6:08 
GeneralRe: How do I know when CDialog is deleted by a destructor? Pin
tip231020-Nov-04 6:20
tip231020-Nov-04 6:20 
GeneralRe: How do I know when CDialog is deleted by a destructor? Pin
Maximilien20-Nov-04 9:14
Maximilien20-Nov-04 9:14 
GeneralWIN Management WMI Service (64 bit env on IA-64) doesn't seem to load 32 bit dlls Pin
Member 39957420-Nov-04 3:28
Member 39957420-Nov-04 3:28 
GeneralRe: WIN Management WMI Service (64 bit env on IA-64) doesn't seem to load 32 bit dlls Pin
BaldwinMartin20-Nov-04 17:04
BaldwinMartin20-Nov-04 17:04 
GeneralRe: WIN Management WMI Service (64 bit env on IA-64) doesn't seem to load 32 bit dlls Pin
Member 39957420-Nov-04 19:49
Member 39957420-Nov-04 19:49 

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.