On 22/04/2013 18:17, Nagrik wrote:
> Hello Group,
>
> I am just a beginner in learning win32 api. The winmain
>
> int APIENTRY _tWinMain(HINSTANCE hInstance,
> HINSTANCE hPrevInstance,
> LPTSTR lpCmdLine,
> int nCmdShow)
>
> takes 4 arguments. When I run this programme in visual studio, I am
> not passing any arguments on command line. I am comparing it with C/C+
> + main, where if you use main, which takes two arguments the user has
> to pass those arguments on the command line. But this is not the case
> over here.
They don't HAVE to pass the parameters on the command line, but if they
do, they'll be available in arg*.
With _tWinMain, the command line parameters (if any) will be passed as
lpCmdLine.
The others parameters have meanings, but in most cases can be ignored if
you don;t need them.
--
Deanna Earley (
dee.e...@icode.co.uk)
iCatcher Development Team
http://www.icode.co.uk/icatcher/
iCode Systems
(Replies direct to my email address will be ignored. Please reply to the
group.)