How to test the MTTTY example of serial comm in Win32 console?
-
Hello all, I am new to Windows programming and VStudio.Net. I am just trying to assess COM1 by writing a simple win32 console project using VS.Net. I built an empty console project and add the files from the MSDN MTTTY example. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn\_serial.asp but I have the following error while compiling: Linking... Init.obj : error LNK2019: unresolved external symbol __imp__InitCommonControls@0 referenced in function _GlobalInitialize Transfer.obj : error LNK2019: unresolved external symbol __imp__timeSetEvent@20 referenced in function _TransferRepeatCreate Transfer.obj : error LNK2019: unresolved external symbol __imp__timeKillEvent@4 referenced in function _TransferRepeatDestroy LIBCD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Debug/Serial_win32.exe : fatal error LNK1120: 4 unresolved externals Did I miss anything here? How can I get these 4 error fixed? Besides, I just want to assess the COM ports using DOS style programs and not GUIs, should I must learn win32 API programming? Thanks very much!