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

> 2. BOOL CSerial::zClose( void )
> 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.



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