Board index » cppbuilder » Custom Controls and DLLs

Custom Controls and DLLs


2007-12-31 04:05:30 PM
cppbuilder68
Hello All,
I wonder if it is possible to wrap a custom control in a DLL and
insert that control into a dialog whose resource does not reside
in the same DLL as the control itself. A good example of the
situation is the COLORDLG example shipped by borland. In this
example both color control and the dialog into which the control
is inserted reside in the same DLL. It seems that it is not
possible to insert the control in a dialog belonging to the EXE
file. Any idea would be appreciated.
Mohsen
 
 

Re:Custom Controls and DLLs

"Mohsen" < XXXX@XXXXX.COM >wrote:
Quote

Hello All,

I wonder if it is possible to wrap a custom control in a DLL and
insert that control into a dialog whose resource does not reside
in the same DLL as the control itself. A good example of the
situation is the COLORDLG example shipped by borland. In this
example both color control and the dialog into which the control
is inserted reside in the same DLL. It seems that it is not
possible to insert the control in a dialog belonging to the EXE
file. Any idea would be appreciated.

Mohsen
It is possible. Only it is needed to hand TModule pointer to
the dialog and custom controls so that registrations task is
properly done.
Mohsen