Ok, I thank you all, I´m going to try.



> Mensagem Original:
> Data: 07:20:12 19/10/2008
> De: David Hamill <[EMAIL PROTECTED]>
> Assunto: Re: [c-prog] chamar programa externo

>>    Do you have a small example on how to do it? The
>> function of my
> program would be only to call the extarnal program
> (notepad,iexplore).
>
>
> This works for me (run from a command line window in WinXP):
>
>   #include <stdio.h>
>   #include <stdlib.h>
>
>   int main(void)
>   {
>     puts("Opening Notepad...");
>     system("notepad.exe");  /* opens new window */
>     puts("Back from Notepad");
>
>     return 0;
>   }
>
> This program appears to hang until the Notepad window is
> closed, because it's waiting for the system() call to
> return. If this is not what you want, you'll need to start a
> child process for Notepad. This is considerably more
> complicated.
>
> David
>
>



-- 
jmthug
--------------------------------------------------------------------------------
Na Oi Internet você ganha ou ganha. Além de acesso grátis com
qualidade, você pode ter contas ilimitadas de email com 1 giga cada uma,
suporte grátis e muito mais. Baixe grátis o Discador Oi em
http://www.oi.com.br/discador e comece a ganhar.

Agora, se o seu negócio é voar alto na internet,
assine Oi Internet Banda Larga e ganhe o modem grátis. Clique em
http://www.oi.com.br/bandalarga e aproveite essa moleza!


Reply via email to