Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
What does this mean and how do I fix it??

1>C:\dllmain.cpp : warning C4747: Calling managed '_DllMain@12': Managed code may not be run under loader lock,
including the DLL entrypoint and calls reached from the DLL entrypoint
1>.NETFramework,Version=v4.0.AssemblyAttributes.cpp


What I have tried:

I have successfully written a "C" DLL, and each time I compile all of the DLL file components, I still get this warning statement. How can I get rid of this warning? But all of the DLL APIs still work.

Thanks in advance.
Posted
Updated 24-Oct-23 0:48am
v2
Comments
jeron1 23-Oct-23 18:05pm    
Try what is on following link.
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4747?view=msvc-170
Maciej Los 4-Nov-23 14:02pm    
Please, post it as an answer.
samthelab 24-Oct-23 15:53pm    
It canceled the warning of C4747. thx.

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