View Single Post
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old September 3rd, 2003, 07:15 PM
<x-flowed>
At 04:18 AM 9/3/2003 -0700, you wrote:
>At 02:56 AM 9/3/2003 -0700, you wrote:
>>At 02:28 AM 9/3/2003 -0700, you wrote:
>>>I was wrong. I just checked and every parameter is wrapped in double
>>>quotes. This one needs to be investigated within CVProxy to make sure
>>>it's receiving the right parameters (i.e. all in double-quotes). If so,
>>>then the parameter parser in CVProxy may be fumbling things. If you're
>>>using the parser code I wrote, let me know and I'll take a look at it to
>>>fix this.
>>
>>As I suspected, CVProxy and the other extensions are getting the name of
>>the executable that ISN'T enclosed in double quotes, so if it has spaces
>>it looks like 2 parameters. Sigh... I tried enclosing the name of the
>>executable in ""s before executing it, but that didn't work.
>>
>>I guess a fix in CVProxy is needed. One way would just be to look for
>>cvproxy.exe and ignore everything before that, or we could have Card
>>Vault output something that means "Parameters start here". Any other ideas? :/
>
>So you're saying that the executable, the first parameter on the command
>line, is NOT included within double quotes? Hmmm. Another quality solutoin
>from Microsoft. :-(
>
>Try the following as a fix.....
>
>1. Use the GetModuleFilename API function to retrieve the name of the
>executable (pass in a handle of NULL).
>2. You should be able to strnicmp the command line and the executable.
>3. If so, skip past the length of the executable name within the command
>line, then skip whitespace to the first real parameter.

This worked fine. Thanks


--
Colen McAlister (colen@wolflair.com)
Lone Wolf Development www.wolflair.com



</x-flowed>
Colen is offline   #3 Reply With Quote