CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2001
    Posts
    5

    I think it's an OLE object, but...

    ...I maybe mistaken. What I need is to know how I can produce a Windows - explorer type model for my app. Basically, what I'm doing is allowing the user to save searches he/she makes. A folder is then created, the nam of which is the current date. Inside that folder is stored the saved search file. What the user does to reload a file is select the correct folder (by date), and then select the relevant saved search.
    If anybody knows how to produce the initial folder object, then I'll be very grateful if they could let me know.

    Thanks in advance.

    Knows a little about a lot

  2. #2
    Join Date
    Aug 2000
    Location
    NY, USA
    Posts
    632

    Re: I think it's an OLE object, but...

    You can create a folder by using API. This is an example:

    private Declare Function CreateDirectory Lib "kernel32" Alias "CreateDirectoryA" (byval lpPathName as string, lpSecurityAttributes as SECURITY_ATTRIBUTES) as Long
    private Type SECURITY_ATTRIBUTES
    nLength as Long
    lpSecurityDescriptor as Long
    bInheritHandle as Long
    End Type
    private SecAttr as SECURITY_ATTRIBUTES
    private Sub Command1_Click()
    Call CreateDirectory("c:\TestDirectory", SecAttr)
    End Sub




    Place Command1 on the form and paste this code.
    HTH
    Vlad


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