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

Dialog Editor
plus
plus
plus
plus

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

Dialog Boxes and CTL3DV2.DLL

Keywords:	 dll ctl3dv2.dll ctl pretty

The interface of the Dialog Boxes is controlled by CTL3DV2.DLL. This is a DLL from Microsoft used to add the 3D effects to controls and boxes. Per Microsoft specs, it MUST be installed in the Windows System directory.

If you have an old DLL, or if the DLL is not in the Windows System directory, your dialog boxes can look strange, or you might possibly receive an error. You can correct this by either turning the 3D effects off, or by making sure the DLL is in the proper place.

To get rid of the 3D effects by telling WinBatch to ignore the DLL:
In the WWWBATCH.INI file add PrettyDialogs=0 to the Main section.

Example:

[MAIN]
prettydialogs=0

If you have several users, you may want to use WinBatch to make this change. To get rid of that ugly CTL3DV2.DLL message, at the top of a script use the function IniWritePvt to change the WWWBATCH.INI file.

Example:

IniWritePvt(""main"", ""prettydialogs"", ""0"", ""c:\windows\wwwbatch.ini"")

You may still receive the error message the first time this script is run. However, the next time the script is run, the change will have already occurred and no error will result.

To Locate the DLL and the Windows System Directory:

Use the following code to figure out where the DLL is and where the Windows System Directory is located. If they match up, then its installed properly.

Example:

	a=FileLocate("CTL3DV2.DLL")
	b=DirWindows(1)
	Message(a,b) 
 

WinBatch tries to install a current copy of CTL3DV2.DLL. If it finds an old version in your Windows System directory it installs the DLL with an extension of NEW. To update to the current version, rename CTL3DV2.NEW to CTL3DV2.DLL and delete the old DLL.

The ctl3dv2.dll file, IF it it exists, MUST MUST MUST be in the c:\Windows\system subdirectory. (The Directory that DirWindows(1) returns).

The common problem is that the windows system directory is on the network and has a search drive mapped to it. That is a no-no.


Article ID:   W12834
Filename:   Dialog Boxes and CTL3DV2.DLL.txt
File Created: 1999:04:15:16:49:58
Last Updated: 1999:04:15:16:49:58