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 / ASP.NET / Web Services / June 2005

Tip: Looking for answers? Try searching our database.

how to export recursive structs in ATL WS?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ohad Redlich - 16 Jun 2005 19:33 GMT
hi
i have a struct like
struct A{
int _size;
A* _pArray;
}
i truely want to export this struct and use it as a parameter in my methods
of my web service. unfortunately, when i try to comple the code i get an
error from ATL (attributes provider) is there any way to do it and export the
struct?
thanks
Ohad Redlich
Chad Z. Hower aka Kudzu - 17 Jun 2005 15:40 GMT
=?Utf-8?B?T2hhZCBSZWRsaWNo?= <OhadRedlich@discussions.microsoft.com>
wrote in news:EC8B7AE6-858E-41E4-861D-DA230F6DF967@microsoft.com:
> struct A{
> int _size;
[quoted text clipped - 4 lines]
> code i get an error from ATL (attributes provider) is there any way to
> do it and export the struct?

You can make it serializable.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
     "Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu
Ohad Redlich - 19 Jun 2005 14:14 GMT
how exactly? im new in this area... can u plaese elaborate?
thanks,
ohad

> =?Utf-8?B?T2hhZCBSZWRsaWNo?= <OhadRedlich@discussions.microsoft.com>
> wrote in news:EC8B7AE6-858E-41E4-861D-DA230F6DF967@microsoft.com:
[quoted text clipped - 14 lines]
>
> Blog: http://blogs.atozed.com/kudzu
Chad Z. Hower aka Kudzu - 19 Jun 2005 14:22 GMT
=?Utf-8?B?T2hhZCBSZWRsaWNo?= <OhadRedlich@discussions.microsoft.com> wrote in
news:231DD264-D149-46A6-AE47-921F1D49C2DC@microsoft.com:
> how exactly? im new in this area... can u plaese elaborate?

I could, but MSDN and the VS help do it much better than I can. Search either for seriliazable or
serialize, and you'll find plenty of examples etc.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
     "Programming is an art form that fights back"

Blog: http://blogs.atozed.com/kudzu

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.