RE: Form in a DLL ish
From: Pradeep Kumar (PradeepKumar_at_discussions.microsoft.com)
Date: 11/09/04
- Next message: Filip Konvicka: "Re: an string array problem"
- Previous message: Michael Böhnisch: "RE: getting a stack trace from a c++ exception"
- In reply to: Bonj: "Form in a DLL ish"
- Next in thread: Bonj: "RE: Form in a DLL ish"
- Reply: Bonj: "RE: Form in a DLL ish"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 05:21:05 -0800
I assume that you are aware of DllMain for creating dll's in Windows
Programming.
Let me know that you have used the DllMain in the .c file(i.e.., the Windows
application .exe) or you have tried that in either Windows Static Library or
Windows dynamic Library option file types.
If you have used the other file types then the Wizard will give the optional
entry point and you can have your own implementation of whatever you want.
suppose to be a function with some parameters.
You may link this dll file to a .exe file and call the function you have
implemented to create a window (whatever) just calling the funtion you have
implemented it.
This is the case with static library. With dynamic library it is different.
thanks for the opportunity.
Let me know whether it helped you or not.
Pradeep Kumar.R
Wipro Technologies
India
"Bonj" wrote:
> I have some form-creating code, using CreateWindow, to create a window. It's
> been working perfectly to create an SDK-style EXE, but now I am putting it in
> a DLL, unfortunately however it crashes whenver the form is closed.
> The exported function from the DLL takes a HWND as parameter, and if it is
> NULL, then it creates it with WS_OVERLAPPEDWINDOW, and if it is non-null, it
> creates it with that hWnd as the parent window, and WS_POPUPWINDOW as the
> window style.
> Can anybody think why that operation might lead a DLL to crash?
>
> It is a standard windows DLL, none of either MFC, ATL or managed. All
> completely unmanaged plain Win32.
>
- Next message: Filip Konvicka: "Re: an string array problem"
- Previous message: Michael Böhnisch: "RE: getting a stack trace from a c++ exception"
- In reply to: Bonj: "Form in a DLL ish"
- Next in thread: Bonj: "RE: Form in a DLL ish"
- Reply: Bonj: "RE: Form in a DLL ish"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|