Building an activeX component to call phone dialer

Please define a subroutine that passes a phone number and calls the windows phone dialer. The component does not need to include a vb form.

Thanks
iokepaAsked:
Who is Participating?
 
manojaminConnect With a Mentor Commented:
iokepa,

I am happy that you've got what you were looking for. I am just re-submitting for the points.

In you class module do follwing

'declare the variable for mscomm
Private m_Comm As Object

Private Sub Class_Initialize()
    ' setting the object to MSCOMM
    Set m_Comm = CreateObject("MSCOMMLib.MSComm")
End Sub
0
 
danlevansCommented:
Is this what you need?

Shortcut to the file :
http://support.microsoft.com/download/support/mslfiles/Vb32ras.exe 
0
 
manojaminCommented:
Hi iokepa,

In you class module do follwing

'declare the variable for mscomm
Private m_Comm As Object

Private Sub Class_Initialize()
    ' setting the object to MSCOMM
    Set m_Comm = CreateObject("MSCOMMLib.MSComm")
End Sub

get the Dial subroutine code and change 'Communications' to m_Comm' from following site...

<a href="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2120"></a>

'Hope this will help you...
0
 
iokepaAuthor Commented:
manojamin

Thank you, those are the pieces that I need.

danlevans, the code that you referenced was VB4. I appreciate your input but I could not work with your reference.

manojamin, please submit for points

0
All Courses

From novice to tech pro — start learning today.