| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> why not just ifstream >> then? <0> with the whitespace [ \t,\n]? <1> how can stringstream be used <0> like file streams , but applicable to strings <2> well, if you're SURE there are no errors in the file, stream >> c1 >> comma1 >> c2 >> comma2 >> c3; will reead a line <2> check for stream ok and that comma1 == comma2 == ',' <0> that's why xml is better :] you can validate it <0> and don't make any ***umptions later on <2> melfar yeah, sure...try to write it in less than a week <1> mmmmm.... i'll give that a try <0> that's just about practice.. personally I didn't use it much though <2> I suspect most people don't want to read a file (people, not a computer) that goes<row pos=1> <column pos=1>1</column><column pos=2>1</column><column pos=3>3</column></row> <2> at any rate, gotta take daughter to a birthday party...back in a few hours <3> Usually they have " " around the attributes, cause they know XML <3> Then again XSL's position() gives you the position anyway <0> if it's well positioned, it's okay to read. like when you export Excel worksheet into XML, it looks actually just fine, I needed somewhere about 5mins to create a worksheet template for my task
<4> hi. could someone have a quick look at this? http://pastebin.com/518107 only a short snippet. <4> someone? <5> What's wrong with it, norw? <6> how do I declare a cl*** before the actual definition? <7> cl*** blah; <6> it's not working <6> I have cl*** blah; <6> blah obj; <6> and the compiler tells me that I'm using an undefined cl*** <5> And you do <5> Make sure you aren't missing a ; after the cl*** definition preceding blah's. <5> s/do/are <6> I'll post the code <6> http://www.noidea128.org/sourcefiles/15856.html <6> line 15 <5> The hell <5> What are you doing that for? Just put NullTag under the definition <5> Oh <5> Hmm <6> :) <5> Did we mention that global variables **** <6> I need it... <6> it's null definiton :) <6> and I can't define it inside RSSTag cuz it will be instantiated over and over again <6> any ideas? <5> I'm not sure if it's permitted or not <5> You could of course move the function definitions that use the variable somewhere after the cl*** definition <5> And put the variable declaration between them <5> But it's an interesting puzzle for inline code <6> you're right, let's see if it works <5> You could also use a pointer of some sort <5> It might permit a pointer declaration but not a static variable declaration <5> You could also use an intermediate cl*** <5> cl*** NullRSSTag { ... RSSTag s; .... and return s in an overloaded = operator <8> pElement = pDoc->GetNext(aPos);pElement->Draw(pDC, pElement); <5> That would compile okay, far as I know <9> meh, looks like it's time for a new mouse <8> this is my code to draw my elements stored into a list to the screen <9> scroll wheel is acting up <5> Try taking it apart and cleaning it, rdragon <8> it's in a while loops that goes through until the end of the list <9> JBlitzen - the scroll wheel? <6> I've done it <8> I'm having a problem with the second paremeter of the draw function <6> thanks JB <9> it doesn't feel dirty or anything... seems like something is just broken <9> sometimes when scrolling down it jumps up a little <8> POSITION aPos = pDoc->GetListHeadPosition(); CCl**** pElement = 0; while(aPos) { pElement = pDoc->GetNext(aPos);pElement->Draw(pDC, pElement); } <8> this set of code does go through each of the elements in my list: mElementList, the number of times there are elements in the list <8> it just doesn't draw anything to the screen <8> can someone help me track down what's wrong? <8> this is MFC btw <5> How'd you manage it, sk8ing? <5> rdragon, I'd think it's just dust or muck on the wheel or sensors <5> Take it apart and you'll probably see what's wrong <6> I've defined NullTag after the cl*** and the operator in the .cpp <5> But have a replacement mouse on hand first, in case you break it in the process <5> nod, sk8ing <6> :) <8> can I zip up my program and send it to someone to look at? <8> it is like 6 files, is why I can't put on noidea
<8> can someone help? <8> this is where my program has a problem: pElement->Draw(pDC, pElement); <9> what's the problem? <9> does Draw() return an error code? <8> no, all the code is error free, justn ot working <9> then I guess it's not error free <9> it would at least appear to work if most of it was error free ;) <8> yep <8> no compile errors though <8> http://www.noidea128.org/sourcefiles/15857.html <8> there's my view cpp file <8> here's the element header + cpp <8> CPP - http://www.noidea128.org/sourcefiles/15858.html <8> Header - http://www.noidea128.org/sourcefiles/15859.html <8> can I do: pElement->Draw(pDC, pElement); ? <9> that depends on what pElement is <8> pElement is an Element, it's CCl*** which has a draw function <9> well if Draw accepts whatever pDC is, and a pElement, then yes, it's syntactically correct <8> ok, but my question is how do I tell my program to draw all the elements in my list <9> how the hell should I know? <8> ok, just thought you might know an MFC function <10> i need to draw the scrollbars manualy for a custom control i'm writting and i get the scroll brush with GetSysColorBrush(COLOR_SCROLLBAR). the problem is this: the brush i get with that call is gray solid brush but the scrollbars have a composed color (gray and white). why does it return the wrong brush? how can i get that brush from the system? <11> anyone here? <11> hello? <10> just ask your question <11> do yo uknow of a website where people upload the programs they made themselves to show what can be made <12> i need MSR 206 !! <12> prv me ! <9> Out-Lawz - what? <13> Ban him <13> Right away <9> Out-Lawz this is a C++ channel <12> .. <11> guys <11> im trying to find out what programming language makes really good programs, like games <9> virtually every programming language <11> hm <11> like basic? <14> that's more the job of the programmer, not the language ;P <14> nnonoooo, basic isnt a language ;) <11> oh what is it <14> crap <11> lol <11> so what' sthe best language for both applications and games? <14> C++ is pretty much an all purpose language. most games, operating systems and large applications are written in it <11> i head it was outdated <9> outdated? not at all <9> you're listening to the wrong people heh <11> ok <14> probably listening to people who just learned HTML and think they're a programmer <11> so i use visual c++ .net 2005 or something? <9> yes, or something <14> oh and you don't have to get a pirated version, the "express" is free ;P <11> hehe <11> is it hard to leanr? <9> it's non-trivial <14> I think the concept of programming and that sort of stuff is more difficult to grasp than the language itself, but that's just my opinion. <11> is thre some place i can find an example of a visual c++ game? <14> I believe ID software made the source code to quake freely available <14> you might also want to look at www.cycles3d.com.. it's an open source game and is looking for a new developer :) <9> yep, quake 1, 2, and 3 source code is freely available <9> don't hope on learning much from staring at it <15> You can learn how hard to read it is! <9> Zelotes - books: http://www.rudbek.com/books.html <11> k <11> is visual studio like all the major programming languages in one? <15> I doubt any one software encomp***es "all" major programming languages. <16> w cppbot <15> But it does have an IDE for C#, C++, Visual Basic, J#, as well as devellopment tools for ASP.Net... Which isn'Tr eally a language. <11> i see <11> so i should get studio, instead of just visual c++ alone? <15> Huh... <15> Do you plan to use all of these things?
Return to
#c++ or Go to some related
logs:
wow intreepid bibanul pwla ma initrd panic ubuntu pxe mircscripts #java madjester irc
#chatzone bhaigroup #chatzone
|
|