From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,31ce6e75e49802e0 X-Google-Attributes: gid103376,public From: "Steve Doiel" Subject: Re: argv and argc access? Date: 1998/09/28 Message-ID: <36104c48.0@news.pacifier.com>#1/1 X-Deja-AN: 395847886 References: X-Mimeole: Produced By Microsoft MimeOLE V4.71.1712.3 X-Trace: 28 Sep 1998 19:56:08 +0700, 216.65.140.153 Newsgroups: comp.lang.ada Date: 1998-09-28T00:00:00+00:00 List-Id: 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 >