I 've a simple question here.
Can someone explain to me whats the different between the lib and DLL?

If I plan to write a Serial Port driver and I require to do the following things...
  • A function to open the serial port like OpenPort(char *PortNo)
  • A Send data function like Send2Mobile(char *data)
  • A CALLBACK function to the main program when received a data from serial port. This call back function might return the data in structure form.


That the minimum function that I need, hope someone can give me some idea.

So far I can write a DLL after getting the guide line from parksie
but not able to write a call back function.


regards,
Chris.C