Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2004

Tip: Looking for answers? Try searching our database.

OLE Automation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim - 28 Sep 2004 15:27 GMT
I have a VB.NET app that I want to integrate with a couple of other
applications that only support OLE interfaces. Is this likely to be possible
in VB.NET (I don’t want to have to use C++), and if so, how difficult is it?

If it can’t be done, what are the best options to suggest to the vendors of
these other apps for a client interface that will be .net friendly? Web
services are out of the question as the applications will only ever be run on
stand-alone PCs without IIS.

Thanks for your help and advice.

Tim.
Rob Locher - 29 Sep 2004 14:24 GMT
Hi Tim.  There's nothing to it most of the time.  If you're using
Visual Studio .NET, just add a reference to your project.  In the "Add
Reference..." dialog, click on the COM tab, and pick your COM object
from the list.  You can also browse to a type lib.  You should then
see a reference to your COM component as if it were a .NET namespace.
If all goes well, you can then pretend that it's a .NET assembly
instead of a COM component.  That works 95% of the time.  If that
doesn't work the problems usually aren't too hard to fix.

The best option if you are dealing with a third party is to ask them
for a "primary interop assembly", which is a .NET wrapper that is
supposed to be created by the author of the component.  If you have a
PIA you are pretty much guaranteed to not have integration problems.

You can read up on this stuff in just about any book about Windows
Forms.  There are undoubtedly plenty of examples on MSDN and more on
the web.

- Rob

> I have a VB.NET app that I want to integrate with a couple of other
> applications that only support OLE interfaces. Is this likely to be possible
[quoted text clipped - 8 lines]
>
> Tim.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.