Announcement

Collapse
No announcement yet.

Command line parameters in Windows?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Command line parameters in Windows?

    I want to have my Easter Calculating program (see: Source Code Forum) tested by a fellow who does not have PBDLL. So I must send him an executable. But how can I let him use different years? A command line parameter does not appear to be a very handy 'tool' under Windows, although PBDLL60 does support it. Any suggestions?

    Thanks and regards,
    Egbert

    Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
    http://zijlema.basicguru.eu
    *** Opinions expressed here are not necessarily untrue ***

  • #2
    Eh, how about using a textbox and a button in a dialog?


    ------------------

    Comment


    • #3
      An INI file?



      ------------------
      Scott
      mailto:[email protected][email protected]</A>
      Scott Turchin
      MCSE, MCP+I
      http://www.tngbbs.com
      ----------------------
      True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

      Comment


      • #4
        How about the PB/DLL INPUTBOX function?

        ------------------
        Perfect Sync: Perfect Sync Development Tools
        Email: mailto:[email protected][email protected]</A>

        "Not my circus, not my monkeys."

        Comment


        • #5
          You can enter a command-line option if the program is run with the "Run" option from the Start menu.

          You can get it using COMMAND$ or by changing FUNCTION PbMain to:

          <font face="Courier New, Courier" size="3"><pre>
          FUNCTION WinMain (BYVAL hCurInstance AS LONG, _
          BYVAL hPrevInstance AS LONG, _
          lpszCmdLine AS ASCIIZ PTR, _
          BYVAL nCmdShow AS LONG) EXPORT AS LONG
          </pre></font>

          MCM

          PS: Personally, I think this would be a cool place for one of those "up-down" controls to pick the year.




          [This message has been edited by Michael Mattias (edited April 26, 2000).]
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            Thanks fellows,

            I decided to use INPUTBOX$, which is - by the way - not documented in PBDLL60 (had to read the 16-bit compiler documentation to learn about it).

            From a GUI point of view this is not the 'most beautiful girl in the world' but it's good enough for test matters. For those interested, I'll make the executable available on the Basic Guru website (later today).

            ------------------

            Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
            http://zijlema.basicguru.eu
            *** Opinions expressed here are not necessarily untrue ***

            Comment


            • #7
              Or you could have read about it in the Help File errata postings in the FAQ forum...



              ------------------
              Lance
              PowerBASIC Support
              mailto:[email protected][email protected]</A>
              Lance
              mailto:[email protected]

              Comment


              • #8
                For those who want to test my Easter calculations:
                http://www.basicguru.com/files/zijle...l60/easter.zip


                ------------------

                Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
                http://zijlema.basicguru.eu
                *** Opinions expressed here are not necessarily untrue ***

                Comment

                Working...
                X