Click here to Skip to main content
15,885,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

I am beginner in MFC, I was trying to use a dll in MFC, in another MFC dialog based application.
I have changed the following project properties.
1. Project->c/C++->General->Additional include directories
Add my dll project's .h file path.
2. Linker->Input->Additional Dependencies
Gave the library name.
3. Copied .lib and .dll files to the project folder
But still I am getting an error like
"fatal error LNK1107: invalid or corrupt file: cannot read at 0x310".

I hope someone could help me.
Thanks in advance.
Posted

1 solution

Looking at the documentation[^], I suspect you passed the .dll file to the linker. You should instead pass the.lib file.
 
Share this answer
 
Comments
Utheen 30-May-14 3:57am    
Thank you, I made the same mistake.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900