Try the function: Win32.Winmain.Get_Lpcmdline Which gives you access to the raw command line. If you want to interpret individual arguments then look to the portable command line interface: Ada.Command_Line. I hope this helps, SteveD J�rgen �hman wrote in message ... >I�m writing an opengl application using ada at my work. The application >needs to use full screen mode (not >just a maximized window). The glut library provides a full screen mode >but to initialize glut i need to pass >the unmodified argv and argc c-parameters to the glutInit procedure. >But how can i access these in ada? >I have seen a couple of examples where they are imported: (something >like) > argc : aliased integer; > pragma Import (C, argc, "gnat_argc"); > >but the linker doesn�t find the name ("link error: LNK2001: unsolved >external gnat_argc) >What am i supposed to do? > >Thanks /J�rgen >