<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Unhandled exception using CXTListView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Unhandled exception using CXTListView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 09:10:11 +0000</pubDate>
  <lastBuildDate>Thu, 10 Apr 2008 04:56:55 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=10166</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Unhandled exception using CXTListView : Ah, silly me -overlooked that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10166&amp;PID=33404&amp;title=unhandled-exception-using-cxtlistview#33404</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=373">joep</a><br /><strong>Subject:</strong> 10166<br /><strong>Posted:</strong> 10 April 2008 at 4:56am<br /><br />Ah, silly me -&nbsp;overlooked that completely. Thanks!]]>
   </description>
   <pubDate>Thu, 10 Apr 2008 04:56:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10166&amp;PID=33404&amp;title=unhandled-exception-using-cxtlistview#33404</guid>
  </item> 
  <item>
   <title><![CDATA[Unhandled exception using CXTListView : Hi, You can &amp;#039;t use such...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10166&amp;PID=33382&amp;title=unhandled-exception-using-cxtlistview#33382</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10166<br /><strong>Posted:</strong> 10 April 2008 at 1:26am<br /><br />Hi,<DIV>You can 't use such line:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New">CXTListCtrl&amp; lc = (CXTListCtrl&amp;)GetListCtrl();</FONT><BR><FONT face="Courier New">GetListCtrl returns always CListCtrl&amp; - you can't cast it to CXTListCtrl&amp;</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><DIV><FONT face="Courier New">if you have CXTListView just call directly:</FONT></DIV><DIV><FONT face="Courier New"></FONT>&nbsp;</DIV><FONT face="Courier New">AutoSizeColumn(-1);</FONT><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 10 Apr 2008 01:26:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10166&amp;PID=33382&amp;title=unhandled-exception-using-cxtlistview#33382</guid>
  </item> 
  <item>
   <title><![CDATA[Unhandled exception using CXTListView : In a simple, from CXTListView...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10166&amp;PID=33377&amp;title=unhandled-exception-using-cxtlistview#33377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=373">joep</a><br /><strong>Subject:</strong> 10166<br /><strong>Posted:</strong> 09 April 2008 at 7:59pm<br /><br /><P>In a simple, from CXTListView derived, class I have this update function:</P><P><FONT face="Courier New, Courier, mono">CXTListCtrl&amp; lc = (CXTListCtrl&amp;)GetListCtrl();<BR>lc.DeleteAllItems();<BR>for (int i = 0; i &lt; 10; i++)<BR>{<BR>&nbsp; int nItem = lc.InsertItem(lc.GetItemCount(), "A");<BR>&nbsp; lc.SetItemData(nItem, (DWORD_PTR)123456L);<BR>&nbsp; lc.SetItemText(nItem, 1, "B");<BR>&nbsp; lc.SetItemText(nItem, 2, "C");<BR>}<BR>lc.AutoSizeColumn(-1);</FONT></P><DIV></DIV>If I comment out the line with AutoSizeColumn(), everything works OK. If I uncomment the line, I get an "Unhandled exception at 0x00000000 in Application.exe: 0xC0000005: Access violation reading location 0x000000.<DIV>&nbsp;</DIV><DIV>Can anyone help me with this? Thx!</DIV>]]>
   </description>
   <pubDate>Wed, 09 Apr 2008 19:59:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10166&amp;PID=33377&amp;title=unhandled-exception-using-cxtlistview#33377</guid>
  </item> 
 </channel>
</rss>