<?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=379473&amp;view=findpost&amp;p=3334387</guid>
        <pubDate>Wed, 10 Jul 2013 14:04:25 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334387</link>
        <description><![CDATA[-=CAP=-: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=379473&view=findpost&p=3334384'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>B.V. &#064; <time class="tag-quote__quoted-time" datetime="2013-07-10T18:01:16+04:00">10.07.13, 14:01</time></span><div class='quote '>Это одно и то же. wWinMain отличается юникодной сигнатурой</div></div><br>
таки да, описана в WTL-ных файлах<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=379473&view=findpost&p=3334384'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>B.V. &#064; <time class="tag-quote__quoted-time" datetime="2013-07-10T14:01:16+00:00">10.07.13, 14:01</time></span><div class='quote '>Возможно, раньше проект был EXE?</div></div><br>
там ОЧЕНЬ лихо закручен сюжет: одни и теже файлы используются в разных проектах]]></description>
        <author>-=CAP=-</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334384</guid>
        <pubDate>Wed, 10 Jul 2013 14:01:16 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334384</link>
        <description><![CDATA[B.V.: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=379473&view=findpost&p=3334364'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>&#045;=CAP=&#045; &#064; <time class="tag-quote__quoted-time" datetime="2013-07-10T13:32:51+00:00">10.07.13, 13:32</time></span><div class='quote '>B.V., не WinMain, а wWinMain.</div></div><br>
Это одно и то же. wWinMain отличается юникодной сигнатурой<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=379473&view=findpost&p=3334364'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>&#045;=CAP=&#045; &#064; <time class="tag-quote__quoted-time" datetime="2013-07-10T13:32:51+00:00">10.07.13, 13:32</time></span><div class='quote '>А имя ей токое дали, даже не знаю почему</div></div><br>
Возможно, раньше проект был EXE?]]></description>
        <author>B.V.</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334364</guid>
        <pubDate>Wed, 10 Jul 2013 13:32:51 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334364</link>
        <description><![CDATA[-=CAP=-: <strong class='tag-b'>Kray74</strong>, DllMain так же присутствует.<br>
<strong class='tag-b'>B.V.</strong>, не WinMain, а wWinMain.<br>
<br>
В общем, отбой воздушной тревоги.<br>
<br>
Функция wWinMain - пользовательская, потому и в экспорте.<br>
А имя ей токое дали, даже не знаю почему (так сложилось исторически).<br>
Переименовал и вуаля - все компилится.<br>
<br>
Неопонятно остальось только одно:<br>
почему в VS2003 компилится, а в VS2012(v90) - нет  :wall:]]></description>
        <author>-=CAP=-</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334334</guid>
        <pubDate>Wed, 10 Jul 2013 13:00:44 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334334</link>
        <description><![CDATA[B.V.: -=CAP=-, зачем тебе в DLL WinMain, а тем более, зачем она тебе в экспорте?]]></description>
        <author>B.V.</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334221</guid>
        <pubDate>Wed, 10 Jul 2013 09:56:21 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334221</link>
        <description><![CDATA[Kray74: Ты же DLL компилируешь, почему тогда не<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">BOOL WINAPI DllMain(HINSTANCE, DWORD, LPVOID)</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
?]]></description>
        <author>Kray74</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334213</guid>
        <pubDate>Wed, 10 Jul 2013 09:48:52 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334213</link>
        <description><![CDATA[Axis: В объявлении и реализации стоит extern &quot;C&quot;?]]></description>
        <author>Axis</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334195</guid>
        <pubDate>Wed, 10 Jul 2013 09:36:08 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334195</link>
        <description><![CDATA[-=CAP=-: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=379473&view=findpost&p=3334190'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Kray74 &#064; <time class="tag-quote__quoted-time" datetime="2013-07-10T09:31:19+00:00">10.07.13, 09:31</time></span><div class='quote '>В extern &quot;C&quot; - убери его.</div></div><br>
<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">Error C2733: second C linkage of overloaded function &#39;wWinMain&#39; not allowed</div></ol></div></div></div></div><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">Error C2731: &#39;wWinMain&#39; : function cannot be overloaded</div></ol></div></div></div></div><br>
всё же присутствует]]></description>
        <author>-=CAP=-</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334190</guid>
        <pubDate>Wed, 10 Jul 2013 09:31:19 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334190</link>
        <description><![CDATA[Kray74: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=379473&view=findpost&p=3334176'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>&#045;=CAP=&#045; &#064; <time class="tag-quote__quoted-time" datetime="2013-07-10T09:21:17+00:00">10.07.13, 09:21</time></span><div class='quote '>Подскажите, плиз, в чем может быть проблема?</div></div><br>
В extern &quot;C&quot; - убери его.]]></description>
        <author>Kray74</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334176</guid>
        <pubDate>Wed, 10 Jul 2013 09:21:17 +0000</pubDate>
        <title>Ошибки компеляции C2733 и C2731 (wWinMain)</title>
        <link>https://forum.sources.ru/index.php?showtopic=379473&amp;view=findpost&amp;p=3334176</link>
        <description><![CDATA[-=CAP=-: Всем привет&#33;<br>
<br>
MyDLL.cpp<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">extern &quot;C&quot; int WINAPI wWinMain(HINSTANCE hExeInstance, IInstallerStub* pInstallerStub) &nbsp;</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;//...</div><div class="code_line">}</div></ol></div></div></div></div><br>
<br>
MyDLL.def<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">LIBRARY MyFirstDLL</div><div class="code_line">&nbsp;</div><div class="code_line">EXPORTS</div><div class="code_line">&nbsp;&nbsp; &nbsp;wWinMain &nbsp; &nbsp; PRIVATE</div></ol></div></div></div></div><br>
<br>
Настройки проекта:<br>
Target Name: MyFirstDLL<br>
Module Definition File: MyDLL.def<br>
<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">Error C2733: second C linkage of overloaded function &#39;wWinMain&#39; not allowed</div><div class="code_line">Error C2731: &#39;wWinMain&#39; : function cannot be overloaded</div></ol></div></div></div></div><br>
<br>
Этот же код компилится в VS2003 без проблем.<br>
Настройки проектов VS2003 и VS2012 <span class='tag-u'>вроде бы</span> все совпадают.<br>
Подскажите, плиз, в чем может быть проблема?<br>
<br>
Заранее всем благодарен&#33;]]></description>
        <author>-=CAP=-</author>
        <category>C/C++: Системное программирование и WinAPI</category>
      </item>
	
      </channel>
      </rss>
	