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.

Using third-party OCX from Windows Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neils Christoffersen - 30 Sep 2004 14:53 GMT
I've been tasked with upgrading a VB 6 app to .NET. The current app runs
constantly and has a GUI interface, however, the GUI is not necessary so I am
planning to implement the functionality as a Windows Service.

Unfortunately, I need to use the facilities provided by a third-party
(Sterling Commerce Connect:Direct) OCX control.  The control does not have a
GUI component, it just exports some public properties, functions, and events.

My question is how to use this control from within the .NET service. Can I
just use tlbimp to wrap it like I would a regular COM DLL, or is there some
other way to go about this?

Thanks!
Eric - 30 Sep 2004 18:27 GMT
> My question is how to use this control from within the .NET service.
> Can I just use tlbimp to wrap it like I would a regular COM DLL, or
> is there some other way to go about this?

Normally you could just make a reference to a COM component, but that
won't work with Connect Direct because the typelib isn't internal in
the cdauto.dll.

You should be able to import the cdauto.tlb file.

Eric

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.