tag:blogger.com,1999:blog-11847577.post4358860709368299560..comments2024-02-12T13:07:53.582+00:00Comments on Native Mobile: TouchBrowser - IIIJoão Paulo Figueirahttp://www.blogger.com/profile/01808451986712386444noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-11847577.post-91571706550504363862009-04-04T12:27:00.000+01:002009-04-04T12:27:00.000+01:00Hi João Paulo Figueira It Looks Too Cool I am new ...Hi <BR/>João Paulo Figueira <BR/><BR/>It Looks Too Cool I am new Win32C++<BR/>developer I Don't have a Good Knowledge about WTL My List Requirement Is Same as Your List But As You Add Icon on List I want To Add Image and i Want To Create MultiColumn List With My Own Text.<BR/>For It What Should I Do Is It Possible With Your List? How<BR/>Thanks<BR/>AvinashAvinashhttps://www.blogger.com/profile/03561039844363047553noreply@blogger.comtag:blogger.com,1999:blog-11847577.post-37353265318656680472009-03-11T12:54:00.000+00:002009-03-11T12:54:00.000+00:00I may have found another issue with your code in a...I may have found another issue with your code in atltouch.h.<BR/>When using the SetItemCount method because it's defined like this :<BR/><BR/>void SetItemCount(int nItems)<BR/>{<BR/>...<BR/>for(i = 0; i < nItems; ++i) m_items[i] = NULL;<BR/><BR/>... SetExtent(m_sizeWnd.cx,GetTotalItemHeight()); <BR/>}<BR/>So first you set to NULL all your items then you call GetTotalItemHeight() that calls GetItemHeightSum() defined like this :<BR/><BR/>int GetItemHeightSum(int nItems)<BR/> {<BR/> int i, h = 0;<BR/><BR/> for(i = 0; i < nItems; ++i)<BR/> {<BR/> h += m_items[i]->GetHeight();<BR/> }<BR/> return h;<BR/> }<BR/>This time when nItems > 0, m_items[i] is NULL so it crashes.<BR/><BR/>You should use GetAt by the way with exceptions.<BR/><BR/>I will also try to use stl instead of atl containers and send you the result.smartmobilihttps://www.blogger.com/profile/13257938765143080285noreply@blogger.comtag:blogger.com,1999:blog-11847577.post-88560206801927190812009-03-11T12:48:00.000+00:002009-03-11T12:48:00.000+00:00When you have an error with vs2008 it generally me...When you have an error with vs2008 it generally means that :<BR/><BR/>1) Your forgot to add wtl path in system includes<BR/><BR/>2) You need to add #define _SECURE_ATL 1 in stdafx.h before to include wtl headers.smartmobilihttps://www.blogger.com/profile/13257938765143080285noreply@blogger.comtag:blogger.com,1999:blog-11847577.post-17291351997216942312009-03-01T23:06:00.000+00:002009-03-01T23:06:00.000+00:00What errors did you get when compiling with VS2008...What errors did you get when compiling with VS2008? Do you have WTL 8.0 installed in your development PC?João Paulo Figueirahttps://www.blogger.com/profile/01808451986712386444noreply@blogger.comtag:blogger.com,1999:blog-11847577.post-9983545414996902052009-02-28T11:09:00.000+00:002009-02-28T11:09:00.000+00:00It looks very nice. Maybe you could include a bina...It looks very nice. Maybe you could include a binary, I don't seem to be able to compile this easily with VS2008. Can't wait to test it out.zzattackhttps://www.blogger.com/profile/09985770534881982121noreply@blogger.com