How to get 'returned value by Process' while running a C++ program

-2

I want to get the value returned by process when running a C++ program, How do I do that ?

for Ex. when I run my program and it says : Process returned -1073741819 (0xC0000005) execution time : 23.724 s then I want to obtain the value -1073741819 (0xC0000005) , how do I get that value ? what C++ library OR function should I use ?

My code works like this : I have implemented an XML parser and I have implemented some query language like UPDATE tag[0].tag[1].tag[2]=value ,

so lets say I have an XML file which have only 4 tags and user enters query for 5th tag (which doesn't exist), so my program will obviously throw error and will return some weird exit status, based on that exit status I want to print some message to user, like if exitstatus is 0 then print "operation was successfully completed", something like that, what approach should I use ?

I am running my program using CodeBlocks over Windows

c++
process
asked on Stack Overflow Jul 6, 2020 by pbhadu21 • edited Jul 13, 2020 by Alan Birtles

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0