Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


hCompatible and Determining if Machine has WININET.DLL

Keywords:   WININET.DLL hCompatible

Question:

I'm using the HTML extender, but before running the HTML code, the machine complains about not being able to see the WWHTM34I.DLL, even though in Explorer it can be seen, and everyone has the same rights issued at the container level. Seems to be only Win95A machines, not B,orC or 98 or NT4.

And hCompatible returns true.

What good does the hCompatible function do if you can't check machines that are not compatible??? My intention was to load the extender and check compatibility. If not compatible - as a 95 machine would be (here, no IE) , I would just go on with the rest of the program. If it is compatible, and the user wished to, it runs another wbt (the HTML one) and ends the current one.

Answer:

The Microsoft DLL we connect to, wininet.dll, comes in older versions. hCompatible tests to see if wininet.dll is new enough. We need the version that comes with MSIE 4.0. We can't load the extender if the correct wininet.dll file is not there.

You could try:

	a=FileLocate("wininet.dll")
	if a==""
		Message("Eeep","Don't even try to load the extender")
		exit
	endif

Article ID:   W12523
Filename:   hCompatible.txt