Modem Code

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;

serverCmd.Insert(serverCmd.GetLength(),13);

UINT len = serverCmd.GetLength();

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

 

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

            return ERROR;
fox404Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
All Courses

From novice to tech pro — start learning today.