[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] C++: Reference til medlemmer i object. *. eller ->



On Thu, 14 Apr 2005 22:11:29 +0200, Mads Bondo Dydensborg wrote:

> Torsdag den 14. april 2005 14:17 skrev Michael Rasmussen:
> 
> Jeg har læst det tre gange og kan ikke få dit eksempel til at give nogen
> mening.
> 
Jamen, så må jeg jo tydeliggøre det:-)
med klasse:
#include "soapHelloWorldProxy.h" // get proxy
#include "HelloWorld.nsmap" // get namespace bindings
#include <iostream>
int main()
{
HelloWorld hw;
std::string r;
if (hw.HelloWorld__sayHello("Donald", r) == SOAP_OK)
    std::cout << r << std::endl;
else
    soap_print_fault(hw.soap, stderr);
return 0;
}

med peger:
#include "soapHelloWorldProxy.h" // get proxy
#include "HelloWorld.nsmap" // get namespace bindings
#include <iostream>
int main()
{
HelloWorld *hw;
std::string r;
hw = new HelloWorld;
if (! hw) {
    cerr << "Could not create the client object" << endl;
    return 1;
}
if (hw->HelloWorld__sayHello("Donald", r) == SOAP_OK)
    std::cout << r << std::endl;
else
    soap_print_fault(hw->soap, stderr);
delete (hw);
return 0;
}
-- 
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *