MFC API is a POS! I am totally spoiled by *nix programming. Want to read a port? fp = fopen("/dev/ttySO", "r"); fgets(buffer, 1024, fp); Maybe some stty stuff to set echoing, baud if its something odd like 4800, etc. But for Windows... I have to extend some obscure C++ classes, or use a 3rd party solution, where I am setting up baud, and parity, and timeout values, and registering functions. Now my (relatively) nice-looking Stripe Snoop code is pimpled with giant #ifdef's. Samir: This is a fuck. |