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 / November 2007

Tip: Looking for answers? Try searching our database.

Expose TypedDataSet via ComInterop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Red Devil - 07 Sep 2007 02:20 GMT
Hi,

I have generated TypedDataSet (TDS) from a xml schema and need it to be used
by a legacy application. I would like to know if  TDS can be interoped with
using interface?

Your reply is much appreciated
Patrick Steele - 07 Sep 2007 03:18 GMT
> Hi,
>
> I have generated TypedDataSet (TDS) from a xml schema and need it to be used
> by a legacy application. I would like to know if  TDS can be interoped with
> using interface?

It can if you want to write the interface to expose everything.  COM is
all about interfaces so with the proper application of interfaces and
attributes, you can make just about any .NET object look like a regular
COM object to COM.

See:

http://www.15seconds.com/issue/040721.htm

Signature

Patrick Steele (patrick@mvps.org)
http://weblogs.asp.net/psteele

Red Devil - 07 Sep 2007 03:28 GMT
Hi Patrick,

Thanks for the info.

Am I right to say without interface, it can't be interoped?

> > Hi,
> >
[quoted text clipped - 10 lines]
>
> http://www.15seconds.com/issue/040721.htm
Patrick Steele - 09 Sep 2007 15:48 GMT
> Hi Patrick,
>
> Thanks for the info.
>
> Am I right to say without interface, it can't be interoped?

No, because the interop wrapper will create a default interface for you,
but it could cause the interop library to be quite large as it has to
recursively build interfaces for all of the .NET types it finds in the
signatures.  And if it runs into a type that it can't natively expose to
COM, it'll generate a paramter/type as simply "Object" and you'll loose
type information.

By creating your own interface, you'll have more control over the types
exposed to COM.

Signature

Patrick Steele (patrick@mvps.org)
http://weblogs.asp.net/psteele

dcvdffzccr - 23 Nov 2007 00:00 GMT
Hello! Good Site! Thanks you! uqgibnctsfwls

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.