Thread: linking files?

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    142

    linking files?

    i don't know the exact terminology for it so i'm taking a bit out of XLS that i know,

    how do you or can you pass control of a programme to another file?
    WhAtHA hell Is GoInG ON

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    XLS?

    pass control to file?

    What are you talking about?
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    142
    Quote Originally Posted by vart
    XLS?

    pass control to file?

    What are you talking about?
    ok, can't be ........ed explaining it at the moment i'll ask again l8ter
    WhAtHA hell Is GoInG ON

  4. #4
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    do you mean pass control to another program? such as opening Mozilla or Internet Explorer applications from your program?
    My Website

    "Circular logic is good because it is."

  5. #5
    Registered User
    Join Date
    Sep 2005
    Posts
    142
    Quote Originally Posted by DavidP
    do you mean pass control to another program? such as opening Mozilla or Internet Explorer applications from your program?


    yes exactly?
    WhAtHA hell Is GoInG ON

  6. #6
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    There are various ways to do such a thing. Many methods are dependent upon what OS or system you are using.

    The most basic way is:

    system ( char * );

    In other words, in my code I would write:

    system ( "firefox.exe" );

    And it would open firefox. but that isn't really the best way to do things most of the time. I bet there are some good tutorials on this if you google it.
    My Website

    "Circular logic is good because it is."

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    In fact I think there's an FAQ entry. Search for "run program system".

    You could always take code from your other program and use it in your current one, assuming you're running another program that you wrote/have access to the code for.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  2. html link question about linking to files for download
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-01-2004, 01:27 PM
  3. Linking Error Whenever I Tried To Use Header Files
    By javacvb in forum C++ Programming
    Replies: 5
    Last Post: 12-16-2003, 11:46 AM
  4. I Need To Know Some Things That I Can Put Into A Batch File
    By TheRealNapster in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-20-2003, 08:12 PM
  5. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 09:35 AM