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 / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

2K/XP problem with CEdit.SetWindowText

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hamm.charlesw@epa.gov - 13 Jul 2005 15:10 GMT
I have a small app that filters out illegal characters typed into a
CEdit by doing a GetWindowText(), followed by the filtering, followed
by a SetWindowText(), all within a routine fired from an ON_EN_CHANGE
message. I am developing this app on VC++ 7.1 under Win2K and it works
fine. When I run the app on a WinXP box, the call to SetWindowText
causes the app to exit (no messages). I also tried doing a SetSel(0, 1)
followed by a ReplaceSel(), with the same results. The CEdit is on a
CDialog, not a CView.

This problem does not seem to be addressed either here or on MSDN.
David Lowndes - 13 Jul 2005 16:15 GMT
>I have a small app that filters out illegal characters typed into a
>CEdit by doing a GetWindowText(), followed by the filtering, followed
[quoted text clipped - 6 lines]
>
>This problem does not seem to be addressed either here or on MSDN.

Can you post the minimal code snippet you need to reproduce the
problem along with any instructions on how to repro it.

Thanks
Dave

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.