CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Apr 2008
    Posts
    2

    Not Another Serial Thread! Noo

    Ok I'm not asking for code I've got that. Im running a speech web application on framework 1.1 in visual studio 2003, iis version 5.0, sasdk for speech recognition blah blah blah

    For those who care I'm making a mod of this http://www.devx.com/dotnet/Article/30866/0 project of voice activating an arobot.

    Heres the catch. Right about here...

    CreateFile("COM3" blah blah blah blah); the kernel32.dll version

    Create file gives me -1 an invalid handle value then I

    throw(new ApplicationException(GetLastError())

    Now on my pc I get an error code of 5 meaning access denied.... Does anyone know if installing in the wrong order may scre me up? or some extra permissions are necesary to get this workin?

    But then on my laptop I get an error code of 2 meaning file not found. Im guessing this is because I have no com ports on the laptop and it cant find com. Still though im using a usb to serial adapter.

    If either of these problems is corrected I win. Just need this to work once on the laptop or pc. So whats the deal with access denied for writing to a serial port?


    Thanks petabytes in advance
    Last edited by ryanshowseason2; April 20th, 2008 at 11:24 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured