Article View: borland.public.cppbuilder.nativeapi
Article #1758Re: CALLBACK Hell
From: Mike Collins
Date: Thu, 14 Jun 2007 18:29
Date: Thu, 14 Jun 2007 18:29
29 lines
1978 bytes
1978 bytes
I see what you are saying Alan. however, in my main form, I have a pointer declared to this object, in the forms public section. I assumed that this would be enough based on the extern i.e. indicates that there is a an object of this type somewhere. I've tried including the Main.h in the wrapper class but I get some kind of circular reference compile error. The only thing that appears to fix it is if i declare TInjectController *InjectController at the start of the TInjectController implementation - before the constructor. Is this valid ? Is there any issues with this? Can you suggest a better approach? Thanks again, Mike "Alan Bellingham" <alan@lspace.org> wrote in message news:agr2731rl90vspqaucjmhlk7e2al16e028@4ax.com... > "Mike Collins" <its@TheBottomOfThePost> wrote: > >>extern TInjectController *InjectController; > > Declaration. > >>// implimentation >>void CALLBACK TInjectController::IPCProcessMsg(char *cName, void *pMsgBuf, >>unsigned int iMsgLen, >> void *pRtnBuf, unsigned int
Technical Details
Message-ID:
<467178d3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46716c33@newsgroups.borland.com> <agr2731rl90vspqaucjmhlk7e2al16e028@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f434271506d1483b X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi References: <46716c33@newsgroups.borland.com> <agr2731rl90vspqaucjmhlk7e2al16e028@4ax.com> Subject: Re: CALLBACK Hell Date: Thu, 14 Jun 2007 18:29:54 -0000 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073 NNTP-Posting-Host: 86.145.184.96 Message-ID: <467178d3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1181841619 86.145.184.96 (14 Jun 2007 10:20:19 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail