Compile your own DLLProgramWhen calling the dll exe (avidll. dll): 0xc0000005: access violation, why is this problem.
During Internal debugging, we found that the new operator was called.
I don't understand, in the DLL call new operator will have such a problem, search on the network, in the Microsoft msdn Forum (specific address: http://forums.msdn.microsoft.com/zh-CN/vclanguage/thread/951a04be-6b52-4617-b396-9c35e3755759/) to find related issues.
Then, according to the instructions, change the DLL generation method to "shared MFC mode"
Project properties-> General-> Project defaults-> Use of MFC
To set the properties "use MFC in a shared DLL"
In addition, I also found another article on the internet, console. Solution: Use the dynamic link version of the C Runtime Library (ignore all default link libraries in your console project, link to msvcrt. lib) (specific address: http://www.poptool.net/software/p606/A60674501.shtml)
Debug and solve the problem. Thank you!
OK!