问题:
How do I avoid the Open DriverLINX dialog box when my application starts?
答案:
To avoid the Open DriverLINX dialog, provide the driver name to the application. In the case of the KPCMCIA-PIO24-C card, the driver name is kpcpio.Typical code is shown below:
C/C++: hInstance = OpenDriverLINX(hWnd,"kpcpio");VB: DriverLINXSR1.Req_DLL_name = "kpcpio"
Delphi: DriverLINXSR1.Req_DLL_name := 'kpcpio';
If the DriverLINX driver for KPCMCIA-PIO24-C has been installed, then the code above would load the driver.
If the driver loading fails, because maybe your application has been run on a computer where the DriverLINX driver has not been installed, then the Open DriverLINX dialog will apprear to give you another chance to select a driver. To suppress this behavior, append a dollar sign character onto the end of the driver name as shown below:
C/C++: hInstance = OpenDriverLINX(hWnd,"kpcpio$");VB: DriverLINXSR1.Req_DLL_name = "kpcpio$"
Delphi: DriverLINXSR1.Req_DLL_name := 'kpcpio$';
Other driver names:
Model(s) Driver Name KPCI-3101,KPCI-3102,KPCI-3103,KPCI-3104
kpci3100 KPCI-3110, KPCI-3116
kpci3100 KPCI-3107, KPCI-3108
kpci3108 KPCI-1801HC, KPCI-1802HC
kpci1800 KPCI-PIO24, KPCI-PIO96
kpcipio KPCI-3160
kpci3160 KPCI-PDISO8A, KPCI-PIO32IOA
kpciiso KPCI-3130,KPCI-3132
kpci3130 KPCI-3140
kpci3140 DAS-1800 Series
kmb1800 DAS-1700 Series
kmb1700 DAS-800 Series
kmb800 DAS-TC, DAS-TC/B
kdastc DDA-08, DDA-16
kdda816 CTM-05, CTM-05/A, CTM-10
lmbctm PIO-xx, REL-16, PDISO-8, PIO-SSR-XX
kmbpio DAS-1600 Series (requires full path to the DLL)
c:\drvlinx4\kmbdas16.dll DAS-8 Series (requires full path to the DLL)
c:\drvlinx4\kmbdas8.dll KPCMCIA Analog I/O
kpcaiao KPCMCIA-8AOU-C, KPCMCIA-8AOB-C
kpcao KPCMCIA-PIO24-C
kpcpio
此常见问题适用于:
无产品系列
产品:
常见问题 ID 70091
查看所有常见问题 »