RE: Form in a DLL ish

From: Pradeep Kumar (PradeepKumar_at_discussions.microsoft.com)
Date: 11/09/04


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.
>



Relevant Pages

  • RE: Form in a DLL ish
    ... I did implement DllMain, in order to get the HINSTANCE. ... > Windows dynamic Library option file types. ... >> a DLL, unfortunately however it crashes whenver the form is closed. ...
    (microsoft.public.vc.language)
  • Re: .Net packaging/wrapper application?
    ... it just didn't work well in reality due to DLL ... Windows works is to look in the executable's directory for a needed DLL ... the way apps used to work when they developed Windows. ... Looks to me like Jim is looking for the .NET equivalent of compiling ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Unnown process... 5eplorer.exe
    ... do not remove the cause (a "super"-hidden .dll program) but only remove ... symptom files and registry settings. ... It has all permissions but 'copy' denied to everyone, ... then by using the Windows XP Recovery Console. ...
    (microsoft.public.win2000.general)
  • Re: WinSxS, functional under 2k ?
    ... The newSide-by-Side Assembly technology was introduced with Windows XP to help reduce or eliminate DLL Hell. ... If you recall earlier Windows versions, like Windows 95, when you installed an application you were warned if the installer tried to replace a DLL from the system folder with an older version and you were asked if you wanted to accept the change. ... Until Windows XP it wasn't so easy to use different versions of shared system DLLs, that is what the new Side-by-Side assemblies attempts to resolve. ...
    (microsoft.public.win2000.general)
  • Re: Determine name and path of dropped object?
    ... MDE I would really suggest the use of external DLL to hold the subclassing ... windows after loading the Microsoft Office Visual Basic Editor, ... Public Declare Sub DragAcceptFiles Lib "shell32.dll" _ ...
    (microsoft.public.access.modulesdaovba)