Re: a hobby class on microcontrollers




When I open WDIP.EXE in a text editor, it seems like your are using "COM3",
"COM4",... "COM12" for opening the COM port. Did you test it for "COM9"?

Why? Is COM9 special on window?

This will fail on Windows. I'm using this C-code to open a COM-port:

        char buf[100];
        sprintf(buf, "\\\\.\\COM%i", m_comPort);
        m_portHandle = CreateFile(buf, GENERIC_READ | GENERIC_WRITE, 0, NULL,
OPEN_EXISTING, 0, NULL);
        if (m_portHandle == INVALID_HANDLE_VALUE) ...

Yes, I am using CreateFile to open them.


.