activex control not working in a dll
-
Hi All! When in a simple project, I add a control activeX in a dialogue box it work perfectly, however when i make the dialog box (containing the activeX) in a dll (MFC DLL), i get nothing (no dialog box and consequently no activeX). When i remove the activeX control, the dialog box can be displayed! my question is so how to add a activex control in a dll? Thank u in advance. Nirmal
-
Hi All! When in a simple project, I add a control activeX in a dialogue box it work perfectly, however when i make the dialog box (containing the activeX) in a dll (MFC DLL), i get nothing (no dialog box and consequently no activeX). When i remove the activeX control, the dialog box can be displayed! my question is so how to add a activex control in a dll? Thank u in advance. Nirmal
I think the problem lies with the resource file being used.. As the dialogue template is in your DLL, where as your main app searches the template in its own resources and consequently dont find anything :).. Try using the dll's resources :).. try using the FindResource(..) function and then creating the dialogue from the template returned by the function :).. I hope it helps :) enjoy.