Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Barbara Peisch
  Where is Barbara Peisch?
 Oceanside
 California - United States
 Barbara Peisch
 Tags
Subject: RE: DECLARE
Thread ID: 78580 Message ID: 78598 # Views: 2 # Ratings: 0
Version: Visual FoxPro 8 Category: Win32API programming
Date: Wednesday, October 05, 2005 10:59:39 PM         
   


>
> > 2. BOOL CSerial::zClose( void )
> >
> > IN VFP:
> > DECLARE INTEGER zClose in c:\zSerial_src.dll
> > zClose() returns an error "Declare DLL call caused an exception"
> > Why?
> >
> > 3. int CSerial::ReadDataWaiting( void )
> >
> > DECLARE INTEGER ReadDataWaiting in c:\zSerial_src.dll
> > ReadDataWaiting() returns the same error :(
>

>
> My guess (and this is only a guess) is that you don't return anything from zClose or ReadDataWaiting and so you don't need the INTEGER in your declarations.
>
>
> -BP
> www.peisch.com


Well, Barbara, his function actually returns something: Boolean value, which can be interpreted as Integer.

Maybe VFP do not like that "void" as function parameter? (Sorry if I'm shooting totally off the mark, my C skill is pretty rusty now.)

Regards,

Ilya

ENTIRE THREAD

DECLARE Posted by Zlatomir Zlatev @ 10/5/2005 7:02:02 PM
RE: DECLARE Posted by Barbara Peisch @ 10/5/2005 10:03:41 PM
RE: DECLARE Posted by Ilya Rabyy @ 10/5/2005 10:59:39 PM