Click here to Skip to main content
15,918,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to remove a folder and all its contents Pin
piul30-May-08 0:25
piul30-May-08 0:25 
QuestionRe: How to remove a folder and all its contents Pin
CPallini30-May-08 0:32
mveCPallini30-May-08 0:32 
AnswerRe: How to remove a folder and all its contents Pin
piul30-May-08 0:44
piul30-May-08 0:44 
GeneralRe: How to remove a folder and all its contents Pin
CPallini30-May-08 0:59
mveCPallini30-May-08 0:59 
GeneralRe: How to remove a folder and all its contents Pin
piul30-May-08 1:05
piul30-May-08 1:05 
AnswerRe: How to remove a folder and all its contents Pin
vijay_aroli30-May-08 0:59
vijay_aroli30-May-08 0:59 
AnswerRe: How to remove a folder and all its contents Pin
Michael Schubert30-May-08 1:43
Michael Schubert30-May-08 1:43 
AnswerRe: How to remove a folder and all its contents Pin
David Crow30-May-08 3:17
David Crow30-May-08 3:17 
AnswerRe: How to remove a folder and all its contents Pin
ThatsAlok20-Jul-09 1:01
ThatsAlok20-Jul-09 1:01 
QuestionVisual Studio 2005 intellisense now showing all the elements Pin
ComplexLifeForm29-May-08 23:32
ComplexLifeForm29-May-08 23:32 
AnswerRe: Visual Studio 2005 intellisense now showing all the elements Pin
Ahmed Charfeddine30-May-08 2:11
Ahmed Charfeddine30-May-08 2:11 
QuestionRe: Visual Studio 2005 intellisense now showing all the elements Pin
David Crow30-May-08 3:19
David Crow30-May-08 3:19 
QuestionDrawing a Japanese string onto a dialog Pin
V K 229-May-08 23:03
V K 229-May-08 23:03 
GeneralRe: Drawing a Japanese string onto a dialog Pin
ShilpiP29-May-08 23:40
ShilpiP29-May-08 23:40 
GeneralRe: Drawing a Japanese string onto a dialog Pin
V K 230-May-08 1:04
V K 230-May-08 1:04 
QuestionRe: Drawing a Japanese string onto a dialog Pin
ShilpiP30-May-08 1:13
ShilpiP30-May-08 1:13 
AnswerRe: Drawing a Japanese string onto a dialog Pin
V K 230-May-08 2:21
V K 230-May-08 2:21 
Questionhndling of controls in smart device Pin
waquasalig29-May-08 22:55
waquasalig29-May-08 22:55 
QuestionRe: hndling of controls in smart device Pin
David Crow30-May-08 3:20
David Crow30-May-08 3:20 
Questionuser control Pin
subramanyeswari29-May-08 22:24
subramanyeswari29-May-08 22:24 
AnswerRe: user control Pin
subramanyeswari29-May-08 23:06
subramanyeswari29-May-08 23:06 
AnswerRe: user control Pin
ShilpiP29-May-08 23:50
ShilpiP29-May-08 23:50 
AnswerRe: user control Pin
David Crow30-May-08 3:21
David Crow30-May-08 3:21 
GeneralRe: user control Pin
subramanyeswari30-May-08 3:32
subramanyeswari30-May-08 3:32 
QuestionShellExecute swallowing empty parameter Pin
mav.northwind29-May-08 21:29
mav.northwind29-May-08 21:29 
Hi guys!

I got a really strange behaviour on one customer machine I really cannot figure out - perhaps someone can help...
A C++ plugin DLL of mine loaded into a third party application is calling one of my .NET applications using ShellExecute. Several arguments are passed along in this call, the last one being an empty string. Basically the call looks like this:
ShellExecute(AfxGetMainWnd()->GetSafeHwnd(), NULL, "C:\\Program Files\\MyApp\\MyApp.exe", "/arg1 /arg2 /arg3 \"argument3\" /arg4 \"\"", "C:\\Program Files\\MyApp", SW_SHOW);

/arg1 and /arg2 are simple flags for my .NET app, whereas /arg3 and /arg4 require an additional parameter. The parameter for /arg4 is supposed to be an empty string for this call.

The exact same version of this DLL works fine on many other machines, but on this particular one my .NET application won't start because it claims that the parameter for /arg4 is missing! I'm logging the arguments my application is called with and can see that the last parameter is missing, although the empty string is hard-coded inside the DLL and it works on every other machine I've come across so far.

What can be the reason for ShellExecute silently swallowing the last parameter?

Thanks in advance for every idea about how to proceed here...

Regards,
mav

--
Black holes are the places where God divided by 0...

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.