|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: May 2001
Città: Milano
Messaggi: 3197
|
[C]Eseguire file vb6
Ciao a tutti, nel programma che sto sviluppando ho bisogno di includere un file .exe fatto in visual basic, all'interno del form c'è un file OCX che rappresenta un movieplayer.
Da visual c++ ho fatto così: Codice:
if(system("nome_programma.exe")==0) printf("OK\n"); else { printf("Unable to execute nome_programma.exe (check the folder)\n"); getchar(); return 0; } Grazie in anticipo Ultima modifica di Gogeta ss4 : 29-09-2005 alle 14:34. |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
If command is not NULL, system returns the value that is returned by the command interpreter. It returns the value 0 only if the command interpreter returns the value 0. A return value of – 1 indicates an error, and errno is set to one of the following values:
E2BIG Argument list (which is system dependent) is too big. ENOENT Command interpreter cannot be found. ENOEXEC Command-interpreter file has invalid format and is not executable. ENOMEM Not enough memory is available to execute command; or available memory has been corrupted; or invalid block exists, indicating that process making call was not allocated properly. |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: May 2001
Città: Milano
Messaggi: 3197
|
tutto apposto, grazie
![]() |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 15:17.