To be able to use a Data Translation acquisition board , I have had to create a DLL
from Visual C++, to which I can use from my PB application.
I need help for declaring a function that figures in the following way in the include
file of C:
Maybe something like that??
DABRDPROC is a callback procedure.
The callback function must take the following form:
Name lpszName
Type LPSTR
Description The board name, passed as an ASCII string.
Range N/A
Name lpszDriverEntry
Type LPSTR
Description The driver name and parameters. (For example, "dt3831.drv 0x260
10 6a 7b" indicates that a DT3831 driver is installed at I/O port 260
(hex) with IRQ 10, DMA channel 6 for the ADC, and DMA channel 7
for the DAC.)
Range N/A
Name lParam
Type LPARAM
Description The value passed to olDaEnumBoards.
Range N/A
Well, any help would be appreciate, thank in advance...
------------------
Gustavo Asplanatti
[email protected]
[This message has been edited by Gustavo Asplanatti (edited March 22, 2006).]
from Visual C++, to which I can use from my PB application.
I need help for declaring a function that figures in the following way in the include
file of C:
Code:
#ifdef STRICT typedef BOOL (CALLBACK *DABRDPROC) (PTSTR pszBrdName, PTSTR pszEntry, LPARAM lParam); #else typedef FARPROC DABRDPROC; #endif ECODE WINAPI olDaEnumBoards (DABRDPROC pfnDaBrdProc, LPARAM lParam);
Maybe something like that??
Code:
DECLARE FUNCTION olDaEnumBoards LIB "olDa32.dll" ALIAS "olDaEnumBoards" (BYVAL lpszName AS ANY, BYVAL LParam AS LONG) AS LONG
The callback function must take the following form:
Code:
BOOL __export CALLBACK DaBrdProc (LPSTR lpszBrdName, LPSTR lpszDriverEntry, LPARAM lParam)
Type LPSTR
Description The board name, passed as an ASCII string.
Range N/A
Name lpszDriverEntry
Type LPSTR
Description The driver name and parameters. (For example, "dt3831.drv 0x260
10 6a 7b" indicates that a DT3831 driver is installed at I/O port 260
(hex) with IRQ 10, DMA channel 6 for the ADC, and DMA channel 7
for the DAC.)
Range N/A
Name lParam
Type LPARAM
Description The value passed to olDaEnumBoards.
Range N/A
Well, any help would be appreciate, thank in advance...
------------------
Gustavo Asplanatti
[email protected]
[This message has been edited by Gustavo Asplanatti (edited March 22, 2006).]
Comment