Difference between revisions of "Documentation/DevGuide/WritingUNO/C++/Implementing your own Interfaces"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Documentation/Developers Guide/Writing UNO Components)
m
Line 5: Line 5:
 
|NextPage=Documentation/DevGuide/WritingUNO/C++/Providing a Single Factory Using a Helper Method
 
|NextPage=Documentation/DevGuide/WritingUNO/C++/Providing a Single Factory Using a Helper Method
 
}}
 
}}
 
+
[[zh:Zh/Documentation/DevGuide/WritingUNO/C++/Implementing your own Interfaces]]
 
{{DISPLAYTITLE:Implementing your own Interfaces}}
 
{{DISPLAYTITLE:Implementing your own Interfaces}}
 
For the <code>my_module.XSomething</code> interface, add a string to be returned that informs the caller when <code>methodOne()</code> was called successfully.  
 
For the <code>my_module.XSomething</code> interface, add a string to be returned that informs the caller when <code>methodOne()</code> was called successfully.  

Revision as of 05:29, 30 July 2008

For the my_module.XSomething interface, add a string to be returned that informs the caller when methodOne() was called successfully.

  OUString MyService2Impl::methodOne( OUString const & str )
      throw (RuntimeException)
  {
      return OUString( RTL_CONSTASCII_USTRINGPARAM(
          "called methodOne() of MyService2 implementation: ") ) + str;
  }
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages