Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get MAC-address easy Pin
JensB4-May-03 21:32
JensB4-May-03 21:32 
GeneralRe: Get MAC-address easy - NT, W2K, WXP Pin
geo_m4-May-03 21:39
geo_m4-May-03 21:39 
GeneralRe: Get MAC-address easy Pin
JensB4-May-03 21:43
JensB4-May-03 21:43 
GeneralRe: Get MAC-address easy Pin
geo_m4-May-03 22:01
geo_m4-May-03 22:01 
GeneralRe: Get MAC-address easy Pin
Toni784-May-03 21:52
Toni784-May-03 21:52 
GeneralRe: Get MAC-address easy Pin
JensB4-May-03 22:19
JensB4-May-03 22:19 
GeneralRe: Get MAC-address easy Pin
Dudi Avramov4-May-03 23:14
Dudi Avramov4-May-03 23:14 
GeneralProblem with CreateProcess and SW_HIDE Pin
Thomas Andersen4-May-03 20:58
Thomas Andersen4-May-03 20:58 
Hi..

I've used CreateProcess with SW_HIDE to launch a 3rd party middleware program hidden, but now the 3rd party program has been updated and suddenly my code don't work anymore (the launched window does not hide) ?

What could be the reason for that ? I'm totally blank Confused | :confused:

My code below... (still works wih the old version & other programs)


memset(&starttype, 0, sizeof(starttype));
starttype.dwFlags = STARTF_USESHOWWINDOW;
starttype.wShowWindow = SW_HIDE;

CString appParam = m_cmp + "\\iefcm65n.exe iefcm65n startup /initfile=iefcmn.ini";
CString workdir = m_cmp;


if (CreateProcess(NULL,(LPTSTR) (LPCTSTR) appParam,NULL,NULL,FALSE,0,NULL, (LPTSTR) (LPCTSTR) workdir, &starttype, &pinfo))
{
prochandle = (long) pinfo.hProcess;
threadid = pinfo.dwThreadId;

....
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Michael Dunn4-May-03 21:32
sitebuilderMichael Dunn4-May-03 21:32 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Thomas Andersen4-May-03 21:44
Thomas Andersen4-May-03 21:44 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
jmkhael4-May-03 22:02
jmkhael4-May-03 22:02 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Thomas Andersen4-May-03 22:07
Thomas Andersen4-May-03 22:07 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
jmkhael4-May-03 22:44
jmkhael4-May-03 22:44 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Thomas Andersen4-May-03 23:28
Thomas Andersen4-May-03 23:28 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Chen Venkataraman5-May-03 10:14
Chen Venkataraman5-May-03 10:14 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Thomas Andersen5-May-03 18:48
Thomas Andersen5-May-03 18:48 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Joseph Dempsey5-May-03 6:16
Joseph Dempsey5-May-03 6:16 
GeneralRe: Problem with CreateProcess and SW_HIDE Pin
Thomas Andersen5-May-03 18:54
Thomas Andersen5-May-03 18:54 
GeneralNeed Help Auto-Locking NT4.0 Workstation Pin
crasheightball4-May-03 19:54
crasheightball4-May-03 19:54 
GeneralRe: Need Help Auto-Locking NT4.0 Workstation Pin
geo_m4-May-03 21:32
geo_m4-May-03 21:32 
GeneralRe: Need Help Auto-Locking NT4.0 Workstation Pin
Anonymous4-May-03 22:21
Anonymous4-May-03 22:21 
GeneralRe: Need Help Auto-Locking NT4.0 Workstation Pin
geo_m4-May-03 22:36
geo_m4-May-03 22:36 
GeneralRe: Need Help Auto-Locking NT4.0 Workstation Pin
geo_m4-May-03 23:40
geo_m4-May-03 23:40 
GeneralMeeting trouble when sending TCP package. Pin
George24-May-03 19:16
George24-May-03 19:16 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m4-May-03 21:28
geo_m4-May-03 21:28 

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.