-
November 27th, 2019, 12:00 PM
#1
[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
-
November 27th, 2019, 12:04 PM
#2
Re: very urgent
Removing the actual code, as issue is rsolved.
Last edited by pdk5; November 27th, 2019 at 01:11 PM.
-
November 27th, 2019, 01:10 PM
#3
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
-
November 28th, 2019, 06:42 AM
#4
Re: very urgent
Originally Posted by pdk5
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++23 Compiler: Microsoft VS2022 (17.6.5)
-
November 28th, 2019, 02:34 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|