logo       

SWIG and MFC ...: msg#00196

programming.swig

Subject: SWIG and MFC ...

Am developing SWIG interfaces for code built with MFC. When I compile the swig .i file it generates the wrap.cpp file. I then have to manually add the "#include "stdafx.h" line or I get lots of errors. How can I avoid the manual part and get this #include line into the top of the wrap.cpp file? If I put the following stmt in my .i file:

%{
#include        "stdafx.h"
%}

I get an error from the linker about not including windows.h in an mfc app. I am building a non-mfc dll.

Thanks,

Lawrence.
------------------------------------------------------------------------------------------
Lawrence Lordanich            Tel:            +1 858-651-1486
Qualcomm Inc. (AA-340I)    Fax:           +1 858-845-8825
10290 Campus Point Drive  Email:        llordani@xxxxxxxxxxxx
San Diego, CA 92121-1522  TimeZone:  GMT-8 (PST)
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise