I need assistance in using C\C++ in WinCE. I don't have much expirience in this so please do take my apologies if I made some trivial error.
I've developing stock count application for Datalogic WinCE 5 and 6 device. I've downloaded device SDK with help file and it states that the DLL (DL_API.lib) export their function in 3 ways:
1. Regular exported functions,
2. Class functions,
3. ActiveX
I can import and use "regular" functions okay.
However, in regular functions I can only switch on only one Led on my device:
void DLLED_Set(BOOL value) (this controls green led, my device has two: Green and Red). This works ok.
So I have to use Class or ActiveX for RedLed:
This is help from Class functions:
DlDevice::SetRedLed
It enables/disables the red Led according to the parameter setting.
void SetRedLed(unsigned long bValue)
Parameters
unsigned long
if different from zero it turns on the green Led. If set to zero, it turns off the green Led.
Return Value
None
Requirements
Header:
declared in DL_Device.h, include DL_Device.h.
Library:
use DL_API.lib.
This is for ActiveX:
bGreenLedOn
This property allows switching on (set to “True”) or switching off (set to “False”) the green led. This property is not available at design time and is a write-only property at runtime.
Syntax
object.bGreenLedOn [= True|False]
Data Type
Boolean
Requirements
Header:
include DLCEDevice.h
IIDs, CLASSIDs:
include DLCEDevice_i.c
Type Library:
use DLCEDevice.tlb
Design Time Library:
use DLCEDevice.dll
I did export from DLL (atthached) but I can't import.
My question, can someone direct me how to import a function from a class in DLL or ActiveX property or fuction from DLL?
Sorry if this post seems long, but I think that the information will be of use to anyone who is using DLL functions for specific device.
Thank you,
Dragan