I am using Bob Tabors beginning C# video series and get the following error when I run the application.
Warning 1 Invalid search path 'C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' Lesson09
I don't have such a path on my hard drive. Where do I change the path and what do I change it to
Thanks, Roger

invalid search path
raj.ramesh
I had the same problem with VS 2005:
"Invalid search path..... vc98\mfc\lib' specified in 'LIB environment variable'" We never installed VC98 so those directories were never created.
I tried the above solution (and others) but nothing seemed to work. After following some links I read about the set command in the command prompt. Go to the VS 2005 command prompt and type "set" you will see all the settings. LIB is one of the settings.
Using the SET command I removed all references to the VC98 directory in ALL the settings. (I actually completely removed the LIB setting.)
To copy the settings into a file:
-- Type "Set > c:\MySettings.txt".
NOTE: I found that the new settings did not take effect until I rebooted.
Everything now compiles beautifully.
Fred
kmoreto
for those of you trying to resolve this here is what I found:
To make this short: goto the \\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;
and remove the mscoree LIB file - V C# doesn't seem to need it.
Here's the snippet of info I found on another site that help me resolve this.
If you run msbuild from a generic cmd.exe window,
for some reason msbuild itself adds vs2003 directories to the lib
variable. So I simply went to vsvars32.bat file in the vs2003 folder
structure and removed the ...VC7\ATLMFC\LIB folder from it (since I
don't even have it) and it all compiles fine no warnings.
The LIB env var in various command windows is thus:
cmd.exe
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
vs2005 command prompt
C:\Program Files\Microsoft Visual Studio 8\VC\LIB;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
vs2003 command prompt (i have that installed as well)
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB;
C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\PlatformSDK\lib\prerelease;
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib;
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\