Using Imaging for Windows
after Upgrading to Windows XP

Disclaimer: The information presented here is based solely on my own personal experience. I am not a technical expert or associated with Microsoft, Kodak or Wang in any way other than being a user of their products. I have tried to be as complete and accurate as possible, but I take no responsibility for use of this information by others.

    If you have upgraded to Windows XP from Windows 95 OSR2, 98, ME, NT4 or 2000, you can still use the Wang or Kodak Imaging for Windows (IfW) applications and ActiveX controls if you can access the files listed below. If you installed XP to another folder, thus preserving your previous Windows version, or if you can re-install your previous version of Windows on another partition or computer, you can copy the files to your current \windows\system32 directory as described below. If you no longer have your old Windows version installed, you can extract the files from the CAB files on your original Windows 9x/ME/NT CD. If you have not yet upgraded to Windows XP, I suggest archiving copies of these files in a separate location before performing the upgrade.

Note! Make sure all the files you use are from the same original version of Windows -- 95OSR2 | 98 | 98SE | ME | NT4 | 2000. Mixing file versions may cause problems.

Once you have installed the files, you must register the ActiveX controls as described below before you can use the IfW applications.

Copying Installed Files

Copy the following files from the \Windows\System directory (\System32 in NT):

    Windows 98/ME/NT
        AWCODC32.DLL
        AWDCXC32.DLL
        AWDENC32.DLL
        AWKRNL32.DLL
        AWRESX32.DLL
        AWVIEW32.DLL
        IMGADMIN.OCX
        IMGCMN.DLL
        IMGEDIT.OCX
        IMGSCAN.OCX
        IMGSHL.DLL
        IMGTHUMB.OCX
	JPEG1X32.DLL
        JPEG2X32.DLL
        OIADM400.DLL
        OICOM400.DLL
        OIDIS400.DLL
        OIFIL400.DLL
        OIGFS400.DLL
        OIPRT400.DLL
        OISLB400.DLL
        OISSQ400.DLL
        OITWA400.DLL
        OIUI400.DLL
        XFILEXR.DLL

    Windows 95 OSR2
       (all the above except IMGCMN.DLL & IMGSHL.DLL)
        WANGCMN.DLL
        WANGSHL.DLL

Note: The AW... DLL's are used for fax support and are required by the Wang version, otherwise the OCX's will fail to register (see below.) This is not true for the Kodak version. XFILEXR.DLL is also related to fax support (see imagevue.inf) but may not be required by either version in order to operate otherwise.

The Windows 95 version also uses the common system files mfc40.dll, mfco40.dll, msvcrt40.dll and olepro32.dll, the Windows 98 version uses mfc42.dll, msvcrt.dll, msvcirt.dll, and olepro32.dll, and both versions use twain.dll, twain_32.dll, twunk_16.exe and twunk_32.exe (in the \Windows directory), but you should not need to copy any of these over unless they are not installed with Windows XP.

Copy these files from \Windows\Help:

    Windows 98/ME/NT
        IMGVIEW.CHM
        IMGHELP.CNT
        IMGHELP.HLP
        IMGOCXD.CNT
        IMGOCXD.HLP
        IMGTASKS.CHM

    Windows 95 OSR2
        WANGIMG.CNT
        WANGIMG.HLP
        WANGOCX.CNT
        WANGOCX.HLP
        WANGOCXD.CNT
        WANGOCXD.HLP
        WANGSHL.CNT
        WANGSHL.HLP

(You don't need the .GID files, they will be created when you use the corresponding .HLP files.)

Copy these application files from \Windows:

    Windows 98/ME/NT
        KODAKIMG.EXE
        KODAKPRV.EXE

    Windows 95 OSR2
        WANGIMG.EXE

You may also want to copy IMAGEVUE.INF from \Windows\INF. You can use the information it contains to verify which files are needed or to manually set up registry keys for IfW.

These are all the ones I know about; there may be others. If you find any other files whose property sheets label them as Wang or Eastman Software, you might want to copy them too, just in case.


Extracting from Windows CAB Files

You can extract the necessary Imaging for Windows (IfW) files from the original Windows 9x/ME/NT CD “CAB” files even after you have installed Windows XP. If you are not familiar with this process, you should read the Microsoft knowledge-base article Q129605 (they change these links a lot so you may need to search microsoft.com for the article number or if you need it in another language.)

Essentially what you need to do is find out which CAB files contain the necessary files, then extract them to your hard drive (I recommend using a destination other than your current Windows folder.) You use the extract.exe utility on the original Windows 9x/ME/NT CD (note: version-dependent) for both of these tasks, but since it is a command-line only executable, it's a bit of a pain to do. You may want to create batch files for these steps.

To locate a file, open a DOS-command window (so you can scroll back through the output -- don't use Start|Run !) and call extract.exe with the /a and /d switches, for example:

g:\win98\extract /a /d g:\win98\base4.cab img*.*

Do this for the other files listed above. You will find a few other similarly-named files (imgutil.dll, imagehlp.dll, imgstart.exe, etc.) but as far as I know none of these are needed by Imaging for Windows (actually Windows XP has its own versions of imgutil.dll and imagehlp.dll.)

I have listed below the ones I found on my Windows 95 and 98 CDs. Your source may be different. (Optional files are italicized.)

    \WIN98\PRECOPY2.CAB; \WIN95\PRECOPY2.CAB
        IMAGEVUE.INF

    \WIN98\WIN98_51.CAB
        AWCODC32.DLL
        AWDCXC32.DLL
        AWDENC32.DLL
        AWKRNL32.DLL
        AWRESX32.DLL
        AWVIEW32.DLL
        IMGHELP.CNT
        IMGOCXD.CNT
        IMGTASKS.CHM
        IMGVIEW.CHM

    \WIN98\WIN98_53.CAB
        IMGCMN.DLL
        IMGSHL.DLL
        JPEG1X32.DLL
        JPEG2X32.DLL
  
    \WIN98\WIN98_56.CAB; \WIN95\WIN95_07.CAB
        OIADM400.DLL
        OICOM400.DLL
        OIDIS400.DLL
        OIFIL400.DLL
        OIGFS400.DLL
        OIPRT400.DLL
        OISLB400.DLL
        OISSQ400.DLL
        OITWA400.DLL
        OIUI400.DLL

    \WIN98\WIN98_59.CAB
        XFILEXR.DLL

    \WIN98\WIN98_60.CAB
        KODAKIMG.EXE
        KODAKPRV.EXE

    \WIN98\WIN98_61.CAB
        IMGHELP.HLP
        IMGOCXD.HLP

    \WIN98\WIN98_62.CAB; \WIN95\WIN95_07.CAB
        IMGADMIN.OCX
        IMGEDIT.OCX
        IMGSCAN.OCX
        IMGTHUMB.OCX

    \WIN95\WIN95_06.CAB
        AWCODC32.DLL
        AWDCXC32.DLL
        AWDENC32.DLL
        AWKRNL32.DLL
        WANGIMG.CNT
        WANGOCX.CNT
        WANGOCXD.CNT
        WANGSHL.CNT

    \WIN95\WIN95_07.CAB
        AWRESX32.DLL
        AWVIEW32.DLL
        XFILEXR.DLL
        JPEG1X32.DLL
        JPEG2X32.DLL
        WANGCMN.DLL
        WANGIMG.EXE
        WANGIMG.HLP
        WANGOCX.HLP
        WANGOCXD.HLP
        WANGSHL.DLL
        WANGSHL.HLP

Once you have located all the files, use extract.exe to copy them to your hard drive, for example:

g:\win98\extract g:\win98\win98_62.cab img*.ocx /L c:\ifw

Make sure you place the /L switch immediately before the destination path(!) I definitely would create a little batch or script file to do the extractions.

Although you ultimately will need to copy all the IfW DLLs and OCXs to your Windows XP \system32 directory, I highly recommend initially extracting/copying the entire file set to an archival directory as illustrated so you can back-track more easily if problems arise.


Registering OCX Files

After you install Windows XP (and copy all the IfW DLLs and OCXs to \system32), you will need to register the ActiveX controls (OCX files). The easiest method is to use the Start | Run facility and execute the statement:

regsvr32 imgadmin.ocx

Do this for each of the four OCX files listed above. This should allow you to run wangimg.exe or kodakimg.exe and kodakprv.exe, as well as using the controls in the demonstrations in my ImageEditor workspace or in your own applications. Good luck.


Info:  http://www.parkenet.com/apl/ImageEditor.htm