I forgot about that change. Ran across that sometime ago and
made the type change to match COMDLG32.INC.
Thanx,
Cecil

------------------
SUB SaveFile(BYVAL Ask AS LONG) LOCAL zText AS ASCIIZ * 255 LOCAL Path AS STRING, f AS STRING, Buffer AS STRING LOCAL Style AS DWORD LOCAL hFile AS LONG GetWindowText MdiGetActive(hWndClient), zText, SIZEOF(zText) IF zText = "Untitled" THEN Path = CURDIR$ f = "" Ask = %TRUE ELSE Path = FilePath(zText) f = FileNam(zText) END IF Style = %OFN_HIDEREADONLY OR %OFN_LONGNAMES IF ISTRUE(Ask) THEN IF ISFALSE(SaveFileDialog(hWndMain, "Save File", f, Path, _ "Text Files|*.txt|All Files|*.*", "txt", Style)) THEN EXIT SUB END IF END IF ' '8<-- etc..
CASE %IDM_OPEN Path = CURDIR$ f = "*.TXT" Style = %OFN_FILEMUSTEXIST OR %OFN_HIDEREADONLY OR %OFN_LONGNAMES IF OpenFileDialog(hWndMain, "Open File", f, Path, _ "Text Files|*.TXT|All Files|*.*", "TXT", byval Style) THEN hMdi = CreateMdiChild("PBNOTE32", hWndClient, f, 0) ShowWindow hMdi, %SW_SHOW END IF
#Include "C:\PBDLL60\Winapi\commctrl.inc" Local RetVal As Long RetVal = SaveFileDialog(hfrmFileCopy&, "Copy File to...", sDestination, "C:\", "*.*", "*.*",0
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: