79409142

Date: 2025-02-03 14:44:24
Score: 2
Natty:
Report link

Visual Studio 2022. Curiously this happens in an ATL with MFC project if the generated project_i.c is compiled prior to dllmain.cpp. The fix is to open the project file project.vcxProj in a text editor like Notepad++, find the ItemGroup containing the C/C++ files, and make sure dllmain.cpp is at the top.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kirk Bates