Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinExec() does not accept a path
Message
From
29/10/1997 07:44:45
 
 
To
28/10/1997 23:58:07
General information
Forum:
Visual C++
Category:
Troubleshooting
Miscellaneous
Thread ID:
00057147
Message ID:
00057172
Views:
30
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform