home *** CD-ROM | disk | FTP | other *** search
- // OpenCmm.cmm - Example Cmm source file that uses the simple
- // PickFile.lib interface into the GetOpenFilename()
- // function in Windows' Common dialog DLL
- // (COMMDLG.DLL).
- //
- // This program lets user selecte a source file (default to .cmm)
- // and then start notepad with that file.
-
- #include <PickFile.lib>
-
- FileName = GetOpenFileName("*.cmm","Select a file to edit.");
- if ( FileName ) {
- spawn(P_NOWAIT,"NotePad.exe",FileName);
- }
-