MFC & MAPI & EDK Linker Problem

Working in MSVC++ V6. Trying to use MAPI and EDK functions to access/modify the Exchange V5.5 GAL data. Can't seem to get Exchange Development Kit (ExchSDK.lib) to link with my MFC AppWizard app.  I keep getting: 'LINK : fatal error LNK1104: cannot open file "mfc40.lib"'.

I tried adding the sub-libs of ExchSDK.lib, as needed, and using 'Ignore LIBCD', but when I do that I get: 'unrseolved external' on ___argv, ___argc and __mbctype.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

May be a problem with the method you are linking MFC. Are you linking it statically or dynamically? Try both.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Check for the path of the file and check whether U have enough disk space
restart UR system once and try compiling again after this also if U get error check whether UR library is valid
Hope this helps
prangelAuthor Commented:
Sup . . ,


I was trying to link statically. It looks like a dynamic link was the ticket!

Hey, no problem. That's the problem in a lot of linker cases. Keep that in mind. =)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.