Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. problems witn MSXML in multi-threading applications

problems witn MSXML in multi-threading applications

Scheduled Pinned Locked Moved XML / XSL
helpc++linuxxmljson
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bash
    wrote on last edited by
    #1

    Hi, I've got a strange problem. I have a multithreading Win32 MFC application used MSXML. All XML-related procedures (loading, parsing and etc) are worked in a separated thread started with _begingthread(). This thread looks like as shown below. When this thread calls IXMLDOMDocument::load() to load an existed XML document from a file, this will stop an opening all Microsoft Office 2000 documents (Word,Excel and etc). This problem appears only under Windows 9x/ME. What's wrong? Help me! void XMLTrafReportThreadFunction(void *) { ::CoInitializeEx(NULL,COINIT_MULTITHREADED); IXMLDOMDocumentPtr XmlDocPtr; _bstr_t bstrXMLReport(lpszFilename); VARIANT_BOOL vtResult; HRESULT hr = XmlDocPtr.CreateInstance(MSXML::CLSID_DOMDocument); if (FAILED(hr)) return 0; vtResult=XmlDocPtr->load(bstrXMLReport); ... ... } Yours sincerely, Alex Bash

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups