WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

CTL3D

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

The CTL3D.DLL (Control-3D Dll) Problems

Keywords: ctl3d ctl3d32 ctl3dv2  

If you are getting an error message about CTL3D32.DLL or CTL3D.DLL not being loaded correctly when you try to start your application, with a message like:

	Ctl3d.dll is not installed correctly 

Basically, the problem is that the DLL is whining about not being located in the proper Windows/System subdirectory, or not being the correct version to use with WinBatch. To make sure you've got the correct version, you could rename the CTL3Dxx.DLL in your Windows/System directory, and then reinstall WinBatch. If you have another copy of CTL3Dxx.DLL in your Windows directory, then rename that to *.OLD, or delete it altogether.

To get rid of the message and solve the problem, try the following:

  1. Have only one copy of the CTL3Dxx.DLL file on your system.
  2. CTL3Dxx.DLL must be in the Windows/System subdirectory (* see below).

If you still have a problem, here is what is going on. When the ctl3dxx.dll is loaded, it sees where it got loaded from. If it does not match its idea of the windows/system subdirectory, then it whines. Things that confuse it are:

  1. SUBST'ing a drive letter to your Windows/System subdirectory, and having this drive in your path statement. This sometimes occurs when people try to shorten directory names in the path statement by subst'ing drives and using the drive:\ in the path statement, instead of c:\windows\system.
  2. A networked connection to a directory that contains the DLL, and the networked drive is either in the path statement or a Novell search drive.

So, in general, if there is more than one way the system can find the file (other than going in via c:\windows\system) then the potential exists for WinBatch to get confused.

The following code, either a a WinBatch script or a Winbatch Studio Popup menu item will shed a little light on the situation.

a=FileLocate("ctl3d32.dll")    ; Or the exact name of the dll you are dealing with
b=DirWindows(1)
a=FilePath(a)
Message("3D DLL Path = %a%","Windows System = %b%")

The two directories MUST be the same. Not logically the same, but character for character the same.


Article ID:   W12802
Filename:   CTL3D not installed correctly.txt
File Created: 2001:01:08:12:06:46
Last Updated: 2001:01:08:12:06:46