Aquileo | Recent changes to wikihttps://sourceforge.net/p/swig/wiki/2017-07-07T06:34:26.817000ZRecent changes to wikiAquileo | Discussion for Home page2017-07-07T06:34:26.817000Z2017-07-07T06:34:26.817000Zprabhat Ghoshhttps://sourceforge.net/u/prabhatghosh88/https://sourceforge.net9f332d576dce451fd4e2cb0a8b1a5064ef07b9ee<div class="markdown_content"><p>I have a old C\C++ unmanaged dll. we need to call it from C#. So, trying to generate files through SWIG so the I can call it from C# project - </p>
<p>we have 7 headers, 9 .CPP files in c++ Code Base and it is in module structure, functions are directly written in the .CPP files no class is present , they are like -</p>
<p>RESOURCE.H - Version Info for the DLL<br/>
XTYPE.H - This file contains all type definitions including structs used in the X dll<br/>
XMSG.H - This file contains the message constants<br/>
XCONS.H - This file contains all constant definitions used in the X project<br/>
CX.H - This file contains the function declarations for all functions using C structures which are exported from X.DLL<br/>
SX.H - This file contains the function declarations for all functions exported from X.DLL for use with SQLWindows applications.These functions use a list of variables as arguments.<br/>
XGLOB.H - This file contains the global variable declarations used by X. Also all the function signature present in all the respective header/source file.</p>
<p>I am using below .i file - </p>
<p>%module(directors="1") X</p>
<p>%{<br/>
#include "RESOURCE.H"<br/>
#include "XTYPE.H"<br/>
#include "XMSG.H"<br/>
#include "XCONS.H"<br/>
#include "CX.H"<br/>
#include "SX.H"<br/>
#include "XGLOB.H" <br/>
%}</p>
<p>%include <windows.i><br/>
%feature("director");<br/>
%include "RESOURCE.H"<br/>
%include "XYPE.H"<br/>
%include "XMSG.H"<br/>
%include "XCONS.H"<br/>
%include "CX.H" -> this header includes SX.H,XGLOB.H<br/>
%include "SX.H" -> this header includes XYPE.H<br/>
%include "XGLOB.H" -> this header includes RESOURCE.H,XTYPE.H,XMSG.H,XCONS.H</p>
<p>there are functions where I am facing error while compiling the .i file through SWIG to generate files using Visual Studio 2015 - </p>
<p>few of them are like - </p>
<p>LONG CALLBACK XWndProc(HWND hWnd, UINT messg, WPARAM wParam, LPARAM lParam); - throwing "Syntax error - possibly a missing semicolon." error<br/>
BOOLEAN __declspec(dllexport) WINAPI XGetCardPosition(GETCARDPOSITIONPARAM FAR * CardCoordinates); - throwing "Syntax error in input(1)." error</p>
<p>Please let me know, what should be my .i file so that these errors could be removed and can proceed with generating correct files to call from C# project. </p></div>Aquileo | Discussion for Home page2017-05-21T08:21:26.270000Z2017-05-21T08:21:26.270000Zzhuzhenpinghttps://sourceforge.net/u/zhuzhenping/https://sourceforge.net00936b7a4848275b69019076351112e27491a292<div class="markdown_content"><p>julia?</p></div>Aquileo | WikiPage Home modified by William Fulton2012-12-21T08:22:18.733000Z2012-12-21T08:22:18.733000ZWilliam Fultonhttps://sourceforge.net/u/wsfulton/https://sourceforge.neta4f8a4c5557e1a1a0665dacc83bb453a2eda8754<div class="markdown_content"><p>Welcome to your wiki!</p>
<p>This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: <a class="alink" href="../SamplePage">[SamplePage]</a>.</p>
<p>The wiki uses <a class="" href="/p/swig/wiki/markdown_syntax/">Markdown</a> syntax.</p>
<p><a href="/u/beazley/">David M. Beazley</a><br /><a href="/u/wsfulton/">William Fulton</a><br /><br />
<span class="download-button-50d41c0fe88f3d22b56f5e70" style="margin-bottom: 1em; display: block;"></span></p></div>