Hi,
How can I associate a file extension with my piece of software we've written from inside our software?
#Define nCLASSES_ROOT 1
LOCAL aFileExt := {'.pdf','.rtf','.doc','.xls'}
AEval(aFileExt, {|a,n|cRet := GetRegistry( nCLASSES_ROOT , a, "" ),;
IF (cRet <> nil .Or. cRet == '',,(;
IF (a == '.pdf',(cMsg += " '.pdf' = PDF File Format(Acrobat Reader)" + CRLF, nFound := n),),;
IF (a == '.rtf',(cMsg += " '.rtf' = RichText File Format(Word Pad) " + CRLF, nFound := n),),;
IF (a == '.doc',(cMsg += " '.doc' = MS Word File Format(MS Office or Sun's OpenOffice)" + CRLF, nFound := n),),;
IF (a == '.xls',(cMsg += " '.xls' = MS Excel File Format(MS Office or Sun's OpenOffice)" + CRLF, nFound := n),);
))})
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 84 guests