"Philip Morley" <> wrote in message
news:...
> I want my C++ executable to return the full path it was executed from on a
> Windows box using Microsoft Visual C++.
>
> In the past on Unix systems I have used argv[0], but on Windows argv[0]
> seems to return the DOS command, not the full path.
>
> Any suggestions on how to do this with Visual C++ would be appreciated.
>
Sorry it is offtopic here.
Please ask such questions on microsoft.public.vc.language newsgroup.
<offtopic>
Since I know the answer -
GetModuleFileName ()
</offtopic>
--
With best wishes,
J.Schafer
|