Article View: borland.public.cppbuilder.nativeapi
Article #9078Re: CALLBACK Functions
From: Andrue Cope [TeamB]
Date: Fri, 13 Aug 2004 10:33
Date: Fri, 13 Aug 2004 10:33
35 lines
1959 bytes
1959 bytes
McKool wrote:
> typedef void (CALLBACKATTR *t_UsrRxIntHdlr)( UINT16 count, CAN_OBJ
> FAR * p_obj);
void CALLBACKATTR YourCallBackFunction1( UINT16 count,
CANOBJ FAR * p_obj )
{
... whatever
}
> typedef void (CALLBACKATTR * t_UsrExcHdlr)( FUNC_NUM func_num, INT32
> err_code, UINT16 ext_err,char * message );
void CALLBACKATTR YourCallBackFunction2( FUNC_NUM func_num,
INT32 err_code,
UINT16 ext_err,
char * message )
{
.. whatever again
}
> UINT32 InitBoard( UINT16 BoarSegment,
> t_UsrIntHdlr CallbackfunctionHandler,
> t_UsrExHdlr ExeptionFunctionHandler);
InitBoard( yourBoarSegment,
YourCallBackFunction1,
YourCallBackFunction2 );
That should do it but might need some tweaking - let me know :)
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<411c98fb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<411c6647@newsgroups.borland.com> <411c7648@newsgroups.borland.com> <411c7b53$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,57461044372eb966 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@spammy.com> Subject: Re: CALLBACK Functions Newsgroups: borland.public.cppbuilder.nativeapi References: <411c6647@newsgroups.borland.com> <411c7648@newsgroups.borland.com> <411c7b53$1@newsgroups.borland.com> User-Agent: XanaNews/1.16.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <411c98fb$1@newsgroups.borland.com> Date: 13 Aug 2004 03:33:31 -0700 X-Trace: newsgroups.borland.com 1092393211 217.207.223.34 (13 Aug 2004 03:33:31 -0700) Lines: 35 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail