Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 Tags
Subject: Probem with VFP7 and Shell DLL on WinNT 4 SP6a
Thread ID: 78978 Message ID: 78978 # Views: 1 # Ratings: 0
Version: Visual FoxPro 7 Category: Operating Systems
Date: Tuesday, October 11, 2005 6:50:03 PM         
   


Colleagues,

There are companies out there who still have their machines running on WinNT 4.0.
We have such a customer with all their departments (except IT) on WinNT 4.0. My program is compiled in VFP 7.0 SP1 on WinNT 5.0 (2K) SP4 machine, and employs Shell library functions SHGetFolderPath and SHGetSpecialFolderPath, that - in theory - belong to Shell32.DLL.

However, when customer's NT4 users tried to run my program, it reported first that it could not find URLMon.DLL... We put together a WinNT 4.0 SP6a box and reproduced this behavior at our Center.
I do not know what all that has to do with VFP 7.0, but I found this DLL on my machine, and transferred it into the EXE's starting directory on our NT4 testing machine. Then VFP was able to launch and my EXE started to run. And then the "fun" hit the fan (:>):

First, EXE reported "Cannot find entry point for SHGetSpecialFolderPath in SHLWAPI.DLL", exactly as it did at customer's. I copied this SHLWAPI.DLL onto the EXE's starting directory on our test NT4 machine - but it did not help. Hence the question #1:

Q1: Why it asks for SHLWAPI.DLL when - if I'm not mistaken - GetFolder and GetSpecialFolder functions belong to Shell32.DLL? (I, of course, declared these functions "IN Shell32.DLL" in the program.) Is this SHLWAPI.DLL some kind of wrapper for Shell32.DLL in NT4?

I, then, sought and found Shell32.DLL on that NT4 machine, but it was ver. 4.00, while the SHGetXXX functions employ CSIDL values declared in Shell32.DLL ver. 4.71 and later. These DLL versions come with Internet Explorer ver. 4.0 and later. I looked up MS IE version on our test NT4 machine - it was version 2.0, so it's undestood why it failed on out test NT4 machine. However, that same customer (according to its IT staff) has MS IE ver. 6.0 installed on its WinNT 4.0 SP6a machines. Hence the question #2:

Q2: Why, regardless of the version of MS IE installed on WinNT 4.0 machine, it looks for the SHGet[Special]FolderPath functions in the wrong DLL file?

And of course,

Q3: What can be done to fix the situation?

TIA!

(On the footnote: I could've copied over Shell32.DLL from my machine into EXE's starting dir on our test NT4 machine but, surely, I cannot ask the customer's IT staff to do the same on all 20+ NT4 WS at their end users departments. Besides, I think it's not advizable to place newer version of a DLL from NT5 machine onto older NT4 machine.)

Regards,

Ilya

ENTIRE THREAD

Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/11/2005 6:50:03 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/11/2005 8:35:00 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/11/2005 9:27:25 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/11/2005 9:46:02 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/11/2005 10:33:30 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ken Murphy @ 10/12/2005 2:16:46 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/12/2005 5:10:18 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ken Murphy @ 10/12/2005 9:23:13 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/12/2005 9:33:01 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ken Murphy @ 10/12/2005 9:54:45 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 12:36:47 AM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ken Murphy @ 10/13/2005 12:38:50 AM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 12:52:43 AM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/12/2005 2:41:31 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/12/2005 6:22:36 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/12/2005 8:38:25 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 12:39:13 AM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 5:22:15 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Yuri Rubinov @ 10/13/2005 5:56:08 PM
RE: Probem with VFP7 and Shell DLL on WinNT 4 SP6a Posted by Ilya Rabyy @ 10/13/2005 6:12:37 PM