Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- namespace MSXML2
- {
- class IXMLDOMProcessingInstructionPtr
- {
- };
- class IXMLDocument2Ptr
- {
- public:
- IXMLDocument2Ptr* operator->();
- IXMLDOMProcessingInstructionPtr createProcessingInstruction(const std::string& x, const std::string& y);
- };
- IXMLDocument2Ptr* IXMLDocument2Ptr::operator->()
- {
- return this;
- }
- IXMLDOMProcessingInstructionPtr IXMLDocument2Ptr::createProcessingInstruction(const std::string& x, const std::string& y)
- {
- std::cout << x << ", " << y << std::endl;
- return IXMLDOMProcessingInstructionPtr();
- }
- }
- int main()
- {
- MSXML2::IXMLDocument2Ptr doc;
- MSXML2::IXMLDOMProcessingInstructionPtr instruction = doc->createProcessingInstruction("xml", "utf-8");
- (void)instruction;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement