it works~ thx
 
 
 
------------------ Original ------------------
From: "William S Fulton"<wsf@fultondesigns.co.uk>;
Date: 2008年10月16日(星期四) 上午7:34
To: "wtuben"<wtuben@qq.com>;
Cc: "swig-devel"<swig-devel@lists.sourceforge.net>;
Subject: Re: [Swig-devel] Why Error?
 
wtuben wrote:
> when I define the following in example.i :
>     #define THREAD_FUNC_DECL(function,param) DWORD WINAPI function(void
> *param)
>     typedef unsigned (__stdcall *THREADFUNC)(void *);

> the swig raise the error "Syntax error in input(2)."

> and when I rewrite to that:
>        #define THREAD_FUNC_DECL(function,param) DWORD WINAPI
> function(void *param)
>        typedef unsigned (*THREADFUNC)(void *);

> it gets ok!

> but I Just only need the first one, what should I do?


__stdcall is not ISO C++. If you #defined __stdcall to nothing then it
fixes the problem for SWIG or %include "windows.i" which has a number of
these fixes for Windows.

William