Solved

Accessing a COM .exe from VB .Net

Posted on 2004-09-23
2
173 Views
Last Modified: 2010-04-23
I'm really sorry if this is a dumb question but how do I get at the services on a COM exe from within VB .Net?  I have just started using VB .Net having been using VB6 for ages and ages and I cannot see hwo to do it.  As usual the help is useless.

Goodwill to all,

Rob.
0
Comment
Question by:brushhead
2 Comments
 
LVL 28

Expert Comment

by:iboutchkine
ID: 12132291
try this

The System.Diagnostics.Process class provides several methods to launch and controls other Windows
processes. For example, the following code sample shows how to run Notepad, pass arguments to it,
and run it from inside a given intial directory:

' this code assumes that you have used this Imports statement
' Imports System.Diagnostics

Dim proc As New Process()
' Prepare to run Notepad and load C:\Autoexec.bat in it.
proc.StartInfo.FileName = "Notepad.exe"
proc.Start()


0
 
LVL 3

Accepted Solution

by:
RacinRan earned 50 total points
ID: 12135298
The COM component has to be installed and registered on the development machine.  The you add a reference to it using Add Reference and selecting on the COM tab.  Add it to you project and you should be able use the objects just like you would use .Net objects.

Racin
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

9 Experts available now in Live!

Get 1:1 Help Now