Possible Duplicate:
How to use Rundll32 to execute DLL Function?
Where can I find documentation (tutorials, books, etc.) to write my own dll’s that can be run with rundll32.exe?
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.
Here is the most basic Hello World sample I could come up with that will work with
rundll.exe. Please follow along these steps:Start a fresh WIN32 DLL project in Visual Studio (I used VS2010)
In dlllmain.cpp add:
Add a
module.deffile to your project and edit the following snippet in it:Compile and then test from the commandline with
You should be greeted with a MessageBox with three buttons
I used the following url’s to overcome C++ issues and EntryPoint not found in the early stages of my effort: