Problem running on Win 98

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Kai Backman
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Mar 16, 2005 9:32 am
Contact:

Problem running on Win 98

Post by Kai Backman »

I'm compiling a wxWidgets (MSW) 2.4.2 application on Windows XP with VC 7.1. When the application is run on Windows 98 it tries to load a function called "SHGetFolderPathW" from Shell32.dll. This function used to reside on shfolders.dll in earlier version of Win and only got moved to Shell32.dll in later updates.

To the best of my knowledge I only use standard wx functions. Wx doesn't seem to use the function directly but it's found in the precompiled header. How do I make my code work on Win98 without compiling specifically on that platform?

Thanks and advance for your help! :)
Kai Backman, programmer
ShortHike Space Settlement Simulation Guild
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

1. Check the *.lib files (minmal windows lib-files needed comctl32.lib uuid.lib rpcrt4.lib wx*.lib)
2. Try to rebuild the library under Win98
3. Try to rebuild the application under Win98
Last edited by T-Rex on Wed Mar 16, 2005 3:26 pm, edited 1 time in total.
ConnorMacLeod
Knows some wx things
Knows some wx things
Posts: 39
Joined: Thu Nov 25, 2004 10:10 am
Location: Germany

Post by ConnorMacLeod »

T-Rex wrote:3. Try to rebuild the application under Win98
You cannot run VC 7.1 on Win98 (VC 6 is possible.).
[wxMSW 2.6.1/VC7.1 .NET 2003/WinXP]
User avatar
T-Rex
Moderator
Moderator
Posts: 1249
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Post by T-Rex »

But exe-files, built with VC7.1 work fine under Win98
mjs
Experienced Solver
Experienced Solver
Posts: 93
Joined: Wed Feb 09, 2005 3:53 am
Contact:

Re: Problem running on Win 98

Post by mjs »

Kai Backman wrote:When the application is run on Windows 98 it tries to load a function called "SHGetFolderPathW" from Shell32.dll.
Recompile your app + wxWidgets in ANSI mode - or use libunicows.

Regards,
Mark
Post Reply