|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Nov 2003
Messaggi: 980
|
(int argc, char *argv[]) in windows
è possibile passare comandi anche con programmi windows?
uso le win32 api e dev-c++ - sotto windows. grazie |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: May 2002
Città: udine
Messaggi: 546
|
basta che richiami l'eseguibile da linea di comando!
__________________
a chi non piace il vino... dio neghi anche l'acqua! ![]() DELL Latitude E4300, iPhone 6 |
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Per i programmi Win32 per console...non ci sono problemi perchè hai il main normale...
Per i programmi a finestre devi usare le API: - da windows 2000 in su: GetCommandLineW da passare a CommandLineToArgvW - per gli altri: GetCommandLine, ma ti devi processare tutta la stringa da solo... Mi raccomando: "It is the caller's responsibility to free the memory used by the argument list when it is no longer needed. To free the memory, use a single call to the GlobalFree function." |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:23.




















