Inline, please...
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
David said:
Thank you Ilya,
that sounds good... But I did'nt find a manufacturer who says he has a
driver.
That means you could not use the device. No driver means device is useless
on specific OS.
So I think I have to go the hard way, to call PCMCIA or hardware-
functions.
There are no "hardware functions". Hardware looks like a set of memory
addresses, IO ports (on some platforms), IRQ and DMA.
CPU interacts with that stuff using special IO commands, accessing memory
mapped IO, processing IRQ and handling DMA.
This is done by the driver.
Or *CAN* it be possible to use API's for other OSes (like WinXP)?
But I don't think so...
It's not. Drivers from different OS can not be used as well.
Isn't it possible to "connect" to the device inside the PCMCIA slot and to
give "Commands" to it?
It is possible, and that's what driver does. There's no "connection", it
just access device IO.
You can not do that from the user's app as OS won't let you.
Driver can be written in C and assembly, VB is not an option for a driver.
Something like
Set d = System.?.Devices("PCMCIA")
d.Open(Fullspeed)
result=d.PutCommand(ReadTheCard, CardContents)
(Don't laugh too much, please) ;-)
What you're describing is a high level API. It should be provided by the
device manufacturer.
How dows OS communicate with the device?
It's not. It talks to the driver which talks to hardware.
20 years ago you can talk to hardware directly even from Basic applications,
but that's no longer an option.
OS won't allow app to do that to protect its own integrity. So, you need at
least a driver for that specific hardware for the specific OS.
Another DLL might expose easy to use API so you won't have to talk to the
driver directly using IOCTL.
If you can not find a driver for that device, your best bet would be to
choose another device which connects to something CE have a driver for
already.
Say, you might find a reader which connects to a serial port. Serial ports
are supported by CE and there's an API to control them.
Now you can talk to the reader via that port and get your data.