Advertisement
Guest User

MSXML2::IXMLDocument2Ptr

a guest
Oct 22nd, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.89 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. namespace MSXML2
  4. {
  5.     class IXMLDOMProcessingInstructionPtr
  6.     {
  7.        
  8.     };
  9.    
  10.     class IXMLDocument2Ptr
  11.     {
  12.     public:
  13.         IXMLDocument2Ptr* operator->();
  14.        
  15.         IXMLDOMProcessingInstructionPtr createProcessingInstruction(const std::string& x, const std::string& y);
  16.     };
  17.    
  18.     IXMLDocument2Ptr* IXMLDocument2Ptr::operator->()
  19.     {
  20.         return this;
  21.     }
  22.    
  23.     IXMLDOMProcessingInstructionPtr IXMLDocument2Ptr::createProcessingInstruction(const std::string& x, const std::string& y)
  24.     {
  25.         std::cout << x << ", " << y << std::endl;
  26.        
  27.         return IXMLDOMProcessingInstructionPtr();
  28.     }
  29.    
  30. }
  31.  
  32. int main()
  33. {
  34.     MSXML2::IXMLDocument2Ptr doc;
  35.     MSXML2::IXMLDOMProcessingInstructionPtr instruction = doc->createProcessingInstruction("xml", "utf-8");
  36.    
  37.     (void)instruction;
  38.    
  39.     return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement