<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compilation error between &amp;quot;afxwin.h&amp;quot; and &amp;quot;windows.h&amp;quot; in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/compilation-error-between-quot-afxwin-h-quot-and-quot-windows-h/m-p/314215#M43924</link>
    <description>&amp;gt; Does it mean that i have to re-start all my project from the begining and&lt;BR /&gt;
&amp;gt; check for MFC support ? Or perhaps i can change some options for the linker,&lt;BR /&gt;
&amp;gt; or something else ??? I have already chek for MFC support in the preoject&lt;BR /&gt;
&amp;gt; settings, because it was not. But nothing has changed, i've got always the&lt;BR /&gt;
&amp;gt; error .&lt;BR /&gt;
&lt;BR /&gt;
If you haven't done alot of work you should probably just start a new project&lt;BR /&gt;
and copy any work you've done to the new project.  There are preprocessor&lt;BR /&gt;
defines and linker settings that some into play as well as the includes you've&lt;BR /&gt;
run into.  Normally you should include any afx*.h files in the stdafx.h header&lt;BR /&gt;
between the undefines for _DEBUG.&lt;BR /&gt;
&lt;BR /&gt;
    |                                              &lt;BR /&gt;
----+----------------------------------------------&lt;BR /&gt;
    |  Byron Blattel                               &lt;BR /&gt;
    |  CADwerx---Applications for AutoCAD          &lt;BR /&gt;
    |  Autodesk Registered Developer               &lt;BR /&gt;
    |  email: byron@cadwerx.net                    &lt;BR /&gt;
    |  web site: http://www.cadwerx.net            &lt;BR /&gt;
    |</description>
    <pubDate>Tue, 30 Oct 2001 18:39:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-10-30T18:39:22Z</dc:date>
    <item>
      <title>Compilation error between "afxwin.h" and "windows.h" (MFC</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/compilation-error-between-quot-afxwin-h-quot-and-quot-windows-h/m-p/314214#M43923</link>
      <description>Hello everybody ! ... I'm very happy to find this news group talking about&lt;BR /&gt;
ARX developpement.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
... Well, I'm using the ObjectArxSDK 2000 to create my arx file.  I'm really&lt;BR /&gt;
not expert, just starting ... so ....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have created an arx file without mfc support because I just needed an&lt;BR /&gt;
'InputMonitor' class first ... I have finished and I can create the Arx file&lt;BR /&gt;
with no errors, and also load it.&lt;BR /&gt;
&lt;BR /&gt;
... -&amp;gt; But know, i want to install a hook on AutoCAD and i always don't need&lt;BR /&gt;
any mfc support for my project but, i have seen that it is required for the&lt;BR /&gt;
Hooks, so i have written 2 more includes files in the "stdafx.h" file :&lt;BR /&gt;
&lt;BR /&gt;
____________________________________________________________________&lt;BR /&gt;
&lt;BR /&gt;
#include "afxwin.h" // need this because rxmfcapi.h needs windows header.&lt;BR /&gt;
#include "rxmfcapi.h"&lt;BR /&gt;
____________________________________________________________________&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Because the 'acedRegisterFilterWinMsg()' and 'acedRemoveFilterWinMsg()'&lt;BR /&gt;
function are defined in it. But now i get a new error ? :&lt;BR /&gt;
___________________________________________________________________&lt;BR /&gt;
&lt;BR /&gt;
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) :&lt;BR /&gt;
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not&lt;BR /&gt;
#include &lt;WINDOWS.H&gt;&lt;BR /&gt;
______________________________________________________________________&lt;BR /&gt;
&lt;BR /&gt;
A error message generated by an #error directive in "afxv_w32.h" file&lt;BR /&gt;
(VC6++)&lt;BR /&gt;
&lt;BR /&gt;
So, what can i do ? I can not include the "afxwin.h" in my project because&lt;BR /&gt;
of the "'Windows.h' already include error". And if i don't put the&lt;BR /&gt;
"afxwin.h" file, i get errors in the "rxmfcapi.h" file.&lt;BR /&gt;
&lt;BR /&gt;
Does it mean that i have to re-start all my project from the begining and&lt;BR /&gt;
check for MFC support ? Or perhaps i can change some options for the linker,&lt;BR /&gt;
or something else ??? I have already chek for MFC support in the preoject&lt;BR /&gt;
settings, because it was not. But nothing has changed, i've got always the&lt;BR /&gt;
error .&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Well, thank's to anyone ...&lt;BR /&gt;
&lt;BR /&gt;
Driss.&lt;/WINDOWS.H&gt;</description>
      <pubDate>Tue, 30 Oct 2001 17:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/compilation-error-between-quot-afxwin-h-quot-and-quot-windows-h/m-p/314214#M43923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-10-30T17:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error between "afxwin.h" and "windows.h"</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/compilation-error-between-quot-afxwin-h-quot-and-quot-windows-h/m-p/314215#M43924</link>
      <description>&amp;gt; Does it mean that i have to re-start all my project from the begining and&lt;BR /&gt;
