PDA

Click to See Complete Forum and Search --> : Save file dialog


firemonke5
Jun 30th, 2000, 10:41 PM
is there anyway to get the save file dialog without adding taht damn ocx....i hate using ocx's so much. ust wondering

kedaman
Jul 2nd, 2000, 04:37 AM
I'm sure the dll's are a bit cooler, commondialogs comes with windows anyway:

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 ;)

Tec-Nico
Sep 7th, 2003, 07:45 PM
That would be nice... Could you please post your class? :)

manavo11
Sep 7th, 2003, 08:04 PM
Is this what you are looking for?

Tec-Nico
Sep 8th, 2003, 10:28 AM
Yes, this is exactly what I was sarching for!

Thank you very much Manavo!

manavo11
Sep 8th, 2003, 04:14 PM
No problem ;)