A protocol forwarding service was created in the past two days, but it was not expected to be difficult: the following error was reported during debugging:
Debug assertion failed
F:/SP/vctools/vc7libs/ship/atlmfc/src/mfc/occcont. cpp (950)
950 rowsCodeYes: assert (iswindow (ptemp-> m_hwnd ));
There was no f disk on the hard disk, So I went wrong to the f disk. At first, I used the wrong keyword search on Google and scanned a lot of English websites. I didn't see it for a long time. I thought it was a problem with the Runtime Library, I am using vs2005 SP1, So I re-installed Vs and didn't install the SP1 Patch. I still had the same error. I had no choice but to change a keyword search and finally found a clue on the Chinese csdn website, it seems that the ActiveX control is not registered because of thisProgramIt was written by someone else. It was previously an ActiveX Control compiled under vc6. Now it is transplanted to vs2005, causing ActiveX to need to be re-compiled. It is estimated that the CLSID number is different. I also blame myself for not carefully reading the output directory during debugging. There is a prompt indicating that the CLSID number is unknown. Then I searched this CLSID number and found it was originally a serial port ActiveX control, I know that the dialog box program has a serial port ActiveX. Copy the control to C/Windows/system32 and enter regsvr32 mscomm32.ocx in the command line. Re-compile, OK!