Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 533 results for
createprocess
- Page 1
createprocess help
Programming
Software Development
14 Years Ago
by some
…way[50]; char *path = way; // the
createprocess
code starts here STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory(…) // Pointer to PROCESS_INFORMATION structure ) { printf( "
CreateProcess
failed (%d).\n", GetLastError() ); } // Wait …
Re: createprocess help
Programming
Software Development
11 Years Ago
by Lucaci Andrew
… = sizeof(sInfo); ZeroMemory(&pInfo, sizeof(pInfo)); DWORD id; if (
CreateProcess
(NULL, run, NULL, NULL, false, 0, NULL, NULL, &sInfo…
CreateProcess help!!!
Programming
Software Development
15 Years Ago
by aksshe10
I use Turbo C++ explorer i need to get file name from a TFileListBox which is an AnsiString, and use it in
CreateProcess
but
CreateProcess
Requires an "LPCTSTR" or "LPTSTR" I would like to convert the ansistring to LPTSTR Please help thankx in advance
Re: CreateProcess help!!!
Programming
Software Development
15 Years Ago
by Alex Edwards
… Pointer (const) to String' and 'Long Pointer to String' Since
CreateProcess
is defined in windows.h, I'd assume that STR…
CreateProcess from a DLL
Programming
Software Development
14 Years Ago
by thelamb
…m_fullPath.c_str() ); // Start the child process. if( !
CreateProcess
( const_cast<LPCSTR>(m_fullPath.c_str()), // filename of the …) // Pointer to PROCESS_INFORMATION structure. ) { TR::Log( "
CreateProcess
failed (%d).\n", GetLastError() ); return; } CloseHandle(pi.…
CreateProcess with redirected stdOutput
Programming
Software Development
16 Years Ago
by briskal
…, but when the command was initiated through [B]
CreateProcess
[/B] the [B]>[/B] and [B]… handle StartInfo.hStdError := 0; FillChar(ProcsInfo, SizeOf(ProcsInfo), #0);
CreateProcess
(nil, @RunProgName[1], nil, nil, True, // bInheritHandles 0, …] is open within the Delphi application when [B]
CreateProcess
[/B] is executed, the results are the same …
CreateProcess returns Error 87 The parameter is incorrect when custom env block used
Programming
Software Development
12 Years Ago
by Alexis913
…am trying to launch a process using
CreateProcess
() I have to modify the Path … I then use my new environment block in
CreateProcess
. NOTE: I have tried Unicode and ANSI version….lpDesktop = NULL; ZeroMemory(&ProcessInfo, sizeof(ProcessInfo)); if( !
CreateProcess
( NULL, // No module name (use command line) "run…
createprocess xsession?
Programming
Software Development
15 Years Ago
by Smed
I'm trying to use the
createprocess
function to start an xsession, but so far I've …\\Application Data\\Hummingbird\\Connectivity\\12.00\\Profile\\XSW3.xs"));
CreateProcess
(NULL, tszCommandLine, NULL, NULL, FALSE, NULL, NULL, NULL, &si…
Re: createprocess help
Programming
Software Development
14 Years Ago
by nezachem
Error code 2 is ERROR_FILE_NOT_FOUND. If the path you entered contains spaces, the statement [QUOTE][CODE] cin >> way[50];[/CODE][/QUOTE] will only read the first "word" of the path. Use getline().
Re: createprocess help
Programming
Software Development
14 Years Ago
by some
It worked, thanks.
Re: createprocess help
Programming
Software Development
11 Years Ago
by nospmas1939
So.........what is the solution please? For a mere mortal, these postings do not offer any solution !!!
Win32 Perl - CreateProcess
Programming
Software Development
17 Years Ago
by Zarkon
…('PROCESS_INFORMATION', qw( HANDLE hProcess; HANDLE hThread; DWORD dwProcessId; DWORD dwThreadId; )); $
CreateProcess
->Call( 'explorer.exe', 0, 0, 0, 0, 16, 0…, 0, $strup, $procinfo); [/code] The number 16 in the
CreateProcess
parameters is CREATE_NEW_CONSOLE = 0x00000010 as is described in the msdn…
problem with win32 api createprocess()
Programming
Software Development
14 Years Ago
by bernadlosini
…specify a separate program to be invoked from
CreateProcess
(). It is this separate program that will …sizeof(si)); si.cb = sizeof(si); if(!
CreateProcess
("C:\\WINDOWS\\system32\\cmd.exe",NULL,NULL,…NULL,&si,&pi)) printf("\nSorry!
CreateProcess
() failed.\n\n"); else{ printf("…
cant figure out this createprocess function!!!
Programming
Software Development
18 Years Ago
by heavyc
…identifier and here is my code [code] bool
CreateProcess
( char IpApplicationName[1000]; STARTUPINFO StartInfo; PROCESS_INFORMATION ProcessInfo; …, sizeof(StartInfo)); StartInfo.cb = sizeof(StartInfo); if (!
CreateProcess
(IpApplicationName, NULL, NULL, NULL, FALSE, HIGH_PRIORITY_CLASS | CREATE_NEW_CONSOLE…
Re: problem with win32 api createprocess()
Programming
Software Development
14 Years Ago
by Salem
if(!
CreateProcess
("C:\\WINDOWS\\system32\\cmd.exe", This needs to be something like [ICODE]if(!
CreateProcess
("C:\\Users\\me\\Documents\\Projects\\Fib\\myfib.exe",[/ICODE] It does all the work. This code just has to create the process and wait for it to finish.
different results when invoking console app directly and by CreateProcess
Programming
Software Development
14 Years Ago
by ilyaz
…'s failing. Below is the code before and after the
Createprocess
call. Can you see anything suspicious? THANKS MUCH! =================== …start.lpTitle = "My utility "; start.wShowWindow = SW_SHOWMINIMIZED; if (!
CreateProcess
(NULL, szCmdLine, NULL, NULL, false, CREATE_NEW_CONSOLE | NORMAL_PRIORITY_CLASS, NULL, szPath, &…
win32 CreateProcess fails to start java executable (jsmooth)
Programming
Software Development
11 Years Ago
by ktsangop
… = DETACHED_PROCESS | NORMAL_PRIORITY_CLASS; //----------------- printf("%s",callprogram); if( !
CreateProcess
(NULL,callprogram, NULL, NULL, TRUE, creationFlags, NULL, NULL, &startInfo…which is wrapped to an executable using jsmooth.
CreateProcess
returns no errors but the java app exits …
Re: problem with win32 api createprocess()
Programming
Software Development
14 Years Ago
by bernadlosini
very sorry for the inconvenience .it was mistakenly posted in c++ forum .i delete it .please reply here.all the functions are done here .i combined
createprocess
() and child process to gather .where as child process is printing the Fibonacci series .
Re: cant figure out this createprocess function!!!
Programming
Software Development
18 Years Ago
by WolfPack
…;); ZeroMemory(&StartInfo, sizeof(StartInfo)); StartInfo.cb = sizeof(StartInfo); if (!
CreateProcess
(IpApplicationName, NULL, NULL, NULL, FALSE, HIGH_PRIORITY_CLASS | CREATE_NEW_CONSOLE, NULL, NULL, &…
Terminate WinAPI process created using CreateProcess?
Programming
Software Development
9 Years Ago
by pspwxp fan
… enter a command and input a path to an executable,
CreateProcess
is invoked to start the process. This works fine enough… = new char[progpath.length()+1]; strcpy(szExe, progpath.c_str()); if(
CreateProcess
(0, szExe, 0, 0, FALSE, 0, 0, 0, &si…
Re: Windows CreateProcess and then terminate it from other thread?
Programming
Software Development
12 Years Ago
by soo5Lo6k
…; ZeroMemory( &pi, sizeof(pi) ); // Start the child process.
CreateProcess
( NULL, // No module name (use command line) co, // Command line…; ZeroMemory( &pi, sizeof(pi) ); // Start the child process.
CreateProcess
( NULL, // No module name (use command line) co, // Command line…
Assembly Equivalent of CreateProcess()?
Programming
Software Development
13 Years Ago
by Seaboot
… execute in DOS assembly the way Windows programs use a
CreateProcess
() method? That is, not in the same way a Windows…
g++: error: CreateProcess no such file or directory
Programming
Software Development
12 Years Ago
by caut_baia
Hi.I get the following error "g++: error:
CreateProcess
no such file or directory" whenever i try to …
Windows CreateProcess and then terminate it from other thread?
Programming
Software Development
12 Years Ago
by soo5Lo6k
… define it globally, the THREAD function freezes when tryiing to
CreateProcess
. when i tried to define it like a pointer, compiler…
Re: CreateProcess from a DLL
Programming
Software Development
14 Years Ago
by thelamb
Never mind, issue has been resolved by using a different design.
Re: CreateProcess with redirected stdOutput
Programming
Software Development
16 Years Ago
by briskal
Further to the above - more trial and error led me to a workable solution to my own problem: I included the text [B]CMD /C[/B] at the beginning of the [I]lpCommandLine[/I] string which also had [B]> MyOutput.Txt[/B] at the end. The command interpreter then parsed the command string correctly and the standard outpur was redirected to [B]…
Re: CreateProcess returns Error 87 The parameter is incorrect when custom env block used
Programming
Software Development
12 Years Ago
by nezachem
You calculate the position of the new environment variable (line 81) based on the length of the current one. It is OK as long as you use the original length. In case of PATH it is not so.
Re: CreateProcess returns Error 87 The parameter is incorrect when custom env block used
Programming
Software Development
12 Years Ago
by Alexis913
[QUOTE=nezachem;1743611]You calculate the position of the new environment variable (line 81) based on the length of the current one. It is OK as long as you use the original length. In case of PATH it is not so.[/QUOTE] Finally figured it out. Its not the code. Its the path. Anything you add in Path must exist. Had a missing folder in the path …
Re: createprocess xsession?
Programming
Software Development
15 Years Ago
by Ancient Dragon
The argument to XStart.exe contains spaces, so you need to wrap double quotes around it. See red [code] _tcscpy(tszCommandLine, _T("C:\\Program Files\\Hummingbird\\Connectivity\\12.00\\Exceed\\Xstart.exe [color=red]\"[/color]C:\\Documents and Settings\\username\\Application Data\\Hummingbird\\Connectivity\\12.00\\Profile\\XSW3.xs[…
Re: createprocess xsession?
Programming
Software Development
15 Years Ago
by Smed
thanks!
1
2
3
9
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC