Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWinInet FTP - how to dump each conversation ? Pin
rrrado30-Nov-05 4:21
rrrado30-Nov-05 4:21 
AnswerRe: WinInet FTP - how to dump each conversation ? Pin
ThatsAlok30-Nov-05 23:10
ThatsAlok30-Nov-05 23:10 
GeneralRe: WinInet FTP - how to dump each conversation ? Pin
rrrado1-Dec-05 22:39
rrrado1-Dec-05 22:39 
Question#define scope rules Pin
Like2Byte30-Nov-05 3:54
Like2Byte30-Nov-05 3:54 
AnswerRe: #define scope rules [edited] Pin
toxcct30-Nov-05 4:39
toxcct30-Nov-05 4:39 
AnswerRe: #define scope rules Pin
Chris Losinger30-Nov-05 4:54
professionalChris Losinger30-Nov-05 4:54 
QuestionMulti Monitor Pin
Karl Bahr30-Nov-05 3:51
Karl Bahr30-Nov-05 3:51 
QuestionCreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 3:25
YaronNir30-Nov-05 3:25 
Hi all,

I want to run ACDSee from create process
this is the code i use:

STARTUPINFOW si;
PROCESS_INFORMATION pi;
ZeroMemory(&pi,sizeof(PROCESS_INFORMATION));
ZeroMemory(&si,sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFOW);
si.wShowWindow = 1; // show
if(!CreateProcessW(L"C:\\Program Files\\ACD Systems\\ACDSee\\6.0\\ACDSee6.exe", 
		   L"C:\\Program Files\\ACD Systems\\ACDSee\\6.0\\ACDSee6.exe",
		   NULL,
		   NULL, 
		   FALSE, 
		   0,
		   NULL,
		   NULL,
		   &si,
		   &pi))
{
	ASSERT(FALSE);// failure
}

// success


ok , the above code seems ok, but the problem is i pass the create process sucessfully, and i can't see any ACDSEE window open (nor i can't see the process in the task manager)....

if i use this substitue code:

ShellExecuteW(NULL,
	  L"open",
	  L"C:\\Program Files\\ACD Systems\\ACDSee\\6.0\\ACDSee6.exe",
	  NULL,
	  NULL,
	  SW_SHOWNORMAL);


it is working ok and ACDSEE is opened.

i can't use ShellExecute because i need some process information which PROCESS_INFORMATION structure holds....


can any1 help?

thanks in advanced
Yaron


Ask not what your application can do for you,
Ask what you can do for your application
AnswerRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
Cedric Moonen30-Nov-05 3:46
Cedric Moonen30-Nov-05 3:46 
GeneralRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 3:51
YaronNir30-Nov-05 3:51 
AnswerRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
Gavin Taylor30-Nov-05 4:15
professionalGavin Taylor30-Nov-05 4:15 
GeneralRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 4:50
YaronNir30-Nov-05 4:50 
QuestionRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
David Crow30-Nov-05 8:03
David Crow30-Nov-05 8:03 
AnswerRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 20:26
YaronNir30-Nov-05 20:26 
AnswerRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
Daniel Lohmann30-Nov-05 10:36
Daniel Lohmann30-Nov-05 10:36 
GeneralRe: CreateProcess doesn't work while ShellExecute Does!!!! Pin
YaronNir30-Nov-05 20:26
YaronNir30-Nov-05 20:26 
Questionprint Pin
viliam30-Nov-05 2:46
viliam30-Nov-05 2:46 
QuestionRe: print Pin
David Crow30-Nov-05 2:55
David Crow30-Nov-05 2:55 
QuestionActiveX Controls in VS 7.1 Pin
sweep12330-Nov-05 2:03
sweep12330-Nov-05 2:03 
QuestionDeviceIoControl() & COM1 Pin
button_basher30-Nov-05 1:45
button_basher30-Nov-05 1:45 
QuestionHow to make a child window appear on TaskBar Pin
pradish30-Nov-05 0:58
pradish30-Nov-05 0:58 
QuestionMFC in VC 2005 beta version Pin
narayanagvs30-Nov-05 0:52
narayanagvs30-Nov-05 0:52 
AnswerRe: MFC in VC 2005 beta version Pin
Cedric Moonen30-Nov-05 1:14
Cedric Moonen30-Nov-05 1:14 
QuestionThe procedure entry point Rtllpv4StringToAddressW in NTDLL.dll Pin
zinc_z30-Nov-05 0:43
zinc_z30-Nov-05 0:43 
AnswerRe: The procedure entry point Rtllpv4StringToAddressW in NTDLL.dll Pin
Mike Dimmick30-Nov-05 3:46
Mike Dimmick30-Nov-05 3:46 

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.