Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to test the MTTTY example of serial comm in Win32 console?

How to test the MTTTY example of serial comm in Win32 console?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestioncsharphtmlvisual-studio
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pkyiu
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups