OLE Automation Question

  • Thread starter Thread starter john_20_28_2000
  • Start date Start date
J

john_20_28_2000

What is the technology that replaces OLE Automation in .NET? Please.
Sorry, I couldn't find it.

Also, I wanted to know if I have a program, any executable, can I
"automate" it from .net, c#, etc.? Not sure how to ask this, but say I
have an image manipulation program not made by Microsoft, but I want to
use it in my C# program (and assume it doesn't violate anything), can I
do this in .net. Thanks for any advice.
 
You can just add a reference to the application and Visual Studio will
handle creating a Primary Interop Assembly (PIA) for you, or use Tlbimp.exe
to import a type library by creating a PIA, or you can get a PIA from the
creator of the application.

Check MSDN for those terms and for InteropServices. That should set you on
the right track.

HTH,

DalePres
MCAD, MCDBA, MCSE
 
Also, I wanted to know if I have a program, any executable, can I
"automate" it from .net, c#, etc.?

Only if the application exposes its object model (automation). If you could
do it before .net using VB/VC++ etc, you can do it in .Net as well (using
interop). There are several examples of office automation in .net.
 
Back
Top