Click here to Skip to main content
16,004,686 members

Comments by Donguy1976 (Top 6 by date)

Donguy1976 9-Feb-19 19:47pm View    
Can you please provide some sample code on rethrowing the exception?
Donguy1976 9-Feb-19 19:46pm View    
Deleted
Can you please provide some sample code on rethrowing the exception?
Donguy1976 9-Feb-19 8:55am View    
Client doesn't need to do anything here. The exception needs to be handled just within the DLL code. The IF condition I wrote above is just to catch the exception within DLL and process. i.e., write the exception info to a log file or something.

But I still don't get, how to move that IF condition block to a separate function, so that it doesn't need to be duplicated multiple times in the GetNumbers function.
Donguy1976 14-Jan-18 0:58am View    
I think the best way might be to start with a smaller XML file.

<houseinfo>
<housenumber>1
<houselog>
<roominfo>
<roomnumber>1
<timestamp>2017-12-29T12:16:51




So for the above XML, can you please help me write an XSD and also a DB script that will generate the necessary table(s) in a DB? Thanks!
Donguy1976 29-Jan-17 23:32pm View    
I understand that XML can be single line. But in my case we're making sure that the XML is multiple lines and the purpose of getting line number is to let user know if there's an error in one or multiple tags. So are you saying that there's no way of doing it in C++? Other than writing my own XML parsing logic to get line numbers?