<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=175450&amp;view=findpost&amp;p=1487284</guid>
        <pubDate>Fri, 16 Mar 2007 21:09:50 +0000</pubDate>
        <title>помогите с CreateDialogParam</title>
        <link>https://forum.sources.ru/index.php?showtopic=175450&amp;view=findpost&amp;p=1487284</link>
        <description><![CDATA[soserge: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=175450&view=findpost&p=1487017'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>alexander.stoyan &#064; <time class="tag-quote__quoted-time" datetime="2007-03-16T19:08:10+03:00">16.03.07, 16:08</time></span><div class='quote '>нужно WndProc объявить как static<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">class CFODC</div><div class="code_line">{</div><div class="code_line">...</div><div class="code_line">&nbsp;&nbsp; &nbsp;static int CALLBACK WndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);</div><div class="code_line">} ;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script></div></div><br>
Спасиб большое :D <br>
<br>
Казалось бы мелочь, но сам бы я до этого не додумался  :wall:]]></description>
        <author>soserge</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=175450&amp;view=findpost&amp;p=1487017</guid>
        <pubDate>Fri, 16 Mar 2007 16:08:10 +0000</pubDate>
        <title>помогите с CreateDialogParam</title>
        <link>https://forum.sources.ru/index.php?showtopic=175450&amp;view=findpost&amp;p=1487017</link>
        <description><![CDATA[alexander.stoyan: нужно WndProc объявить как static<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">class CFODC</div><div class="code_line">{</div><div class="code_line">...</div><div class="code_line">&nbsp;&nbsp; &nbsp;static int CALLBACK WndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);</div><div class="code_line">} ;</div></ol></div></div></div></div>]]></description>
        <author>alexander.stoyan</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=175450&amp;view=findpost&amp;p=1487016</guid>
        <pubDate>Fri, 16 Mar 2007 16:06:02 +0000</pubDate>
        <title>помогите с CreateDialogParam</title>
        <link>https://forum.sources.ru/index.php?showtopic=175450&amp;view=findpost&amp;p=1487016</link>
        <description><![CDATA[soserge: При компиляции ниже приведенного кода в Visual C++ (Studio 2005), получаю такую ошибку:<br><br>Error	1	error C2440: &#39;type cast&#39; : cannot convert from &#39;overloaded-function&#39; to &#39;DLGPROC&#39;	d:&#092;vstudio2005&#092;projects&#092;customfileopendialog&#092;customfileopendialog&#092;cfodc.cpp	8	<br><br>Подскажите плиз как правильно запихнуть параметр CALLBACK функции в CreateDialogParam. Уже сутки мучаюсь, ищу по форумам, но никак не могу заставить это все откомпилиться. Что я делаю не так?<br><br><br>#include &quot;stdafx.h&quot;<br>#include &quot;CFODC.h&quot;<br><br><br>CFODC::CFODC() <br>{<br>	hInstance=GetModuleHandle(NULL);<br>	hDlg=CreateDialogParam(hInstance,L&quot;Open File&quot;,NULL,(DLGPROC) CFODC::WndProc,NULL);<br><br>}<br>CFODC::~CFODC() {}<br><br><br>int CALLBACK CFODC::WndProc(HWND hwndDlg,    UINT uMsg,    WPARAM wParam,    LPARAM lParam)<br>{<br>	return 0;<br>}]]></description>
        <author>soserge</author>
        <category>Visual C++ / MFC / WTL</category>
      </item>
	
      </channel>
      </rss>
	