-
August 30th, 2010, 09:10 PM
#1
[RESOLVED] Embed main() into a DLL
Hi All
Is it possible to embed the main() function into a DLL?
I have searched the forums here, but none of 28 threads seem to have a relevant information. Note that I'm not talking about DllMain.
For those who are interested why I want to do something like this. I have written my own service stuff (plain C/WIN32 API), and now I want to put it in a library. The concept works as a static library (I can create a static lib, link the application against this lib, implement in the app the functions required by the service lib, the service lib calls for example an application defined servicestopping() function when someone wants to stop the server, ..., this is all ok). Now I want to transform this static service library to a service dll. Is this possible?
I don't need all the service related baggage as an example. If this is possible, could someone point me to an example where a main() function resides in a dll, and this main() acts as the main function of another project. Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|