<?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 : Megaproblem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Megaproblem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 07:14:32 +0000</pubDate>
  <lastBuildDate>Wed, 15 Mar 2006 00:04:00 +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=3771</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[Megaproblem : Yes, my problem is disappear,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11433&amp;title=megaproblem#11433</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1849">Red Devil</a><br /><strong>Subject:</strong> 3771<br /><strong>Posted:</strong> 15 March 2006 at 12:04am<br /><br />Yes, my problem is disappear, thank you very match. Really good support.]]>
   </description>
   <pubDate>Wed, 15 Mar 2006 00:04:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11433&amp;title=megaproblem#11433</guid>
  </item> 
  <item>
   <title><![CDATA[Megaproblem : AfxGetMainWnd. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11427&amp;title=megaproblem#11427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3771<br /><strong>Posted:</strong> 14 March 2006 at 3:59pm<br /><br />AfxGetMainWnd.]]>
   </description>
   <pubDate>Tue, 14 Mar 2006 15:59:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11427&amp;title=megaproblem#11427</guid>
  </item> 
  <item>
   <title><![CDATA[Megaproblem : I suspect. But how call function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11415&amp;title=megaproblem#11415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1842">Ky3bkuHa MaTb</a><br /><strong>Subject:</strong> 3771<br /><strong>Posted:</strong> 14 March 2006 at 12:39pm<br /><br />I suspect. <br>But how call function from CMainFrame class? If&nbsp; AfxGetApp() is not enable do this, what enable do this ?]]>
   </description>
   <pubDate>Tue, 14 Mar 2006 12:39:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11415&amp;title=megaproblem#11415</guid>
  </item> 
  <item>
   <title><![CDATA[Megaproblem :   sprintf(buf, &amp;#034;%d&amp;#034;,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11406&amp;title=megaproblem#11406</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 3771<br /><strong>Posted:</strong> 14 March 2006 at 7:02am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> sprintf(buf, "%d", ((CMainFrame*)AfxGetApp())-&gt;num);</td></tr></table><br />AfxGetApp() returns a CWinApp object and not a CMainFrame.]]>
   </description>
   <pubDate>Tue, 14 Mar 2006 07:02:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11406&amp;title=megaproblem#11406</guid>
  </item> 
  <item>
   <title><![CDATA[Megaproblem : VC++ 6.0 SP 6I create SDI app...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11405&amp;title=megaproblem#11405</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1842">Ky3bkuHa MaTb</a><br /><strong>Subject:</strong> 3771<br /><strong>Posted:</strong> 14 March 2006 at 12:08am<br /><br />VC++ 6.0 SP 6<br><br>I create SDI app with your wizard and adding members to MainFrame class. When i getting this variables (public variable or get function) i always getting zero. <br><br>Example.<br>Add to MainFrame : public: int num;<br>In MainFrame constructor: num = 10;<br>In View class add function : <br>void CMyView::OnAnyMenuItem() {<br>&nbsp;&nbsp;&nbsp;&nbsp; char buf&#091;10&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp; sprintf(buf, "%d", ((CMainFrame*)AfxGetApp())-&gt;num);<br>&nbsp;&nbsp;&nbsp;&nbsp; AfxMessageBox(buf); // 0 , but must be 10<br>}<br><br>On my example its function menu Edit -&gt; Test.<br><br>If create function in CMainFrame.<br>void CMainFrame::OnAnyMenuitem() {<br>&nbsp; &nbsp;&nbsp; char buf&#091;10&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp; sprintf(buf, "%d", num);<br>&nbsp;&nbsp;&nbsp;&nbsp; AfxMessageBox(buf); // 10 right<br>}<br><br>They works rigth. I nothing understand.<br><br><a href="uploads/Ky3bkuHaMaTb/2006-03-13_235601_test23.rar" target="_blank">2006-03-13_235601_test23.rar</a><br><br><br>]]>
   </description>
   <pubDate>Tue, 14 Mar 2006 00:08:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3771&amp;PID=11405&amp;title=megaproblem#11405</guid>
  </item> 
 </channel>
</rss>