Thread: How do i setup Borlands to allow for main arg inport?

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    53

    How do i setup Borlands to allow for main arg inport?

    One line question.

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    int main (int argc, char *argv[])

    One line answer

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    53
    Yeh thats the code. What about the setup with Borlands?

    I have two files. menu.dat and submenu.dat that i want to import into my program via main arg parameters how do i set up borlands to do this.
    Last edited by TonyG; 05-23-2011 at 04:01 AM.

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    What setup?

    When you run the program you type the parameters on the command line.

  5. #5
    Registered User
    Join Date
    May 2011
    Posts
    53
    Thats if i run it in a shell. What about if i hit the run button in borlands.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You mean "How do I setup my IDE to allow it to pass arguments to the program I have written?"

    1. Say which version of Borland you're using.
    2. Have you read the manual?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    May 2011
    Posts
    53
    Borland XE vers 15.0
    If i had time to read the manual i would (honest).

  8. #8
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by TonyG View Post
    Thats if i run it in a shell. What about if i hit the run button in borlands.
    Wellllll... you could try looking in the setup panel and seeing if there's a place to supply comand line arguments...
    I'd bet it's someplace on the Build or Run menus...

  9. #9
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    >>If i had time to read the manual i would (honest).
    Go read. you do have time.
    Honestly we are not here to read things for you and post the answer nicely for you.

  10. #10
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by TonyG View Post
    Borland XE vers 15.0
    If i had time to read the manual i would (honest).
    Now hold on thar hoss... This isn't Borland technical support and, think carefully now...
    I'd bet real money that in the time you've waited for non-answers here, you could have already looked it up twice and snuck out the Kitchen for a cookie.

  11. #11
    Registered User
    Join Date
    May 2011
    Posts
    53
    Ahh that would be if i was just sitting here waiting for a response. Between posts i have been searching the program and help files to try and find my solution. I didn't start this thread without spending a good half an hour trying to work it out. I realize that this isn't Borland technical support but i figured that someone on this board must use it and know the answer. To be honest i thought it would have been a simple question.

  12. #12
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    So you just figured you'd ask 200 or so people to spend their time on it...

    To be honest, we've been making quite an effort to wean people off of Turbo C and Turbo C++ ...
    It's beyond outdated, it's highly non-standard and frankly it wasn't all that good even when it was new.
    Last edited by CommonTater; 05-23-2011 at 04:51 AM.

  13. #13
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Steps:

    1. Learn the name of the Compiler/IDE you are using. "C++Builder XE"
    2. Use Google to find the answer

    https://forums.embarcadero.com/threa...threadID=52540
    Use the Run|Parameters...diaglog box...
    See http://docwiki.embarcadero.com/RADStudio/en/Debugger
    I hope you learn to use Google or you will fail as an programmer.

    How To Ask Questions The Smart Way

    Tim S.
    Last edited by stahta01; 05-23-2011 at 08:50 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why do people still use main() or main(void)?
    By Christopher2222 in forum C Programming
    Replies: 18
    Last Post: 06-06-2007, 06:34 PM
  2. problem while reading inport table
    By Brij in forum Windows Programming
    Replies: 6
    Last Post: 09-16-2006, 07:36 PM
  3. Circular main <- main.o dependency dropped.
    By Queatrix in forum C++ Programming
    Replies: 4
    Last Post: 10-21-2005, 02:32 PM
  4. void main(), int main(), argc, argv[]????
    By Jonny M in forum C Programming
    Replies: 3
    Last Post: 03-06-2002, 09:12 AM
  5. C++ TURBO BORLANDS 4.5 for windows
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 12-05-2001, 09:38 PM