473,395 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

A problem with Microsoft Demo?

Microsoft has an excellent demo
[http://support.microsoft.com/default.aspx/kb/199515] for switching views in
MFC SDI application. However I discovered it breaks with a tiny change and
its quite nasty.

All I want is the tree to have editable fields so I changed the tree style
accordingly in MyTreeView.cpp line 148.

::SetWindowLong(m_pTreeCtrl->m_hWnd, GWL_STYLE, style | TVS_EDITLABELS); //
make the tree editable

But just this change breaks the tree view. Run the demo now, click in the
tree to bring up the edit box and now just click inside the edit box, it
ASSERTS and its a hard to go anywhere with this call stack.

I am actually working on a different project when I come across the same
problem. I eventually was able to trace it to the original demo that I am
using as guide.

Why does this unexpected crash happens at first place? How to resolve it?
Can we get anything useful from this callstack?

Environment: VC++ 6 / XP Pro

Feb 7 '07 #1
0 883

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tim Frawley | last post by:
I have converted a VB6 application to VB.NET. The old application made extensive use of the Clipboard for copying an Image Name so that it could be pasted into the image capture app when the user...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i donīt want to filter the return value of the method, i have to pass a new instance of the...
2
by: yawnmoth | last post by:
Say I had <select id="something" name="something" onchange="demo(this.value)"> but didn't want to define the onchange event handler in the select tag, itself. ie. I wanted to attach it, latter,...
69
by: fieldfallow | last post by:
Hello all, Before stating my question, I should mention that I'm fairly new to C. Now, I attempted a small demo that prints out the values of C's numeric types, both uninitialised and after...
2
by: Krustov | last post by:
The question of how to create thumbnails with clickable links gets asked on this newsgroup every so often - like clock work . Just really posing this script here for google to archive it & so...
6
by: =?Utf-8?B?U2hlcnJp?= | last post by:
I know this question has been posted in many places, but I have not been able to solve our current problem. The developers in my office are all new to C#.net. We have been developing an...
0
by: Anuack Luna | last post by:
Hello. My english not is good. Please help me in the translation and the answer to this question Come. I do not know if someone fix conversion link Example: I ejemplo.php ID = 1 which the...
10
by: waltapp | last post by:
Hello, I am a new programmer and I am working on a school project. I am being instructed to move up then down the dom. My parent is demo.html then a frameset and then another frameset within the...
4
by: jbrown007 | last post by:
Have a form that works with FF, Chrome but not working with any version of IE. http://www.tetonvillagesports.net/reso.htm the contact.php script is as follows: <?php /* Set e-mail recipient...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.