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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
manojaminCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.