<?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 : pb with CXTPTaskDialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : pb with CXTPTaskDialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 16:30:56 +0000</pubDate>
  <lastBuildDate>Tue, 16 Sep 2008 01:29:09 +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=12115</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[pb with CXTPTaskDialog : Hello,  Yes, I see you link...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12115&amp;PID=41041&amp;title=pb-with-cxtptaskdialog#41041</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12115<br /><strong>Posted:</strong> 16 September 2008 at 1:29am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Yes, I see you link statically, so you need include our resources to your exe.</DIV><DIV>&nbsp;</DIV><DIV>add in res\app.rc2 file line</DIV><DIV>&nbsp;</DIV><DIV>#include "XTToolkitPro.rc"</DIV>]]>
   </description>
   <pubDate>Tue, 16 Sep 2008 01:29:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12115&amp;PID=41041&amp;title=pb-with-cxtptaskdialog#41041</guid>
  </item> 
  <item>
   <title><![CDATA[pb with CXTPTaskDialog : Hello  here my call stack and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12115&amp;PID=40877&amp;title=pb-with-cxtptaskdialog#40877</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4520">Manu</a><br /><strong>Subject:</strong> 12115<br /><strong>Posted:</strong> 10 September 2008 at 2:31am<br /><br />Hello<DIV></DIV><P>here my call stack and after other informations</P><P>/*********************************************</P><P>/*begin call stack</P><P>/**********************************************</P><P>STRUCTURE! 00e3593f() line 843 + 31 bytes<BR>STRUCTURE! 00e35aad() line 855 + 60 bytes<BR>STRUCTURE! 00e35395() line 706<BR>STRUCTURE! 00e31c41() line 233 + 18 bytes<BR>CWnd::OnWndMsg(unsigned int 1, unsigned int 0, long 1228696, long * 0x0012baa4) line 1811 + 13 bytes<BR>CWnd::WindowProc(unsigned int 1, unsigned int 0, long 1228696) line 1585 + 30 bytes<BR>STRUCTURE! 00e33ce1() line 344<BR>AfxCallWndProc(CWnd * 0x0012c90c {CXTPTaskDialog hWnd=0x00571d0c}, HWND__ * 0x00571d0c, unsigned int 1, unsigned int 0, long 1228696) line 215 + 26 bytes<BR>AfxWndProc(HWND__ * 0x00571d0c, unsigned int 1, unsigned int 0, long 1228696) line 368<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a06f6()<BR>USER32! 766a069c()<BR>STRUCTURE! 00e285c4() line 209 + 25 bytes<BR>STRUCTURE! 00e25a51() line 637<BR>STRUCTURE! 00e25bed() line 690 + 25 bytes<BR>USER32! 7669f8d2()<BR>USER32! 76691912()<BR>USER32! 766a0817()<BR>USER32! 766939f7()<BR>NTDLL! 773499ce()<BR>USER32! 7668a397()<BR>USER32! 766b1c37()<BR>USER32! 766a9b15()<BR>CWnd::CreateDlgIndirect(const DLGTEMPLATE * 0x08df9548, CWnd * 0x0012df00 {CDialogRights hWnd=0x002b0730}, HINSTANCE__ * 0x00400000) line 327 + 36 bytes<BR>CDialog::DoModal() line 531 + 32 bytes<BR>STRUCTURE! 00e318eb() line 138<BR>STRUCTURE! 00d6edc7() line 488 + 8 bytes<BR>CDialogRights::OnButtonAddUser() line 1622 + 13 bytes<BR>_AfxDispatchCmdMsg(CCmdTarget * 0x0012df00 {CDialogRights hWnd=0x002b0730}, unsigned int 16272, int 0, void (void)* 0x0040ace5 CDialogRights::OnButtonAddUser(void), void * 0x00000000, unsigned int 12, AFX_CMDHANDLERINFO * 0x00000000) line 88<BR>CCmdTarget::OnCmdMsg(unsigned int 16272, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 302 + 39 bytes<BR>CDialog::OnCmdMsg(unsigned int 16272, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 97 + 24 bytes<BR>CWnd::OnCommand(unsigned int 16272, long 2232938) line 2088<BR>CWnd::OnWndMsg(unsigned int 273, unsigned int 16272, long 2232938, long * 0x0012cf80) line 1597 + 28 bytes<BR>CWnd::WindowProc(unsigned int 273, unsigned int 16272, long 2232938) line 1585 + 30 bytes<BR>AfxCallWndProc(CWnd * 0x0012df00 {CDialogRights hWnd=0x002b0730}, HWND__ * 0x002b0730, unsigned int 273, unsigned int 16272, long 2232938) line 215 + 26 bytes<BR>AfxWndProc(HWND__ * 0x002b0730, unsigned int 273, unsigned int 16272, long 2232938) line 368<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a06f6()<BR>USER32! 766a069c()<BR>STRUCTURE! 00e285c4() line 209 + 25 bytes<BR>STRUCTURE! 00e25a51() line 637<BR>STRUCTURE! 00e25bed() line 690 + 25 bytes<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a0a05()<BR>USER32! 766a0afa()<BR>USER32! 766c4b0b()<BR>USER32! 766c4c0b()<BR>USER32! 766b47f2()<BR>USER32! 766ae2c9()<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a06f6()<BR>USER32! 766a069c()<BR>STRUCTURE! 00e285c4() line 209 + 25 bytes<BR>STRUCTURE! 00e25a51() line 637<BR>STRUCTURE! 00e25bed() line 690 + 25 bytes<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a06f6()<BR>USER32! 766a069c()<BR>STRUCTURE! 00e29c39() line 804 + 25 bytes<BR>CWnd::DefWindowProcW(unsigned int 514, unsigned int 0, long 655401) line 1000 + 32 bytes<BR>CWnd::WindowProc(unsigned int 514, unsigned int 0, long 655401) line 1586 + 26 bytes<BR>AfxCallWndProc(CWnd * 0x0012e0c4 {CButton hWnd=0x0022126a}, HWND__ * 0x0022126a, unsigned int 514, unsigned int 0, long 655401) line 215 + 26 bytes<BR>AfxWndProc(HWND__ * 0x0022126a, unsigned int 514, unsigned int 0, long 655401) line 368<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a0008()<BR>USER32! 766a0060()<BR>USER32! 7668af07()<BR>COccManager::IsDialogMessageW(CWnd * 0x0012df00 {CDialogRights hWnd=0x002b0730}, tagMSG * 0x01a3d654 {msg=0x00000202 wp=0x00000000 lp=0x000a0029}) line 614 + 17 bytes<BR>CWnd::IsDialogMessageW(tagMSG * 0x01a3d654 {msg=0x00000202 wp=0x00000000 lp=0x000a0029}) line 179 + 33 bytes<BR>CWnd::PreTranslateInput(tagMSG * 0x01a3d654 {msg=0x00000202 wp=0x00000000 lp=0x000a0029}) line 3424<BR>CDialog::PreTranslateMessage(tagMSG * 0x01a3d654 {msg=0x00000202 wp=0x00000000 lp=0x000a0029}) line 92<BR>CWnd::WalkPreTranslateTree(HWND__ * 0x00281cfa, tagMSG * 0x01a3d654 {msg=0x00000202 wp=0x00000000 lp=0x000a0029}) line 2667 + 18 bytes<BR>CWinThread::PreTranslateMessage(tagMSG * 0x01a3d654 {msg=0x00000202 wp=0x00000000 lp=0x000a0029}) line 672 + 18 bytes<BR>CStructureApp::PreTranslateMessage(tagMSG * 0x01a3d654 {msg=0x00000202 wp=0x00000000 lp=0x000a0029}) line 407<BR>CWinThread::PumpMessage() line 848 + 30 bytes<BR>CWnd::RunModalLoop(unsigned long 4) line 3478 + 19 bytes<BR>CDialog::DoModal() line 539 + 12 bytes<BR>CDoc_Need_Struct::EditGestionDroit() line 82<BR>CStructureDoc::OnOutilGestionDroits() line 582<BR>_AfxDispatchCmdMsg(CCmdTarget * 0x037d5e60 {CStructureDoc}, unsigned int 27921, int 0, void (void)* 0x0040999e CStructureDoc::OnOutilGestionDroits(void), void * 0x00000000, unsigned int 12, AFX_CMDHANDLERINFO * 0x00000000) line 88<BR>CCmdTarget::OnCmdMsg(unsigned int 27921, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 302 + 39 bytes<BR>CDocument::OnCmdMsg(unsigned int 27921, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 894 + 24 bytes<BR>CView::OnCmdMsg(unsigned int 27921, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 170 + 33 bytes<BR>CFrameWnd::OnCmdMsg(unsigned int 27921, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 894 + 33 bytes<BR>CWnd::OnCommand(unsigned int 27921, long 0) line 2088<BR>CFrameWnd::OnCommand(unsigned int 27921, long 0) line 321<BR>CWnd::OnWndMsg(unsigned int 273, unsigned int 27921, long 0, long * 0x0012eda4) line 1597 + 28 bytes<BR>CWnd::WindowProc(unsigned int 273, unsigned int 27921, long 0) line 1585 + 30 bytes<BR>AfxCallWndProc(CWnd * 0x037f1d60 {CChildFrame hWnd=0x00540c84}, HWND__ * 0x00540c84, unsigned int 273, unsigned int 27921, long 0) line 215 + 26 bytes<BR>CMDIFrameWnd::OnCommand(unsigned int 27921, long 0) line 55 + 35 bytes<BR>CWnd::OnWndMsg(unsigned int 273, unsigned int 27921, long 0, long * 0x0012efd0) line 1597 + 28 bytes<BR>CXTPCommandBarsSiteBase&lt;CMDIFrameWnd&gt;::OnWndMsg(unsigned int 273, unsigned int 27921, long 0, long * 0x0012efd0) line 192<BR>CWnd::WindowProc(unsigned int 273, unsigned int 27921, long 0) line 1585 + 30 bytes<BR>AfxCallWndProc(CWnd * 0x03ac7ea0 {CMainFrame hWnd=0x00281cfa}, HWND__ * 0x00281cfa, unsigned int 273, unsigned int 27921, long 0) line 215 + 26 bytes<BR>AfxWndProc(HWND__ * 0x00281cfa, unsigned int 273, unsigned int 27921, long 0) line 368<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a06f6()<BR>USER32! 766a069c()<BR>STRUCTURE! 00e285c4() line 209 + 25 bytes<BR>STRUCTURE! 00e25a51() line 637<BR>STRUCTURE! 00e25bed() line 690 + 25 bytes<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a06f6()<BR>USER32! 766a069c()<BR>STRUCTURE! 00e29c39() line 804 + 25 bytes<BR>STRUCTURE! 00dba1b2() line 231 + 28 bytes<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a0a05()<BR>USER32! 766a0afa()<BR>CWnd::SendMessageW(unsigned int 273, unsigned int 27921, long 0) line 39 + 75 bytes<BR>STRUCTURE! 00d37146() line 654<BR>STRUCTURE! 00d3754b() line 862 + 13 bytes<BR>STRUCTURE! 00d370a8() line 737 + 16 bytes<BR>STRUCTURE! 00dd4300() line 73<BR>STRUCTURE! 00d9b35c() line 431 + 26 bytes<BR>STRUCTURE! 00d23ebe() line 1004<BR>CWnd::OnWndMsg(unsigned int 513, unsigned int 1, long 1114234, long * 0x0012fa58) line 1964<BR>STRUCTURE! 00da0e79() line 2365<BR>CWnd::WindowProc(unsigned int 513, unsigned int 1, long 1114234) line 1585 + 30 bytes<BR>AfxCallWndProc(CWnd * 0x037777f0 {CXTPToolBar hWnd=0x004c1424}, HWND__ * 0x004c1424, unsigned int 513, unsigned int 1, long 1114234) line 215 + 26 bytes<BR>AfxWndProc(HWND__ * 0x004c1424, unsigned int 513, unsigned int 1, long 1114234) line 368<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a06f6()<BR>USER32! 766a069c()<BR>STRUCTURE! 00e285c4() line 209 + 25 bytes<BR>STRUCTURE! 00e25a51() line 637<BR>STRUCTURE! 00e25bed() line 690 + 25 bytes<BR>USER32! 7669f8d2()<BR>USER32! 7669f794()<BR>USER32! 766a0008()<BR>USER32! 766a0060()<BR>CWinThread::PumpMessage() line 853<BR>CWinThread::Run() line 487 + 11 bytes<BR>CWinApp::Run() line 400<BR>AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, unsigned short * 0x00202f6c, int 1) line 49 + 11 bytes<BR>wWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, unsigned short * 0x00202f6c, int 1) line 30<BR>wWinMainCRTStartup() line 198 + 54 bytes<BR>KERNEL32! 76bd4911()<BR>NTDLL! 7732e4b6()<BR>NTDLL! 7732e489()<BR></P><DIV></DIV>/*****************<DIV>/*End</DIV><DIV>/******************</DIV><DIV>&nbsp;</DIV><DIV>I have a problem of assert here :</DIV><DIV>HICON CXTPTaskDialogClient::CreateIcon(HICON hIcon, PCWSTR lpwzIcon, CSize sizeIcon, BOOL bUseHandle)<BR>{<BR>&nbsp;HICON hNewIcon = NULL;</DIV><DIV>&nbsp;if (bUseHandle &amp;&amp; hIcon != NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;hNewIcon = ::CopyIcon(hIcon);<BR>&nbsp;}<BR>&nbsp;else if (!bUseHandle)<BR>&nbsp;{<BR>&nbsp;&nbsp;if (m_pConfig-&gt;hInstance == NULL || lpwzIcon == NULL || !IS_INTRESOURCE(lpwzIcon))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;return FALSE;<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;if (lpwzIcon == TD_ERROR_ICON ||<BR>&nbsp;&nbsp;&nbsp;lpwzIcon == TD_WARNING_ICON ||<BR>&nbsp;&nbsp;&nbsp;lpwzIcon == TD_INFORMATION_ICON ||<BR>&nbsp;&nbsp;&nbsp;lpwzIcon == TD_SHIELD_ICON)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;DWORD dwID = 0;</DIV><DIV>&nbsp;&nbsp;&nbsp;if (m_bUseSysIcons)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;switch ((ULONG_PTR)lpwzIcon)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case (ULONG_PTR)TD_ERROR_ICON:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dwID = 0x0067; break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case (ULONG_PTR)TD_WARNING_ICON:&nbsp;&nbsp;&nbsp;&nbsp; dwID = 0x0065; break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case (ULONG_PTR)TD_INFORMATION_ICON: dwID = 0x0068; break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case (ULONG_PTR)TD_SHIELD_ICON:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dwID = 0x006a; break; // vista and later.<BR>&nbsp;&nbsp;&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;hNewIcon = XTPResourceManager()-&gt;CreateIconFromResource(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPModuleHandle(_T("user32.dll")), MAKEINTRESOURCE(dwID), sizeIcon);<BR>&nbsp;&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;&nbsp;if (hNewIcon == NULL)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;switch ((ULONG_PTR)lpwzIcon)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case (ULONG_PTR)TD_ERROR_ICON:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dwID = XTP_IDI_TASKERROR;&nbsp; break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case (ULONG_PTR)TD_WARNING_ICON:&nbsp;&nbsp;&nbsp;&nbsp; dwID = XTP_IDI_TASKWARN;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case (ULONG_PTR)TD_INFORMATION_ICON: dwID = XTP_IDI_TASKINFO;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case (ULONG_PTR)TD_SHIELD_ICON:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dwID = XTP_IDI_TASKSHIELD; break;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;hNewIcon = XTPResourceManager()-&gt;LoadIcon(MAKEINTRESOURCE(dwID), sizeIcon);<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;hNewIcon = XTPResourceManager()-&gt;CreateIconFromResource(<BR>&nbsp;&nbsp;&nbsp;&nbsp;m_pConfig-&gt;hInstance, (LPTSTR)lpwzIcon, sizeIcon);<BR>&nbsp;&nbsp;}<BR>&nbsp;}</DIV><DIV>&nbsp;ASSERT(hNewIcon != NULL); //here my problem<BR>&nbsp;return hNewIcon;</DIV><DIV>&nbsp;</DIV><DIV>and after here</DIV><DIV>&nbsp;</DIV><DIV>CSize CXTPTaskDialogClient::CalcCommandButtonSize()<BR>{<BR>&nbsp;CXTPEmptySize sizeCommon;</DIV><DIV>&nbsp;for (int nIDString = XTP_IDS_TASK_OK; nIDString &lt;= XTP_IDS_TASK_CLOSE; ++nIDString)<BR>&nbsp;{<BR>&nbsp;&nbsp;CString strButton;<BR>&nbsp;&nbsp;XTPResourceManager()-&gt;LoadString(&amp;strButton, nIDString);<BR>&nbsp;&nbsp;ASSERT(!strButton.IsEmpty()); //my problem</DIV><DIV>&nbsp;&nbsp;CSize sizeButton = CalcButtonSize(strButton);<BR>&nbsp;&nbsp;sizeCommon.cx = max(sizeCommon.cx, sizeButton.cx);<BR>&nbsp;&nbsp;sizeCommon.cy = max(sizeCommon.cy, sizeButton.cy);<BR>&nbsp;}</DIV><DIV>&nbsp;return sizeCommon;<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Other information, when I try "VistaTaskDialog file" in your project all is ok, I think&nbsp;that a resource or other element is missing in my project but I do not find which</DIV><DIV>&nbsp;</DIV><DIV>Thanks </DIV>]]>
   </description>
   <pubDate>Wed, 10 Sep 2008 02:31:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12115&amp;PID=40877&amp;title=pb-with-cxtptaskdialog#40877</guid>
  </item> 
  <item>
   <title><![CDATA[pb with CXTPTaskDialog : Hi, Can you attach screenshot...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12115&amp;PID=40862&amp;title=pb-with-cxtptaskdialog#40862</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12115<br /><strong>Posted:</strong> 09 September 2008 at 2:57pm<br /><br />Hi,<DIV>Can you attach screenshot of call stack?</DIV>]]>
   </description>
   <pubDate>Tue, 09 Sep 2008 14:57:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12115&amp;PID=40862&amp;title=pb-with-cxtptaskdialog#40862</guid>
  </item> 
  <item>
   <title><![CDATA[pb with CXTPTaskDialog : Hello I have a problem with this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12115&amp;PID=40855&amp;title=pb-with-cxtptaskdialog#40855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4520">Manu</a><br /><strong>Subject:</strong> 12115<br /><strong>Posted:</strong> 09 September 2008 at 12:06pm<br /><br /><P>Hello</P><DIV>I have a problem with this code</DIV><DIV>&nbsp;</DIV><DIV>CXTPTaskDialog taskDlg(this);<BR>&nbsp;taskDlg.AddButton(_T("Change password"), IDOK);<BR>&nbsp;taskDlg.SetCommonButtons(TDCBF_CANCEL_BUTTON);<BR>&nbsp;taskDlg.SetMainIcon(TD_WARNING_ICON);<BR>&nbsp;taskDlg.SetMainInstruction(_T("Change Password"));<BR>&nbsp;taskDlg.SetContent(_T("Remember your changed password."));<BR>&nbsp;<BR>&nbsp; int nRet = taskDlg.DoModal();<BR>&nbsp; switch (nRet)<BR>&nbsp; {<BR>&nbsp; case 0:<BR>&nbsp;&nbsp;&nbsp;&nbsp; AfxMessageBox(_T("Task Dialog could not be created!"));<BR>&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp; case IDOK:<BR>&nbsp;&nbsp;&nbsp; // the user pressed the OK button, change password.<BR>&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp; case IDCANCEL:<BR>&nbsp;&nbsp;&nbsp;&nbsp; // user canceled the dialog.<BR>&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp; };</DIV><DIV>&nbsp;return;</DIV><DIV>&nbsp;</DIV><DIV>if I&nbsp;trace into the DoModal()</DIV><DIV>m_nSelButtonID = (int)CXTPTaskDialogFrame::DoModal();</DIV><DIV>&nbsp;</DIV><DIV>if (m_lpDlgTemplate == NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;const int nDlgTemplateSize = sizeof(DLGTEMPLATE) + sizeof(DWORD) * 8;<BR>&nbsp;&nbsp;m_lpDlgTemplate =&nbsp; (DLGTEMPLATE*)malloc(nDlgTemplateSize);<BR>&nbsp;&nbsp;ZeroMemory(m_lpDlgTemplate, nDlgTemplateSize);<BR>&nbsp;}</DIV><DIV>&nbsp;</DIV><DIV>the sizeof(DLGTEMPLATE) + sizeof(DWORD) * 8;</DIV><DIV>can't be evaluated and after I have a lot of Debug Assertion Failed!</DIV><DIV>my version of codejock is 11.2.2<BR></DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 09 Sep 2008 12:06:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12115&amp;PID=40855&amp;title=pb-with-cxtptaskdialog#40855</guid>
  </item> 
 </channel>
</rss>