&amp;gt; check for MFC support ? Or perhaps i can change some options for the linker,&lt;BR /&gt;
&amp;gt; or something else ??? I have already chek for MFC support in the preoject&lt;BR /&gt;
&amp;gt; settings, because it was not. But nothing has changed, i've got always the&lt;BR /&gt;
&amp;gt; error .&lt;BR /&gt;
&lt;BR /&gt;
If you haven't done alot of work you should probably just start a new project&lt;BR /&gt;
and copy any work you've done to the new project.  There are preprocessor&lt;BR /&gt;
defines and linker settings that some into play as well as the includes you've&lt;BR /&gt;
run into.  Normally you should include any afx*.h files in the stdafx.h header&lt;BR /&gt;
between the undefines for _DEBUG.&lt;BR /&gt;
&lt;BR /&gt;
    |                                              &lt;BR /&gt;
----+----------------------------------------------&lt;BR /&gt;
    |  Byron Blattel                               &lt;BR /&gt;
    |  CADwerx---Applications for AutoCAD          &lt;BR /&gt;
    |  Autodesk Registered Developer               &lt;BR /&gt;
    |  email: byron@cadwerx.net                    &lt;BR /&gt;
    |  web site: http://www.cadwerx.net            &lt;BR /&gt;
    |</description>
      <pubDate>Tue, 30 Oct 2001 18:39:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/compilation-error-between-quot-afxwin-h-quot-and-quot-windows-h/m-p/314215#M43924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-10-30T18:39:22Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/compilation-error-between-quot-afxwin-h-quot-and-quot-windows-h/m-p/314216#M43925</link>
      <description>Thanl you Byron, i'm going to try that ...&lt;BR /&gt;
&lt;BR /&gt;
Driss.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Byron Blattel" &lt;INMYSIGNATURE&gt; a écrit dans le message&lt;BR /&gt;
news: 3BDF645A.59A230EF@Tired-of-spam.org...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Does it mean that i have to re-start all my project from the begining&lt;BR /&gt;
and&lt;BR /&gt;
&amp;gt; &amp;gt; check for MFC support ? Or perhaps i can change some options for the&lt;BR /&gt;
linker,&lt;BR /&gt;
&amp;gt; &amp;gt; or something else ??? I have already chek for MFC support in the&lt;BR /&gt;
preoject&lt;BR /&gt;
&amp;gt; &amp;gt; settings, because it was not. But nothing has changed, i've got always&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; &amp;gt; error .&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If you haven't done alot of work you should probably just start a new&lt;BR /&gt;
project&lt;BR /&gt;
&amp;gt; and copy any work you've done to the new project.  There are preprocessor&lt;BR /&gt;
&amp;gt; defines and linker settings that some into play as well as the includes&lt;BR /&gt;
you've&lt;BR /&gt;
&amp;gt; run into.  Normally you should include any afx*.h files in the stdafx.h&lt;BR /&gt;
header&lt;BR /&gt;
&amp;gt; between the undefines for _DEBUG.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     |&lt;BR /&gt;
&amp;gt; ----+----------------------------------------------&lt;BR /&gt;
&amp;gt;     |  Byron Blattel&lt;BR /&gt;
&amp;gt;     |  CADwerx---Applications for AutoCAD&lt;BR /&gt;
&amp;gt;     |  Autodesk Registered Developer&lt;BR /&gt;
&amp;gt;     |  email: byron@cadwerx.net&lt;BR /&gt;
&amp;gt;     |  web site: http://www.cadwerx.net&lt;BR /&gt;
&amp;gt;     |&lt;/INMYSIGNATURE&gt;</description>
      <pubDate>Thu, 01 Nov 2001 08:04:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/compilation-error-between-quot-afxwin-h-quot-and-quot-windows-h/m-p/314216#M43925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-11-01T08:04:15Z</dc:date>
    </item>
  </channel>
</rss>

