Custom controls in extension DLLs
lee@rocsinc.com -- lee@rocsinc.com
Wednesday, March 05, 1997
Environment: Win NT 4.0, VC++ 4.2b
I have a dialog template with a custom control that works fine in a =
dialog or a form view when the resource and source code are in the EXE. =
When I move the resource and the source code into an extension DLL, the =
dialog creation fails (i.e., DoModal () does NOT display the dialog) and =
the form view fails to display also (I can't remember how exactly ... it =
was one of those "I'll leave it for a while and get back to it" =
problems). If I remove the custom control from the dialog template, =
both implementations work fine.
I am able to work around this by creating a frame in the dialog template =
and creating the control in ::Create () of my implementation and Move =
()ing the control into the frame. =20
Am I missing something or is there anything special that I need to do in =
order to have a custom control in a dialog template in an extension DLL?
Any insight would be greatly appreciated.
Cheers,
Lee
Joao Vargem -- jpv.loyaltech@taguspark.pt
Monday, March 10, 1997
lee@rocsinc.com wrote:
>
> Environment: Win NT 4.0, VC++ 4.2b
>
> I have a dialog template with a custom control that works fine in a dialog or a form view when the resource
>and source code are in the EXE. When I move the resource and the source code into an extension DLL, the
>dialog creation fails (i.e., DoModal () does NOT display the dialog) and the form view fails to display also
>(I can't remember how exactly ... it was one of those "I'll leave it for a while and get back to it"
>problems). If I remove the custom control from the dialog template, both implementations work fine.
(...)
Hi all, Lee.
There's an article in the MSDN (probably the knowledge base too) that
refers to what I think is your
problem. It's a litle big so instead of pasting it into this mail, I've
attached in a zip format ( I hope this isn't a problem ). Maybe it will
solve your problem. Bye
--
Joao Vargem (jpv.loyaltech@taguspark.pt)
LoyalTech Portugal SA
Oeiras, Portugal
Become an MFC-L member
| Вернуться в корень Архива
|