Is it possible to have a DLL without a DLLMain function? What impact would that have, or does it render the DLL unusable?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure, it is possible to have a DLL without a DLLMain. But it won’t be same as a normal DLL.
As an example, Resource DLLs do not need to have code.
In Visual Studio you can have the /NOENTRY option so the linker doesn’t complain about missing references.
From all specification point of view, the file is a complete DLL.