Results 1 to 6 of 6

Thread: Save file dialog

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    33
    is there anyway to get the save file dialog without adding taht damn ocx....i hate using ocx's so much. ust wondering

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I'm sure the dll's are a bit cooler, commondialogs comes with windows anyway:
    Code:
    Private Declare Function GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As OPENFILENAME) As Long
    Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
    
    Private FileDialog As OPENFILENAME
    
    Private Type OPENFILENAME
            lStructSize As Long '
            hwndOwner As Long '
            hInstance As Long '
            lpstrFilter As String '
            lpstrCustomFilter As String
            nMaxCustFilter As Long
            nFilterIndex As Long '
            lpstrFile As String '
            nMaxFile As Long '
            lpstrFileTitle As String '
            nMaxFileTitle As Long '
            lpstrInitialDir As String
            lpstrTitle As String
            Flags As Long '
            nFileOffset As Integer
            nFileExtension As Integer '
            lpstrDefExt As String
            lCustData As Long
            lpfnHook As Long
            lpTemplateName As String
    End Type
    Just in case you want to play around with it, otherways i could send you my opendialog class
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    That would be nice... Could you please post your class?
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Is this what you are looking for?
    Attached Files Attached Files


    Has someone helped you? Then you can Rate their helpful post.

  5. #5
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    Yes, this is exactly what I was sarching for!

    Thank you very much Manavo!
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    No problem


    Has someone helped you? Then you can Rate their helpful post.

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