VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Common Dialog without OCX

Manjula Dharmawardhana  (1 Submission)   Windows System Services   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Hi All,
The Perpose of this Progarm is to Use windows Common Dialog Control Control Without the COMDLG32.OCX file. This will work even if the File is not Present
This is only for Open and Save Functions. But You can append it to get Color and other Dialog Boxes too,
Just Send any comments to
[email protected]
Visit me at
https://www.manjulapra.com
Thank
You

Inputs
The Filter for the Common Dialog The Default Extention for the Common Dialog Optionally the Dialog Titile

Returns
The Path of the Selected File

Side Effects
None Identified

API Declarations
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 strfileName 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

Rate Common Dialog without OCX (13(13 Vote))
Common Dialog without OCX.bas

Common Dialog without OCX Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters