Re: C# Prototype & Delegate in Compact Framework
- From: "Vadym Stetsyak" <vadym_s@xxxxxxx>
- Date: Tue, 19 Sep 2006 10:26:53 +0300
Hello, ThinkRS232!
T> Win32 DLL Function Prototype
T> -----------
T> Status = XferFiles(int PortID, int Direction, int Protocol, LPCTSTR
T> Fspec, int Flag, int (WINAPI *Callback)(int Chgflg, char *Fname, long
T> Bytcnt, int Curblk, int Errcnt, unsigned Rate));
T> 1. What would the above C# function prototype look like?
T> 2. And the delegate for the callback function?
What type returns XferFiels(...)?
C#
[DllImport("your.dll", SetLastError=true)]
XferFiles( int portID, int Direction, int Protocol, string Fspec, int Flag, CallbackDelegate callback);
delegate int CallbackDelegate(int Chgflg,
[MarshalAs(UnmanagedType.LPStr]
string Fname,
long Bytcnt,
int Curblk,
int Errcnt,
uint Rate);
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
- Prev by Date: Re: Timeout call back in asynchronous web request.
- Next by Date: Re: Thesaurus Implementation
- Previous by thread: PLEASE HELP! (play audio)
- Next by thread: Re: C# Prototype & Delegate in Compact Framework
- Index(es):
Relevant Pages
|