Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   [RapidXML] Cannot open XML files unless in main (http://www.velocityreviews.com/forums/t805483-rapidxml-cannot-open-xml-files-unless-in-main.html)

Alec Taylor 11-03-2011 09:04 AM

[RapidXML] Cannot open XML files unless in main
 
Good afternoon,

Unfortunately only my 10 lines [main only]: http://ideone.com/WOmcphowever works, whilst my 20 lines [OO with functions] doesn't: http://ideone.com/R7mir

How can I get this to work?

Thanks for all suggestions,

Alec Taylor

Ian Collins 11-03-2011 10:03 AM

Re: [RapidXML] Cannot open XML files unless in main
 
On 11/ 3/11 10:04 PM, Alec Taylor wrote:
> Good afternoon,
>
> Unfortunately only my 10 lines [main only]: http://ideone.com/WOmcphowever works,whilst my 20 lines [OO with functions] doesn't: http://ideone.com/R7mir


For such short bits of code, you should include them in your post.

> How can I get this to work?


Looking at your code, from my dabbling with RapidXML, it looks OK (apart
form the use of capitals in the header name).

I can't comment on the code as it isn't here!

--
Ian Collins

Alec Taylor 11-03-2011 11:14 AM

Re: [RapidXML] Cannot open XML files unless in main
 
Figured it out. Added a ctor-intialiser.


All times are GMT. The time now is 05:48 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57