I have a dialog with an ActiveX control in it. The dialog resource is in a
separate MFC extension DLL for localization purposes. If I open this DLL in
either VC++ 6.0 or 7.1 (as resources), open the dialog, change the text of a
static control, and then save the DLL, I am no longer able to start that
dialog. The DDX_Control statement in the dialog class fails because
GetDlgItem returns NULL when trying to get a window handle for the ActiveX
control.
There is DLGINIT data for this ActiveX control in the .rc file. I have no
idea how to tell if that data is being corrupted by the edit or not.
Gary Chang[MSFT] - 20 Oct 2004 09:40 GMT
Hi greg,
Is it possible to upload the self-contain projects(zipped) to us, maybe we
can perform some research on this problem?
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Gary Chang[MSFT] - 27 Oct 2004 09:25 GMT
Hi Greg,
I have received the zipped file and will perform some research on it. We
will reply with more info as soon as possible.
If you have any more concerns on it, please feel free to post here.
Thanks for your understanding!
Best regards,
Gary Chang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Gary Chang[MSFT] - 28 Oct 2004 09:28 GMT
Hi Greg,
I have tested your sample dialog with a modifed CKres.dl, I can repro the
problem. I think your suppose is right, you could not directly edit the dll
or exe file's resource data and save it via resource editor, it will
corrupte some internal data structures(even you change something and
recover it back, then save in the resource editor), you need to rebuild the
dll or exe file.
Such problem will also happen to a standard Micrfosoft provided ActiveX
control.
So I suggest you can modify the resouce data in the dll or exe's source
code and then rebuild it...
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------