Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinExec() does not accept a path
Message
De
29/10/1997 07:44:45
 
 
À
28/10/1997 23:58:07
Information générale
Forum:
Visual C++
Catégorie:
Problèmes
Divers
Thread ID:
00057147
Message ID:
00057172
Vues:
35
>1. You must use double quotes instead of single quotes as delimiters for your string. Single quotes are delimiters for single characters.
>2. In C/C++ the backslash char is reserved char used to specify special characters (like an escape code). Here is a short list of special chars (there are many of them :)):
>
>\ -> \\
>CR -> \n
>Tab -> \t
>Ascii code zero -> \0
>
>So, you need WinExec("c:\\windows\\notepad.exe",SW_SHOWNORMAL)...

That is good to know. Thanks.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform