![[File Conversion]](aci.gif)
FAX: (US)-585-385-6822
EMAIL: click hereWpConv.DLL. Not all of these files may be required. These files are listed later, and you may remove the ones that you do not need.extern "C" __declspec(dllimport) BOOL __stdcall detfile ( const char FAR* lpszFileName, char FAR* lpszShortForm, char FAR* lpszLongForm);The function arguments are:
WpConv.DLL if applicable.Private Declare Function detfile Lib "detfile.dll" ( _ ByVal FileName As String, _ ByVal ShortForm As String, _ ByVal LongForm As String) _ As Integerwhere the arguments correspond to the descriptions given above.
lpszShortForm. The possible keywords returned in lpszShortForm are:| KEYWORD | Description |
| !EMPTY | -- Empty file -- |
| !FERR | ** File Open Error ** |
| !UNK | -- Could not identify -- |
| 123/2- | Lotus 1-2-3 1.x/2.x, Symphony 1.x/2.x or compatible spreadsheet |
| 123/3 | Lotus 1-2-3 3.x, Symphony 3.x or compatible spreadsheet |
| ABIL | Ability file |
| ALPHA | Alpha Works/Electric Desk document |
| AMDRAW | Ami Professional Draw file |
| AMI | Ami Pro document |
| ASC | ASCII (Dos text) file |
| BACKUP | File produced by Dos Backup |
| BROTD | Brother Word Processor (Daisy Wheel) |
| BROTN | Brother Word Processor (U.S. Notebook) |
| BROTU | Brother Word Processor (U.K. Notebook) |
| BROTF | Brother Word Processor (French Notebook) |
| BROTG | Brother Word Processor (InkJet) |
| CCOM | Complete Communicator/PC Switchboard fax file |
| CRLDRWx | Corel Draw version x file (x = 3, 4 or 5) |
| DBASE2 | dBase-II data file |
| DBASE3+ | dBase-III or dBase-IV data file |
| DBINX | dBase (or compatible) Index file |
| DBMEMO | dBase Memo file |
| DSW | IBM DisplayWrite document |
| DWA/PTS | IBM DisplayWrite Assistant or PTS document |
| ENABx | Enable WP document (version x = 1, 2, 3 or 4) |
| EXE | MS-Dos Executable program |
| FFT | IBM DCA (FFT) file |
| FXINX | FoxPro data base index file |
| FXMEMO | FoxPro data base Memo file |
| FXPRO | FoxPro data base |
| GEOWR | GeoWrite file |
| GEOCAL | GeoCalc file |
| HTML | HyperText Markup Language |
| IWA | IBM Writing Assistant document |
| LEWP | Leading Edge WP document |
| LMx | Lotus Manuscript document (version x = 1 or 2) |
| M11D | Mass-11 document |
| M11F | Mass-11 folder file |
| MSAC | Microsoft Access data base |
| MSPP | Microsoft PowerPoint Presentation |
| MSPUB | Microsoft Publisher document |
| MSWDxy | MS Word version x.y for Dos (x.y = 3.0, 4.0, 5.0, 5.5) |
| MSWKWx | Microsoft Works version x WP document |
| MSWKSx | Microsoft Works version x spreadsheet |
| MSWKDx | Microsoft Works version x data base |
| MSWR | Microsoft Write for Windows document |
| MSWWx | Microsoft Word for Windows x.0 document (x = 1, 2, 6, 7, 8) |
| MSWW2K | Microsoft Word 2000 or higher document |
| MSXL | Microsoft Excel Spreadsheet |
| MULx | Multimate document (version x) |
| MULxF | Multimate footnotes file (version x) |
| MYM | Managing Your Money data file |
| OFCPWR | OfficePower/PC document |
| OFW4- | OfficeWriter document (version 4 or earlier) |
| OFWx | OfficeWriter document (version x = 5 or 6) |
| OLE | Microsoft Windows Compound (OLE) file |
| PFSFC | pfs:First Choice document |
| PFSPW | pfs:Professional Write document |
| PFSW1 | pfs:Write 1.x document |
| PFSW2 | pfs:Write 2.x (Spinnaker) document |
| PFSWWD1 | pfs:WindowWorks (Spinnaker) document |
| PFSWWD2 | pfs:WindowWorks (SoftKey) document |
| PFSWWS1 | pfs:WindowWorks (Spinnaker) spreadsheet |
| PFSWWS2 | pfs:WindowWorks (SoftKey) spreadsheet |
| RFT | IBM DCA (RFT) file |
| RTF | Microsoft Rich Text Format |
| SAMNA | Samna Word/Plus document |
| SC4 | SuperCalc-4 spreadsheet |
| SPJ | SuperProject Plus data file |
| VENPUB | Ventura Publisher file |
| WANG | Wang-IWP document |
| WMC | WordMarc Composer document |
| WPF4 | WordPerfect 4.1 or 4.2 document |
| WPFxy | WordPerfect x.y document (Dos or Windows, x.y = 5.1, 5.2, 6.0, 6.1) |
| WPF7 | WordPerfect (Corel) version 7, 8, 9, 2000 or higher |
| WPRO | Lotus WordPro |
| 2WS | WordStar-2000 document |
| WSxy | WordStar document (version x.y = 5.0, 5.5, 6.0 or 7.0) |
(!) in the first character of the returned lpszShortForm keyword.extern "C" __declspec(dllimport) int __stdcall WpConv ( const char FAR* lpszSourceFormat, const char FAR* lpszSourceFileName, const char FAR* lpszDestFormat, const char FAR* lpszDestFileName, const char FAR* lpszConfFileName, const char FAR* lpszScratchPath, const char FAR* lpszMeterName);The function arguments are:
detfile may directly be passed as this parameter provided it is supported by the conversion engine. The source format keywords supported by the conversion engine are listed later.WpConv is called..DLL is assumed). If no meter is required, this argument may be passed as null or an empty string.Private Declare Function WpConv Lib "WpConv.dll" ( _ ByVal SourceFormat As String, _ ByVal SourceFileName As String, _ ByVal DestFormat As String, _ ByVal DestFileName As String, _ ByVal ConfFileName As String, _ ByVal ScratchPath As String, _ ByVal MeterName As String) _ As Integerwhere the arguments correspond to the descriptions given above.
0: normal return 1: unrecognized source format keyword 2: unrecognized destination format keyword 3: could not create or open CONV_LOG.TXT on scratch drive 4: could not write to or close CONV_LOG.TXT on scratch drive 5: could not open a system configuration file 6: one or more error(s) in configuration file(s) 7: could not open WX.DTA 8: could not create scratch file(s) on scratch drive 9: could not open scratch file(s) on scratch drive 10: could not write to or close scratch file(s) 11: could not open source document 12: source file is not in the specified format 13: some other source file discrepancy 14: could not create new destination file 15: error writing or closing destination file 16: some other destination file discrepancy 17: insufficient memory 18: a required DLL is missing 19: a required DLL is corrupted 20: unusual error, normally would never occur 21: license type error
WpConv is installed, and pass "GMETER" as the lpszMeterName argument to WpConv. You do not have to do anything else.GMETER.DLL as described above. This will display a simple progress meter centered on the screen every time a file is being converted. Once the file has been fully converted, the meter disappears.WpConv.DLL to make (create) the progress meter window. WpConv.DLL passes character strings to this function, representing the source and destination file names and formats. Your meter DLL may use these as part of the progress meter display, or ignore them. This function should return TRUE if the progress meter was successfully created, else it should return FALSE.WpConv.DLL repeatedly with a single integer argument representing the percentage of conversion completed (0 to 100). This function should update the progress window to show the new percentage of conversion. No return value is expected.WpConv.DLL after a file has been converted, in order to remove the progress meter window from the screen. No argument is passed, and no return value is expected.extern "C" __declspec(dllimport) BOOL make_meter ( const char FAR* lpszSourceFile, const char FAR* lpszSourceFormat, const char FAR* lpszDestFile, const char FAR* lpszDestFormat); extern "C" __declspec(dllimport) void meter (int iPercent); extern "C" __declspec(dllimport) void kill_meter (void);The arguments to these functions are:
WpConv DLL, but also directly by your application. This lets the progress meter window interact not only with the user and the conversion DLLs, but also with your host application. When configured in this manner, your meter DLL should still provide the function meter exactly as described above. However, you may elect to remove the functions make_meter and kill_meter, and instead include in your DLL other (differently-named) functions (called directly by your host application) to create and destroy the progress meter window.CONV_LOG.TXT, and is placed in the scratch drive and directory passed as the lpszScratchPath argument to WpConv. In the case of a multiply instantiating autoserve license, the log file is called Conversion Log n.txt, where n stands for the instantiation number. The log file is created in the append mode, so the log accumulates over successive calls to WpConv, as well as over successive host application sessions. To display only the log for a single session, your application must delete a previously existing log (if any).WX.CF and/or an additional "user-specified" customization file specified by the lpszCustFileName parameter in the WpConv call. To take advantage of these features, please consult the Advanced Usage section of the WordPort user manual.WpConv DLL. They are also used to support filetype-specific customization as described in the Advanced Usage section of the WordPort user manual.detfile may be passed directly to WpConv to specify a source file format if it is supported by the conversion package. However, not all file formats can be autorecognized, or you may have opted not to use autorecognition. In any case, following is a list of the source format keywords recognized by the conversion DLLs, and the subsidiary DLL required for each format.================================================================= KEYWORD FILE FORMAT SUBSIDIARY DLL ----------------------------------------------------------------- ASC-D ASCII (Document-oriented) iascd.dll ASC-L ASCII (Line-oriented) iascl.dll AMI Ami Pro iami.dll DSW* DisplayWrite idsw.dll DWA* DisplayWrite Assistant ipts.dll ENAB* Enable WP ienab.dll GEOWR GeoWrite igeo.dll INSCR InterScript iinsc.dll IWA Writing Assistant ipfs.dll LEWP Leading Edge WP ilewp.dll LM* Lotus Manuscript ilm.dll M11D Mass-11 imass11.dll MSWD* MS Word for Dos imswd.dll MSWKW* MS Works (WP) imswk.dll MSWM* MS Word for Macintosh imswm.dll MSWR MS Write (Windows) imswd.dll MSWW* MS Word for Windows imsww.dll MSWW8 MS Word 8 (Office 97) imsww8.dll MSWW2K MS Word 2000 (Office 2000) imsww8.dll MUL?D Multimate imul.dll NB* Nota Bene ixy.dll PCW PC Write ipcw.dll PFS* pfs:First Choice/Write/ProWrite ipfs.dll PFSFC* pfs:First Choice ipfs.dll PFSPW* pfs:Professional Write ipfs.dll PFSW2 Spinnaker Write ipfs.dll PTS Personal Typing System ipts.dll RFT DCA/RFT (Revisable Form Text) idsw.dll RTF Microsoft Rich Text Format irtf.dll SAMNA Samna Word/Word Plus isamna.dll SIGN Signature ixy.dll TW Total Word itw.dll WPF4* WordPerfect 4.x iwpf4.dll WPF5* WordPerfect 5.x (Dos/Windows) iwpf5.dll WPF6* WordPerfect 6.x (Dos/Windows) iwpf6.dll WPF7* WordPerfect 7 (Corel) iwpf6.dll WPF8* WordPerfect 8 (Corel) iwpf6.dll WS* WordStar 3.x - 7.0 iws.dll 2WS* WordStar 2000 iws2.dll XY2 XyWrite-II ixy.dll XY3 XyWrite-III ixy.dll XY4 XyWrite-IV ixy.dll =================================================================Wildcard characters "*" and "?" are permitted in source format keywords, and they carry the same significance as in Dos file names. Specifically, "*" may be used as the last character of a source format keyword to match revision or sub-revision numbers as long as all the matching revision levels are handled by the same subsidiary DLL. So, for example, either WPF51 or WPF5* may be used to read a WordPerfect 5.1 file, and the keyword WPF5* may be used to read WordPerfect 5.0, 5.1 and 5.2 files since they involve the same subsidiary DLL. However, the keyword WPF* cannot be used to match all WordPerfect revisions from 4.x through 6.x, since the different major revision levels are handled by different subsidiary DLLs.
================================================================= KEYWORD FILE FORMAT SUBSIDIARY DLL ----------------------------------------------------------------- AMI Ami Pro oami.DLL ANSI-D ANSI (document-oriented) oascd.DLL ANSI-L ANSI (line-oriented) oascl.DLL ANSI-P ANSI (printer-oriented) oascd.DLL ASC-D ASCII (document-oriented) oascd.DLL ASC-L ASCII (line-oriented) oascl.DLL ASC-P ASCII (printer-oriented) oascd.DLL DSW~ DisplayWrite (~=2,3,4,42,5) odsw.dll ENAB~ Enable WP (~=1,2,3,4) oenab.dll HTML HyperText Markup Language ohtml.dll INSCR InterScript oinsc.DLL LM2 Lotus Manuscript 2.0/2.1 olm.DLL M11D Mass-11 (native) omass11.dll M11E Mass-11 (export) omass11.dll MSWD~ MS Word/Dos (~=3,4,50,55) omswd.dll MSWKW~ MS Works WP document (~=1,2,3,4) omswk.dll MSWR MS Write (Windows) omswd.dll MSWW2 MS Word for Windows 2.0 omsww2.DLL MSWW6 MS Word for Windows 6.0 omsww6.DLL MSWW7 MS Word for Windows 7.0 omsww6.DLL MSWW8 MS Word 8 (Office 97) omsww6.DLL MSWW2K MS Word 2000 (Office 2000) omsww6.DLL NB~ Nota Bene (~=2,3,4) oxy.dll RFT DCA/RFT (Revisable Form Text) odsw.dll SIGN Signature oxy.dll WPF5~ WordPerfect 5.x (~=0,1,2) owpf5.DLL WPF6~ WordPerfect 6.x (~=0,1) owpf6.DLL WPF7 WordPerfect 7 (Corel) owpf6.DLL WPF8 WordPerfect 8 (Corel) owpf6.DLL WS~ WordStar (~=3,4,50,55,6,7) ows.DLL 2WS~ WordStar 2000 (~=1,2,3) ows2.dll XY~ XyWrite (~=2,3,4) oxy.dll =================================================================Note that wild card characters "*" and "?" are not allowed in destination format keywords. Specifically, this means that you must exactly the version of the destination word processor you wish to convert to.
detfile and WpConv functions, and call these functions by clicking a button. It then displays the returned results and codes. It does not perform any error-checking on its own, so it reflects exactly the performance of these DLLs in your particular environment.Ixxxxxxx.DLL read various file types, while those of the form Oxxxxxxx.DLL write to various file types. These are called subsidiary DLLs. Of these, you need install only those that are required to read or write the formats you are interested in. See the earlier sections Source Format Keywords and Destination Format Keywords for a detailed list of these files.DETFILE.DLL and WpConv.DLL at compile/link time. They are not required at run time, and are not required by all environments.