wraithdu Posted November 5, 2008 Share Posted November 5, 2008 I want use the MFC CString class in a plugin. So I'm using VS 2008 and creating a regular Win32 Dll project with MFC support. My question is about the entry point. The AU3 SDK uses the DllMain entry point. However regular MFC dlls don't have a DllMain entry point by default. There's a MS article how to include one if need be, but I was curious if this is necessary, of if there's an MFC equivalent, or if I can just do without DllMain altogether. Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 5, 2008 Share Posted November 5, 2008 If I remember correctly, the plugin structure can do without anything special in the entry point. You just need to make sure you have the important pieces. Like functions, the list of exported plugin functions, the mini-variant information, etc. Link to comment Share on other sites More sharing options...
wraithdu Posted November 6, 2008 Author Share Posted November 6, 2008 Thanks. Plugin works just fine without DllMain. Link to comment Share on other sites More sharing options...
cppman Posted November 7, 2008 Share Posted November 7, 2008 (edited) Thanks. Plugin works just fine without DllMain.DLLs in general don't need an entry-point unless you plan on "running" them. Edited November 7, 2008 by cppman Miva OS Project Link to comment Share on other sites More sharing options...
wraithdu Posted November 7, 2008 Author Share Posted November 7, 2008 I was only asking because DllMain is in the plugin SDK. I could see the function didn't have any meaningful code, but I wasn't sure if AutoIt was expecting it to be there anyway. I figured it was worth an ask Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 7, 2008 Share Posted November 7, 2008 I don't believe the entry point is called explicitly. It's more of one of those behind the scenes loader functions. Link to comment Share on other sites More sharing options...
cppman Posted November 7, 2008 Share Posted November 7, 2008 I don't believe the entry point is called explicitly. It's more of one of those behind the scenes loader functions.If the "entry-point" exists, Windows will call that function every time the DLL is loaded. Miva OS Project Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 8, 2008 Share Posted November 8, 2008 I know. I just said it's a behind the scenes function and that no programmer actively find the address of it and calls it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now