Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute to a C# exe fails - Access is denied
Message
 
 
To
12/10/2006 17:42:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01161572
Message ID:
01161599
Views:
19
>>The ShellExecute works on my pc.
>>
>>here is my code in VFP:
>>
>>
>>declare long ShellExecute in "shell32.dll" ;
>>	long hwnd, string lpszOp, ;
>>	string lpszFile, string lpszParams, ;
>>    string lpszDir, long nShowCmd
>>
>>ShellExecute(0,'Open','c:\temp\mytest.exe',0,0,1)
>>
>>
>>I get no errors and the file test.txt is created.
>
>It worked!!!??? OK. Would you make sure if that file is not a left over from running that exe in command window. Or:
>
>? ShellExecute(0,'Open','c:\temp\mytest.exe',0,0,1)
>
>If it prints over 32 it's fine (and I would start to think what could I have done for it not to work:)
>Cetin

I did erase the test.txt from the previous run, to be sure. I don't understand what you mean by "prints over 32 ..."
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform