Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Zlatomir Zlatev
  Where is Zlatomir Zlatev?
 Sofia
 Bulgaria
 Zlatomir Zlatev
 Tags
Subject: DECLARE
Thread ID: 78580 Message ID: 78580 # Views: 2 # Ratings: 0
Version: Visual FoxPro 8 Category: Win32API programming
Date: Wednesday, October 05, 2005 7:02:02 PM         
   


I compiled a visual C++ .dll with this functions in it:

1. BOOL CSerial::zOpen( int nPort, int nBaud )

IN VFP:
DECLARE INTEGER zOpen in c:\zSerial_src.dll integer nPort, integer nBaud
zOpen(2, 9600) && returns "1", so the COM port is opend

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 :(

4. int CSerial::ReadData( void *buffer, int limit )
I don't know how to declarate this one

How to declarate this functions?

please help.

Zlatko

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