Results 1 to 10 of 10

Thread: Visual C++,, callin' another app...

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    in e middle of nowhere..
    Posts
    40

    Smile Visual C++,, callin' another app...

    Hi. i'm a newbie here!!

    can u all pls help me solve my problems??
    1. does anybody know how to read from txt file in Visual C++???
    and
    2. how to go and open other applications when you click a button??? (eg, opening another word application or sth like that)

    (can u all pls explain in beginner terms also .... =P)

    i'm using MFC Dialog Projects....


    thanks a lot!!!
    hope kind souls out there will reply me,,,, i need it urgently 4 my project!! thxxx.....

  2. #2
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    2) To open another program:
    PHP Code:
    ShellExecute(m_hWnd"open""c:\\yourfile.exe",NULL,NULL,SW_SHOWNORMAL); 
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    in e middle of nowhere..
    Posts
    40

    Smile

    thanks a lot!!!!
    it works!!!


  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    1) The FAQ is back online.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    in e middle of nowhere..
    Posts
    40

    Unhappy

    but tat FAQ section doesn't seem to hav answers to my problem!!!

    i've seen da questions, they all askin' about posting messages,,,,

    haiz....

    HELP!!
    SOS!!

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The FAQ of this forum - the topmost post here.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    And for MFC files, look at CFile and derived classes, as well as CFileDialog
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    in e middle of nowhere..
    Posts
    40

    Talking get a dir::

    hi does anyone know how to get a specific directory name
    instead of specifying da exact path????

    like , in vb, we have
    sDemoPath = Environ("yourDirectoryName");

    but wat abt in VC??

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    GetSpecialDirectory retrieves directories such as the local user files, the program files etc.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  10. #10

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    in e middle of nowhere..
    Posts
    40
    thank u cornedbee...
    you're very helpful!!!

    =o)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width