Re: Custom Control & Dll Hell

From: Neel Roy (neelagain_at_hotmail.com)
Date: 04/22/04


Date: Thu, 22 Apr 2004 23:50:25 +0530

Queries :

CustomControl is in Extension / Regular DLL ?
DLL using control is Extension / Regular DLL ?

Assumption :
EXE is MFC exe.

Can you get back ?

"Ron Hashimshony" <ronhash@bezeqint.net> wrote in message
news:408159ee$1@news.bezeqint.net...
> Hi,
> I have the followings:
> 1. A Dll with a custom control (ControlDll.dll)
> 2. A dll with a dialog using the custom control (DialogDll.dll)
> 3. An exe that uses the dialog from DialogDll.dll
>
> The control is register nicely like all custom controls using
> AfxRegisterClass...
>
> When i run the exe, it failed (the dialog was not displayed), what i did
is
> the following:
> Checked teh 'no fail create' to see where it failed, and found out it
could
> not find the control from the ID while in 'PrepareCtrl' of the DDX_Control
> of my custom control.
>
> I then created another dialog, this time in the exe, which uses the same
> custom control from the ControlDll.dll, and it worked!
>
> It seems that the nesting of dll within dll, and the custom control
> registration some how got lost
>
> Any help will be wolcomed
>
> 10x
>
> ronhash
>
>
>



Relevant Pages

  • Re: Debugging dll newb question
    ... Close all of your VB IDE copies, Open the standard EXE project file. ... but sets the file name for the DLL to itself. ... have to make a UserControl as an OCX to use it in an EXE. ... EXE project, just go to Project-->Add User Control, and start making your ...
    (microsoft.public.vb.general.discussion)
  • Re: ERROR_RESOURCE_TYPE_NOT_FOUND error comes
    ... Made DLL which contains resources like dialog, ... Made a static lib project which contains classes for resources ... This control is populated by lib classes. ... locale ID, and if not found, is defaulted to the app .exe itself. ...
    (microsoft.public.vc.mfc)
  • Re: looking for custom control sample code
    ... add a control variable for the static control, which means you must give the static ... DLL, you would do this in the InitInstance handler for the DLL, or in the ... >a custom control and expecting to create a custom control and associated ...
    (microsoft.public.vc.mfc)
  • Re: How to get a reference to main form in a Windows Form 2.0 Application?
    ... But what control would a library (dll) have access to? ... It is separate from ... the exe. ...
    (microsoft.public.dotnet.general)
  • Re: DLL or OCX?
    ... winsock control, and it has heavy IN/OUT communication transaction. ... the DLL winsock communication could be delayed by the .exe ...
    (microsoft.public.vb.general.discussion)

Loading