473,396 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to export recursive structs in ATL WS?

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
Nov 23 '05 #1
6 1333
=?Utf-8?B?T2hhZCBSZWRsaWNo?= <Oh*********@discussions.microsoft.com>
wrote in news:EC**********************************@microsof t.com:
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?


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
Nov 23 '05 #2
=?Utf-8?B?T2hhZCBSZWRsaWNo?= <Oh*********@discussions.microsoft.com>
wrote in news:EC**********************************@microsof t.com:
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?


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
Nov 23 '05 #3
how exactly? im new in this area... can u plaese elaborate?
thanks,
ohad

"Chad Z. Hower aka Kudzu" wrote:
=?Utf-8?B?T2hhZCBSZWRsaWNo?= <Oh*********@discussions.microsoft.com>
wrote in news:EC**********************************@microsof t.com:
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?


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

Nov 23 '05 #4
how exactly? im new in this area... can u plaese elaborate?
thanks,
ohad

"Chad Z. Hower aka Kudzu" wrote:
=?Utf-8?B?T2hhZCBSZWRsaWNo?= <Oh*********@discussions.microsoft.com>
wrote in news:EC**********************************@microsof t.com:
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?


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

Nov 23 '05 #5
=?Utf-8?B?T2hhZCBSZWRsaWNo?= <Oh*********@discussions.microsoft.com> wrote in
news:23**********************************@microsof t.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
Nov 23 '05 #6
=?Utf-8?B?T2hhZCBSZWRsaWNo?= <Oh*********@discussions.microsoft.com> wrote in
news:23**********************************@microsof t.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
Nov 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jon Slaughter | last post by:
#pragma once #include <vector> class empty_class { }; template <int _I, int _J, class _element, class _property> class RDES_T {
5
by: Paminu | last post by:
Why make an array of pointers to structs, when it is possible to just make an array of structs? I have this struct: struct test { int a; int b;
0
by: Rob Burke | last post by:
I'm trying to create a hybrid Managed/unmanaged C++ DLL that uses ATL and wraps some of DirectShow. When I add a reference to that Managed C++ DLL in another managed project, I end up...
0
by: Ohad Redlich | last post by:
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...
5
by: Bilgehan.Balban | last post by:
Hi, I am currently brushing up my c++ knowledge and I would like to ask you about the differences between classes and C structs, in the function/method perspective. 1) Is it correct to say...
61
by: Marty | last post by:
I am new to C# and to structs so this could be easy or just not possible. I have a struct defined called Branch If I use Branch myBranch = new Branch(i); // everything works If I use Branch...
9
by: seberino | last post by:
I'm a compiler newbie and curious if Python grammar is able to be parsed by a recursive descent parser or if it requires a more powerful algorithm. Chris
29
by: Dom | last post by:
I'm really confused by the difference between a Struct and a Class? Sometimes, I want just a group of fields to go together. A Class without methods seems wrong, in that it carries too much...
10
by: =?Utf-8?B?UGF0cmljayBXZXN0ZXJob2Zm?= | last post by:
Hello, I'm currently working on a small DLL that will be used as an extension to a working application. It is required that the DLL has only one export named "C16_DLLCALL". So I started creating...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.