Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / October 2004

Tip: Looking for answers? Try searching our database.

Localization of dialog with ActiveX control breaks dialog

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GregM - 20 Oct 2004 03:42 GMT
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.

--------------------

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.