Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: RwDwR
  • Order by date
  1. RwDwR

    Why does this not work? (class prob)

    Well RwD, to answer my own question =P I've seem to not define a default constructor for the base class, the following definition for the base class solves all: class ELEMENT { public: string element_name; string element_data...
  2. RwDwR

    Why does this not work? (class prob)

    On the following code I get an error for the TEST constructor, saying: "cannot construct base class 'ELEMENT'" WHY!????? my.h file (part): ----------------------------------------------------------- class ELEMENT { public: string element_name; string element_data...
  3. RwDwR

    wostream doesn't output as unicode!!!

    Corection, the Help I got with fixing this Came from Howard Hinnant, rather then Dinnant, typo, sorry Mr Hinnant!!
  4. RwDwR

    wostream doesn't output as unicode!!!

    There was a bug in the Metroworks Codewarrior 5.3 library that caused my problem, below is the fix: please know that version 6.0 and higher (up to 8.x as I write this) do not have this bug, and that version 4.0 and less are probably to different from 5.x to be fixed with this code (i didn't...
  5. RwDwR

    wostream doesn't output as unicode!!!

    I now found that it has to do with the << operator being overwritten by ostream, but I have no solution yet!
  6. RwDwR

    how do i display unicode fonts?

    does this also help me in having a wostream stream output unicode characters as unicode? I checked my code, and it seems as if the << operator is overwritten in ostream, causing it to output my wide chars as ascii instead of unicode if not, do you know the solution?
  7. RwDwR

    wostream doesn't output as unicode!!!

    I am using a wostream for outputting data to a file, minor problem, the wide-outpt-stream doe not output as wide... the output is ANSI, ASCII or whatever you want to call it, I runned it in debug, and found the characters are all unicode before I send the to the stream (<<) and I add no ascii...
  8. RwDwR

    fstream unicode

    found the answer to part 1; ofstream fout( &quot;results.txt&quot;, ios::out ) ; instead of ofstream fout( &quot;results.txt&quot;, ios::app) ; which obviously appends, but I got the abr. wrong, and thought it meant something else.... I still need the answer to nr 2!!!!!!!!!!!!!!!!!!!!!!!
  9. RwDwR

    fstream unicode

    Hi, I have a two part C++ question: 1, I am using fstream to output stuff to a file, however, fstream appends, not clear the opened files content first, I can't find a function which does this, any thoughts? 2, I must use unicode, but as it seems the fstream doesn't use unicode, can this be...
  10. RwDwR

    complextypes and restrictions

    got it myself to, thanks anyhow, I just made a thinking error... found a decent reference by now, shouldn't be here to often anymore...
  11. RwDwR

    complextypes and restrictions

    Why is it not possible to make a declaration with an XML schema dat declares an element with maxvalue=720 and minvalue=-720 and an attribute called Unit (Degree, mm, aso) please tell me, because XML drives me nuts with all the things it can't do, doesn't anyone have a good reference for me???
  12. RwDwR

    Restrictions on attributes

    oops, appearantly the simpletype tag is not reserved for elements only.... <xs:attribute name=&quot;Unit&quot; > <xs:simpleType> <xs:restriction base=&quot;xs:string&quot;> <xs:enumeration value=&quot;Degree&quot;/> <xs:enumeration value=&quot;Inch&quot;/>...
  13. RwDwR

    Restrictions on attributes

    I want to achieve the following: <xs:attribute name=&quot;Unit&quot; > <xs:restriction base=&quot;xs:string&quot;> <xs:enumeration value=&quot;Degree&quot;/> <xs:enumeration value=&quot;Inch&quot;/> </xs:restriction> </xs:attribute> this is not correct, but w3schools says restrictions...
  14. RwDwR

    Choice

    You know, I really hate these languages that say they are good on every aspect, and stuff, I can't even declare such a simple thing like this?? The thread you put on the bottom does work, but it allows text to be present togheter with the tags, I'll go for my any tag for now, and hope nobody...
  15. RwDwR

    Choice

    This seams to give me the effect I want, but I am not happy about it: <xs:element name=&quot;name&quot;> <xs:complexType mixed=&quot;true&quot;> <xs:choice> <xs:any minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;></xs:any> <xs:sequence> <xs:element ref=&quot;first&quot;/>...
  16. RwDwR

    Choice

    I have just started using XML, but among many things I have to do the following: Within my xml file I have the need for a name tag that can exist in two ways: 1. <Name>John Doe</Name> 2. <Name> <First>John</First> <Last>Doe</Last> </Name> It must be one or the other, how can I...

Part and Inventory Search

Back
Top