Click here to Skip to main content
15,900,589 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem using static solidbrush in GDI+ [modified] Pin
Stick^9-Oct-06 12:05
Stick^9-Oct-06 12:05 
AnswerRe: Problem using static solidbrush in GDI+ Pin
Mark Salsbery9-Oct-06 12:19
Mark Salsbery9-Oct-06 12:19 
GeneralRe: Problem using static solidbrush in GDI+ Pin
Stick^9-Oct-06 12:26
Stick^9-Oct-06 12:26 
GeneralRe: Problem using static solidbrush in GDI+ Pin
Mark Salsbery9-Oct-06 12:46
Mark Salsbery9-Oct-06 12:46 
GeneralRe: Problem using static solidbrush in GDI+ Pin
Stick^9-Oct-06 12:50
Stick^9-Oct-06 12:50 
GeneralRe: Problem using static solidbrush in GDI+ Pin
Mark Salsbery9-Oct-06 12:56
Mark Salsbery9-Oct-06 12:56 
QuestionProblem with output redirect Pin
eusto9-Oct-06 11:13
eusto9-Oct-06 11:13 
AnswerRe: Problem with output redirect Pin
James R. Twine9-Oct-06 11:29
James R. Twine9-Oct-06 11:29 
eusto wrote:
if (!CreateProcess( NULL,
"ping www.google.com",
NULL,
NULL,
TRUE,
NULL,
NULL,
NULL,
&StartupInfo,
&ProcessInfo))
{
printf("Failed with %d\n",GetLastError());
}


   I think that you should specify the full path to ping.exe (always a good habit, ask any *nix person, it prevents a command hijack), and put that path into the first parameter.  Put the parameters to ping.exe (www.google.com) as the second parameter and see if that works.

   I have had situations in the past where specifying everything as the command line fails, but breaking them up works.  Dunno why, but try it.

   Also, did you try using pipes as suggested in the MSDN article located at http://msdn.microsoft.com/library/en-us/dllproc/base/creating_a_child_process_with_redirected_input_and_output.asp[^]?   Maybe it works with pipes but not with normal files?  I would get the pipes version working first.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

GeneralRe: Problem with output redirect Pin
eusto9-Oct-06 12:06
eusto9-Oct-06 12:06 
AnswerRe: Problem with output redirect Pin
Mark Salsbery9-Oct-06 12:33
Mark Salsbery9-Oct-06 12:33 
GeneralRe: Problem with output redirect Pin
eusto9-Oct-06 22:30
eusto9-Oct-06 22:30 
AnswerRe: Problem with output redirect Pin
Naveen9-Oct-06 17:43
Naveen9-Oct-06 17:43 
QuestionWell like I said... Pin
Learn2LikeIt9-Oct-06 10:59
Learn2LikeIt9-Oct-06 10:59 
AnswerRe: Well like I said... Pin
led mike9-Oct-06 11:06
led mike9-Oct-06 11:06 
GeneralRe: Well like I said... Pin
Nibu babu thomas9-Oct-06 17:43
Nibu babu thomas9-Oct-06 17:43 
AnswerRe: Well like I said... Pin
Galatei10-Oct-06 2:50
Galatei10-Oct-06 2:50 
QuestionFunctions Pin
Learn2LikeIt9-Oct-06 10:54
Learn2LikeIt9-Oct-06 10:54 
AnswerRe: Functions Pin
Hamid_RT9-Oct-06 18:32
Hamid_RT9-Oct-06 18:32 
AnswerRe: Functions Pin
Tim Craig9-Oct-06 20:51
Tim Craig9-Oct-06 20:51 
Questiontimers in a console app Pin
eusto9-Oct-06 10:02
eusto9-Oct-06 10:02 
AnswerRe: timers in a console app Pin
led mike9-Oct-06 10:25
led mike9-Oct-06 10:25 
GeneralRe: timers in a console app Pin
eusto9-Oct-06 10:34
eusto9-Oct-06 10:34 
AnswerRe: timers in a console app Pin
Zac Howland9-Oct-06 10:35
Zac Howland9-Oct-06 10:35 
GeneralRe: timers in a console app Pin
led mike9-Oct-06 11:36
led mike9-Oct-06 11:36 
GeneralRe: timers in a console app Pin
Zac Howland10-Oct-06 4:37
Zac Howland10-Oct-06 4:37 

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.