Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: wklove2003

Search: Search took 0.01 seconds.

  1. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    Here is where the declaration is. So 16 characters.


    #ifdef __APPLE_CC__
    char mDevice[64];
    #else
    char mDevice[16];
    #endif
  2. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    Serial.hpp


    #ifndef SERIAL_HPP
    #define SERIAL_HPP

    class Serial {
    public:
    class SerialError
    {
  3. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    Most of this was written by someone else, so I am not sure why they did not use CString.

    Here is the string_buffer.cpp


    #include "internal.hpp"
    #include "string_buffer.hpp"
    ...
  4. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    bool Serial::connect()
    {
    if (mConnected)
    {
    printf("You are already connected, please disconnect first\n");
    return false;
    }

    COMMTIMEOUTS cto;
    DCB dcb;
  5. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    bool Serial::connect()
    {
    if (mConnected)
    {
    printf("You are already connected, please disconnect first\n");
    return false;
    }

    COMMTIMEOUTS cto;
    DCB dcb;
  6. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    On a seperate note, I do appreciate you guys for trying to help and I apologize.
  7. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    "The value of the error code is 2"

    That is saying that it cannot find the specified file correct? So I know that should be self explanatory, but can you explain to me what file it is talking...
  8. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    Sorry, I just havent been able to get a GetLastError() function to return anything. That is why I started trying other things. Seems to only cause problems when I try putting something in there. ...
  9. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    Ok, so when I try to step through in debug and putting @err,h in Watch window I get:

    Watch:
    @err,h CXX0026: Error: bad format string

    CallStack:
    > haas.exe!main(int aArgc, char * * aArgv) ...
  10. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    I am not getting any message, they are running the same way. No errors pop up in the call stack for either program. Nothing happens when I inserted the GetLastError function
  11. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    How do I call the GetLastError()? Sorry, this is all very new to me
  12. Replies
    31
    Views
    16,932

    Re: CreateFile Failed problem

    Is there a problem with this file?

    serial.win32.cpp-external dependency file




    bool Serial::connect()
    {
    if (mConnected)
  13. Replies
    31
    Views
    16,932

    CreateFile Failed problem

    Okay, So I am new to programming and am trying to transfer data from a machine via RS232 to an "adapter" program that allows connection to a "client or agent" program that sends the data to the...
  14. Replies
    2
    Views
    1,975

    Re: C++ Newbie, Need Help!

    Thank you, I think that solved the problem. Can't believe I didn't see that
  15. Replies
    2
    Views
    1,975

    C++ Newbie, Need Help!

    Hey Guys, So I am trying to implement a socket program that will allow me to transfer data from a machine and monitor it remotely. Having issues with a particular part of this program. I am a newb...
Results 1 to 15 of 15


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center