CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Cambridge University, U.K.
    Posts
    10

    Is there an API function can create new file with any extension and path?



    Hi: there


    Just a naive question:

    Is there an API function can create new file with any extension and path?


    thanks


    George

  2. #2
    Join Date
    Jan 1999
    Posts
    2

    Re: Is there an API function can create new file with any extension and path?



    This function should do what you are looking for.


    There are several constanst that go with this, you can look them up in the Programmer's Guide to Win32 API.


    Public Declare Function CreateFile& Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As Long)



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