12 Solved Topics

Remove Filter
Member Avatar for MattEvans

This is possibly not the ideal place to post this; but I'm hoping someone with a good idea of 3D math can help me a bit. I'm planning something for a project, and am trying to find out how to implement some of the more neccessary parts. One of these …

Member Avatar for hercius
0
213
Member Avatar for MattEvans

If I add default arguments to the end of my copy constructor, is it still considered a copy constructor? E.g. will it still be used in the places where a copy constructor would normally be used (or automatically generated). I can verify that it works on one compiler (g++). That …

Member Avatar for MattEvans
0
222
Member Avatar for MattEvans

Ok, so I use Windows Live Mail Beta, don't know why, but they "invited" me ages ago, and it looks quite attractive, so I keep it. Sometimes, I get these yellow errors: "Windows Live Mail was unable to complete this request", today though, they're not going away. Also I get …

Member Avatar for MattEvans
0
172
Member Avatar for MattEvans

Consider the following code: [code="PHP"] <?php function important_function( $i ) { printf ("<p>Called for the %sth time.</p>\n", $i); return ($i < 3); } function loop_with_and( ) { $ret = true; for( $i = 0; $i < 10; $i ++ ) { $ret = $ret && important_function( $i ); } return …

Member Avatar for Infarction
0
123
Member Avatar for MattEvans

Is it incorrect to use the precompiler like a complicated copy-and-paste tool? I've been working on a system where a few objects are processed according to exactly the same 'pattern' so to speak; BUT they are not related objects. Although it would be possible to bring some of them back …

Member Avatar for thekashyap
0
119
Member Avatar for MattEvans

Relevant header definitions are as: [code] class XMLChain { private: Segment root; std::vector<XMLOpen*> chain; Segment * immediate; std::vector<XMLOpen> openers; [/code] The function in question is: [code] void XMLChain::open(std::string tag) { Segment * last_immediate = immediate; openers.push_back( XMLOpen ( tag ) ); XMLOpen * cast_immediate = &(openers.back()); (*last_immediate).setNext( cast_immediate ); immediate …

Member Avatar for MattEvans
0
105
Member Avatar for MattEvans

Alot of (mainly linux/perl/etc) documentation, websites and comments use this quoting style: [code] Type `hello' to invoke `system shutdown'. [/code] Is there any particular reason to start the quoted block with a backtick (`) and end with a single quote (') ? This isn't really a support question, I'm just …

Member Avatar for WaltP
0
62
Member Avatar for MattEvans

In certain cases, it's correct for my app to die if it encounters a potentially dangerous condition... I'm working on a more detailed error reporting system, and among the things I want to list are; the object class that threw the error, and the method that threw the error. At …

Member Avatar for MattEvans
0
195
Member Avatar for MattEvans

is it possible, to use, or otherwise import and access the class in a .pm file by a suggested name (this would be after compilation)... here's the lowdown, I've been working on a project for a while now, it is an XML processor. One of the parts of a process …

Member Avatar for MattEvans
0
416
Member Avatar for MattEvans

I'm putting this here because I don't really know where would be best, if I could pick a language-categorised solution I probably wouldn't be asking atall...I don't need a solution so much as a pointer. How do you get a file from a user's computer to a server, from a …

Member Avatar for MattEvans
0
54
Member Avatar for MattEvans

The index page of my site is redirected permanently to another page on my site using .htaccess, I'm messing about with IBP9's spider simulator to see how a search engine would see it; apperently this is what they'd see from the index page: <html> <head> <meta http-equiv="refresh" content="0;url=./YaBB.pl"> </head> I've …

Member Avatar for MattEvans
0
122
Member Avatar for MattEvans

Either I'm doing something very wrong, or the XMLDocument component is a terribly written component. I keep getting Access violation at #ADDRESS Read Of #ADDRESS errors, no explanation just a peek at the CPU showing the error occurs all of the place depending on which test I'm doing. Basically, all …

Member Avatar for Lord Soth
0
546

The End.