VC ++ Error

Hello people,

I tried using the SolidWorks Add-In AppWizard to create a sample Com AddIn Build Procedure. After accepting the defaults, when I try to build the code, I get this error:

LINK : fatal error LNK1104: cannot open file "mfc42u.lib"

I tried setting all the configurations, but did not help. Can you please let me know, what is wrong?

Thanks,

Sushil.

Reply to
Sushil
Loading thread data ...

You should have "mfc42u.lib" in C:\Program Files\Microsoft Visual Studio\VC98\MFC\Lib otherwise there's something wrong with your install. Which Visual C++/Studio version are you using, BTW?

Philippe Guglielmetti -

formatting link

Reply to
Philippe Guglielmetti

Using Explorer Search to find out the folder containing this lib file. Add the path into VC library directory: Tools->Options->Directories, change the pulldown list to 'Library files', then add the path. Good luck. Vincent

Reply to
Vincent Wang

By default the VC++ install does not place this lib file on your hard drive. If you have the CD in the drive, you will not get the error as it will locate the lib file on the CD. You can manually copy the file to your hard drive and you will be set.

Best Regards,

-- Bob Hanson CEO Custom Programming Unlimited LLC SolidWorks Solution Partner in two categories (SW API training/consulting and SW PDM provider)

formatting link
website (Home of SW API Public Code snippets)

Reply to
Robert V. Hanson

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.