dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: [RESOLVED] very urgent

  1. #1
    Join Date
    May 2015
    Posts
    218

    [RESOLVED] very urgent

    I had written the xml functionality , quite sometime back. It was working fine.

    But now suddenly, it is high prio andneeds to be used and working asap.

    Now i run the same project it is not working. It is some internal work and code is not in source control
    Code:
    	MSXML2::IXMLDOMNodePtr pXMLDomNode;
    
    	pXMLDomNode = pXMLDoc->selectSingleNode(bstrQueryTemp);
    somehow the pXMLDomNode is NULL !. Please help me

  2. #2
    Join Date
    May 2015
    Posts
    218

    Re: very urgent

    Removing the actual code, as issue is rsolved.
    Last edited by pdk5; November 27th, 2019 at 01:11 PM.

  3. #3
    Join Date
    May 2015
    Posts
    218

    Re: very urgent

    Sorry , it was my mistake. This is working ok now, as the path was wrong. !!!

    Thanks a lot again...I know, it is too early to get response. But this forum has really helped me a lot

  4. #4
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    6,921

    Re: very urgent

    Quote Originally Posted by pdk5 View Post
    Sorry , it was my mistake. This is working ok now, as the path was wrong. !!!

    Thanks a lot again...I know, it is too early to get response. But this forum has really helped me a lot
    Your code should have picked this up and reported an issue - not generated a run-time error with a null pointer. You must check and validate api return values etc. Also, assert() can be used to check for run-time issues when NDEBUG is not defined (does nothing if NDEBUG is defined). See https://en.cppreference.com/w/cpp/error/assert

    PS There is a difference in writing some test/example code (which is what you'll often find on sites - including code I've posted [see my signature]) and production/professional quality code!
    Last edited by 2kaud; November 28th, 2019 at 07:36 AM. Reason: PS
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2019 (16.4.0)

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,173

    Re: [RESOLVED] very urgent

    Also, posting a title of "very urgent" isn't helpful and most likely won't help get a quick response. Forums are made up of volunteers that have no obligation to respond.

    Instead, put a clear title on the post and folks will respond if they are able.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)