GetCommandLineA Fails on Vista

  • Thread starter Thread starter Josh Sale
  • Start date Start date
J

Josh Sale

I have a VBA application that makes a Win32 GetCommandLineA call. The code
works fine on all earlier versions of Windows but throws an exception under
Vista. GetCommandLineW doesn't fail but I end up with extra spaces in the
returned data.

Any suggestions?

TIA

josh
 
You could try GetCommandLineW which works fine for me with Vista and Visual
Studio C++. You could then convert to ANSI characters if needed.
G
 
Back
Top