Click here to Skip to main content
15,915,851 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: <fstream> Pin
Matt Newman4-Jun-02 7:49
Matt Newman4-Jun-02 7:49 
GeneralRe: <fstream> Pin
dazinith4-Jun-02 7:38
dazinith4-Jun-02 7:38 
GeneralRe: <fstream> Pin
Rama Krishna Vavilala4-Jun-02 7:49
Rama Krishna Vavilala4-Jun-02 7:49 
GeneralRe: <fstream> Pin
Matt Newman4-Jun-02 7:58
Matt Newman4-Jun-02 7:58 
GeneralDAO and Visual Studio .NET Pin
4-Jun-02 7:01
suss4-Jun-02 7:01 
GeneralMultiple view of a doc in MDI Pin
4-Jun-02 6:47
suss4-Jun-02 6:47 
GeneralRe: Multiple view of a doc in MDI Pin
Ed Gadziemski4-Jun-02 14:26
professionalEd Gadziemski4-Jun-02 14:26 
Generalgc struct/class Help Pin
Paul Watson4-Jun-02 6:49
sitebuilderPaul Watson4-Jun-02 6:49 
Just some pointers (ooh I made a C++ joke... :rolleyes) or a tip or two would be helpful. I can figure it out once I get shown the start of the path Smile | :)

I am trying to return more than one result at a time from the CP Webservice and storing them into what I would call an array. Not sure what you call it in C++. Calling the webservice is fine, I have managed to pass it the input parameteres it needs. It is getting out all the results in one go that is troubling me. Right now my code returns it variable by variable, with a call to the webservice for each result and variable! Not very good at all.

I managed to do this:
__gc struct ArticleBriefs
{
   public:
       String* URL;
	   String* Title;
	   String* Author;	   
	   String* Posted;
	   String* Updated;
	   String* Status;
	   String* Description;
};


And I managed to load it one at a time like so:
LatestBrief* proxy = new LatestBrief();
	
	ArticleBriefs* cArticles = new ArticleBriefs();
			
	cArticles->Author = proxy->GetLatestArticleBrief(iNumArticles)[0]->Author;
...


However that is not an array (though obviously the right hand bit is an array, but I cannot transfer it over to the left hand, ya see?)

So my simple question is how do I turn that struct into an array and then how do I return the multiple values from the GetLatestArticleBrief web service method into the array?

*grumble* this is so easy in C# or VB *grumble*

And yes, you may laugh yourself silly at my question/code/vb-simplified-mind, I have my thick fire proof suit on Big Grin | :-D

Thanks guys.

regards,
Paul Watson
Bluegrass
Cape Town, South Africa

The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge

Tim Smith wrote:
Over here in the third world of humor (a.k.a. BBC America),

peterchen wrote:
We should petition microsoft to a "target=_Paul" attribute.
GeneralRe: gc struct/class Help Pin
Rama Krishna Vavilala4-Jun-02 7:03
Rama Krishna Vavilala4-Jun-02 7:03 
GeneralRe: gc struct/class Help Pin
Paul Watson4-Jun-02 21:50
sitebuilderPaul Watson4-Jun-02 21:50 
GeneralRe: gc struct/class Help Pin
Anders Molin4-Jun-02 9:31
professionalAnders Molin4-Jun-02 9:31 
GeneralRe: gc struct/class Help Pin
4-Jun-02 9:33
suss4-Jun-02 9:33 
GeneralRe: gc struct/class Help Pin
Paul Watson4-Jun-02 21:58
sitebuilderPaul Watson4-Jun-02 21:58 
GeneralThe thing is in the tree Pin
Rage4-Jun-02 6:22
professionalRage4-Jun-02 6:22 
GeneralRe: The thing is in the tree Pin
4-Jun-02 11:18
suss4-Jun-02 11:18 
GeneralRe: The thing is in the tree Pin
Rage4-Jun-02 21:18
professionalRage4-Jun-02 21:18 
GeneralRe: The thing is in the tree Pin
4-Jun-02 21:29
suss4-Jun-02 21:29 
GeneralThread blocking interface Pin
Hans Ruck4-Jun-02 6:17
Hans Ruck4-Jun-02 6:17 
GeneralRe: Thread blocking interface Pin
Tomasz Sowinski4-Jun-02 6:41
Tomasz Sowinski4-Jun-02 6:41 
GeneralRe: Thread blocking interface Pin
Hans Ruck4-Jun-02 6:43
Hans Ruck4-Jun-02 6:43 
GeneralRe: Thread blocking interface Pin
Tomasz Sowinski4-Jun-02 6:48
Tomasz Sowinski4-Jun-02 6:48 
GeneralRe: Thread blocking interface Pin
Hans Ruck4-Jun-02 7:09
Hans Ruck4-Jun-02 7:09 
GeneralSingle document in MDI Pin
Haakon S.4-Jun-02 6:14
Haakon S.4-Jun-02 6:14 
GeneralRe: Single document in MDI Pin
Tomasz Sowinski4-Jun-02 6:13
Tomasz Sowinski4-Jun-02 6:13 
GeneralRe: Single document in MDI Pin
Haakon S.4-Jun-02 6:26
Haakon S.4-Jun-02 6:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.