Hi everyone. Please could anyone tell me where I am going wrong in this code. I have a webcam connected that captures the a pic through this code. When I execute the code it does not save it to the file and folder path I have set. It comes up with the c:\my Documents Save dialog box.
(Code)
Private Sub mnuSaveFrame_Cl ick()
Dim FileName As String
Dim retVal As Boolean
retVal = VBGetSaveFileNa me(FileName = "c:\Program files\Sg\Pic Men\Men1.bmp", _
filter:="DIB Bitmap Files (*.bmp)|*.bmp", _
DlgTitle:="Save Picture", _
DefaultExt:="bm p", _
Owner:=Me.hWnd)
If False <> retVal Then
retVal = capFileSaveDIB( hCapWnd, FileName)
If True <> retVal Then
MsgBox "Problem saving frame", vbInformation, App.Title
End If
End If
End Sub
Thanks
(Code)
Private Sub mnuSaveFrame_Cl ick()
Dim FileName As String
Dim retVal As Boolean
retVal = VBGetSaveFileNa me(FileName = "c:\Program files\Sg\Pic Men\Men1.bmp", _
filter:="DIB Bitmap Files (*.bmp)|*.bmp", _
DlgTitle:="Save Picture", _
DefaultExt:="bm p", _
Owner:=Me.hWnd)
If False <> retVal Then
retVal = capFileSaveDIB( hCapWnd, FileName)
If True <> retVal Then
MsgBox "Problem saving frame", vbInformation, App.Title
End If
End If
End Sub
Thanks
Comment