CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: File

  1. #1
    Join Date
    May 2001
    Location
    Noida,UttarPradesh,India
    Posts
    2

    File

    Most of the API functions for files demand a file number.If i want to use these functions, how can i get the file no of a file selected with a commann dialog box?


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: File

    You can use the openfile API for that. This function gives you a token to the file opened. One of the parameters if the filename. The filename can be retrieved by the ShowOpen (or ShowSave) method from the commondialog.



    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: File

    The OpenFile() API function is provided only for compatibility with 16-bit versions of Windows. Win32-based applications should use the CreateFile() function.


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

Featured