Hi Experts...
I would like to know whether it is possible to convert exe to dll and dll to exe..
Thanks in advance..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shilpa AgrawalPosted Jul 31, 2012, 7:39 AM
Sam HobbsPosted Apr 3, 2012, 2:48 PM
The answer probably depends on information that is not provided. For example, what type of DLL.
Since you ask about going both directions, exe to DLL and DLL to exe, I assume you do not have a specific problem. If you have a specific problem to solve then you are more likely to get a specific answer.
You probably can execute a DLL as a exe using a wrapper; Microsoft has some that might work but if not then it would be relatively easy to write one. That would be the most flexible since then you could use the same DLL file for all purposes.
Correspondingly, if you convert exe to a DLL then you can use the DLL as an exe in that manner I describe. To convert from exe to DLL, assuming this is a managed (C#) program, I would start by creating a new Class Library project and then copying the code over. I would leave the exe project alone. The details of course depend on the program; if it is a Windows Forms application then you might need to do some analysis to decide how the DLL should work.
VulpesPosted Apr 3, 2012, 4:20 AM