Modem Code

Posted on 2005-05-11
Last Modified: 2010-04-24
Hi All,

We wrote a code for modem, our application no problem run on Windows 98 but having a problem run on windows 2000 and XP.

Any idea about this?
Please advice..

CString m_ServerNum = “9,64809988”;

CString serverCmd = "ATV1Q0DT";

serverCmd = serverCmd+m_ServerNum;


UINT len = serverCmd.GetLength();

char* StartupStr = (LPTSTR)serverCmd.GetBuffer(len);


if (!::WriteFile (hPort, StartupStr, len, &BytesWritten, NULL))

            return ERROR;
Question by:fox404
    1 Comment
    LVL 55

    Accepted Solution


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Convert VC++  mfc  application  multilanguage 9 182
    FTP Directory Listing 2 58
    multiple DLLs with the same namespace 5 73
    How to 4 47
    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now