Re: midl question

2008-03-31 Thread Robert Shearman
Alistair Leslie-Hughes wrote:
> Hi Rob,
>
> What work would need to be done to get widl to support __stdcall?

The issue is that widl doesn't support functions in typedefs. Further 
issues are that widl doesn't support writing out the function typedef 
once parsed and widl doesn't store the calling convention for the 
function and so it currently can't be written out correctly.

-- 
Rob Shearman





Re: midl question

2008-03-31 Thread Alistair Leslie-Hughes
Hi Rob,

What work would need to be done to get widl to support __stdcall?

Best Regards
 Alistair Leslie-Hughes





Re: midl question

2008-03-27 Thread Dmitry Timoshkov
"Alistair Leslie-Hughes" <[EMAIL PROTECTED]> wrote:

> In an IDL file I need to define the following
> typedef HRESULT (__stdcall *FExecuteInAppDomainCallback) (void* cookie);
> 
> How do i get midl to understand what __stdcall is defined to?

indexsrv.idl does:

cpp_quote("struct tagTEXT_SOURCE;")
cpp_quote("typedef HRESULT (WINAPI *PFNFILLTEXTBUFFER)(struct tagTEXT_SOURCE 
*pTextSource);")

-- 
Dmitry.




RE: midl question

2008-03-27 Thread Alistair Leslie-Hughes


> Date: Thu, 27 Mar 2008 12:42:54 +> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> CC: wine-devel@winehq.org> Subject: Re: midl question> > Alistair 
> Leslie-Hughes wrote:> > Hi,> > > > In an IDL file I need to define the 
> following> > typedef HRESULT (__stdcall *FExecuteInAppDomainCallback) (void* 
> cookie);> >> > How do i get midl to understand what __stdcall is defined to?> 
> > midl or widl? AFAIK midl supports the __stdcall keyword.> Hi Rob,
 
widl.
 
Best Regards
 Alistair Leslie-Hughes
_
Are you paid what you're worth? Find out: SEEK Salary Centre
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=OCT07_endtext_salary&_m=EXT


Re: midl question

2008-03-27 Thread Robert Shearman
Alistair Leslie-Hughes wrote:
> Hi,
>   
> In an IDL file I need to define the following
> typedef HRESULT (__stdcall *FExecuteInAppDomainCallback) (void* cookie);
>
> How do i get midl to understand what __stdcall is defined to?

midl or widl? AFAIK midl supports the __stdcall keyword.


-- 
Rob Shearman





RE: midl question

2008-03-27 Thread Alistair Leslie-Hughes




> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: wine-devel@winehq.org> 
> Subject: Re: midl question> Date: Thu, 27 Mar 2008 19:50:34 +0800> > 
> "Alistair Leslie-Hughes" <[EMAIL PROTECTED]> wrote:> > > In an IDL file I 
> need to define the following> > typedef HRESULT (__stdcall 
> *FExecuteInAppDomainCallback) (void* cookie);> > > > How do i get midl to 
> understand what __stdcall is defined to?> > indexsrv.idl does:> > 
> cpp_quote("struct tagTEXT_SOURCE;")> cpp_quote("typedef HRESULT (WINAPI 
> *PFNFILLTEXTBUFFER)(struct tagTEXT_SOURCE *pTextSource);") Hi Dmitry,
  This isnt going to work for me.  Here is more information that I should of 
included in the first email.
interface ICLRRuntimeHost : IUnknown
...
HRESULT ExecuteInAppDomain([in] DWORD dwAppDomainId,
   [in] FExecuteInAppDomainCallback pCallback,   
[in] void* cookie);
...
So FExecuteInAppDomainCallback has to be defined or I will get compile errors.
 
Best Regards
 Alistair Leslie-Hughes
_
Are you paid what you're worth? Find out: SEEK Salary Centre
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=OCT07_endtext_salary&_m=EXT