Reading phone number using MS Comm Activex Control
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Reading phone number using MS Comm Activex Control

  1. #1
    Join Date
    Mar 2005
    Posts
    140

    Reading phone number using MS Comm Activex Control

    Hi,

    Please tell me how can i read my own phone number from my modem using MS-Comm control.

    Thanks,
    Joe

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,605

    Re: Reading phone number using MS Comm Activex Control

    1. Forget "MS-Comm control" exists (unless you program something in VB). Use Windows API to program serial communications, it is not so complicated: see this example.
    2. To read information from modem you will need to use AT commands, so you will need to find and read documentation about AT commands your modem supports.
    3. To read the phone no. from SIM card the AT command AT+CNUM is used. Note that not all providers support this command. Note also that before sending it you must properly activate your modem and SIM card.
    Victor Nijegorodov

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center