Forum: Windows NT / 2000 / XP Aug 7th, 2009 |
| Replies: 4 Views: 344 On a laptop running Windows XP, I can't seem to view webpages or actually connect to any server. Going to pages in IE or firefox give me unable to connect/cannot display errors. Trying to ftp to a... |
Forum: C++ Jan 10th, 2009 |
| Replies: 6 Views: 1,561 Ahh.... I figured it out. Somewhere in the methods of my class I was catching the exception that would normally be thrown as an std::exception and re-throwing it (not really sure why I had done... |
Forum: C++ Jan 9th, 2009 |
| Replies: 6 Views: 1,561 hmm.... well, i defined a function:
void func()
{
throw Surface::image_load_failed("my error");
}
and called that from my try block, which resulted in the output I would have expected... |
Forum: C++ Jan 7th, 2009 |
| Replies: 6 Views: 1,561 I have a child of std::exception defined as:
struct image_load_failed : public std::exception
{
image_load_failed(std::string const s) : message(s) {}
virtual ~image_load_failed() throw()... |
Forum: Java Dec 15th, 2008 |
| Replies: 9 Views: 576 alright, so apparently eclipse uses the project's root folder as the working directory by default, so I made the path local to that and it worked. Many thanks.
Oh, and I'm making Pong.
edit:... |
Forum: Java Dec 14th, 2008 |
| Replies: 9 Views: 576 Hmm... apparently Java isn't recognizing the file. But the file is in the same directory as the .java file.
$ ls ~/workspace/Pong/src/
Ball.java KeyboardListener.java Main.java Paddle.java ... |
Forum: Java Dec 14th, 2008 |
| Replies: 9 Views: 576 Sorry about the lines, here's the original file:
import java.awt.*;
public abstract class Sprite
{
private Image m_image;
private Point m_position;
public Sprite(int x, int y) |
Forum: Java Dec 14th, 2008 |
| Replies: 9 Views: 576 I'm trying to load a bitmap into an Image object using the following code:
System.out.println("Point A");
System.out.println("Point B");
m_image =... |
Forum: C++ Nov 21st, 2008 |
| Replies: 4 Views: 475 Does anyone actually use the .hpp file extension for C++ header files? I've never seen it used, but I was just working with geany, and I noticed that it only syntax highlights C++ specific things if... |
Forum: Windows Vista and Windows 7 Oct 29th, 2008 |
| Replies: 4 Views: 901 Anyone? This is issue is really bugging me... (no pun intended) |
Forum: Windows Vista and Windows 7 Oct 27th, 2008 |
| Replies: 4 Views: 901 The folder is indexed but not archived.
Yes, I took control of the folder's children when I did the change of ownership (though I was already listed as the owner).
Oh, and it may be worth... |
Forum: Windows Vista and Windows 7 Oct 27th, 2008 |
| Replies: 4 Views: 901 Hey,
I just recently ran into a problem compiling a C++ project (no, I didnt mean to put this in the C++ forum). I got an error saying that a certain header file couldn't be opened (I had compiled... |
Forum: PHP Sep 16th, 2008 |
| Replies: 4 Views: 603 I think I found my problem. For some reason, doing /ubiquity/ doesn't work. I'm under the impression that / would be my public_html directory, and so /ubiquity/ would be public_html/ubiquity/.... |
Forum: PHP Sep 15th, 2008 |
| Replies: 4 Views: 603 I'm trying to upload .js files onto my sever. This is the code:
<html>
<head>
<title>Add Ubiquity Command</title>
</head>
<body>
<form action="add_ubiquity_cmd.php" method="post"... |
Forum: PHP Sep 12th, 2008 |
| Replies: 1 Views: 769 Does mysql_real_escape_string() escape HTML character entities? I want people on my comment board to be able to post quotes in their comments, but they get escaped as raw ascii, so I run them through... |
Forum: Cases, Fans and Power Supplies Aug 19th, 2008 |
| Replies: 2 Views: 661 Hey, I'm a first-time builder, and I just have some questions about what components to get.
1. How many watts do I need for my power supply? I know there are calculators for that online, but I'd... |
Forum: Motherboards, CPUs and RAM Aug 19th, 2008 |
| Replies: 3 Views: 802 Hey,
Are any of the brands of memory considerably better than any of the others? Should I worry about that, or should I worry more about the actual memory I'm getting.
thanks. |
Forum: C++ Aug 18th, 2008 |
| Replies: 6 Views: 745 Err... ok, ran into a prob again (like my first one). fyi ive gone back to the multiple member system (r,g,b,a as four separate variables). I still can't figure out how to let users pick whether or... |
Forum: C++ Aug 18th, 2008 |
| Replies: 6 Views: 745 Oh, you're right.
But actually, I dropped the system of using different members for red, green, blue, and alpha. I'm just using a single hex value as a member to save space.
Edit:
Just... |
Forum: C++ Aug 17th, 2008 |
| Replies: 6 Views: 745 Wow, nvm - just figured it out.
Have alpha be first, not last.
But if someone could confirm that and/or check the above code I'd appreciate it. |
Forum: C++ Aug 17th, 2008 |
| Replies: 6 Views: 745 Hey
I'm writing a color class, and I want to have a constructor that can take in an unsigned int like 0x00FF00FF and interpret it as fully opaque green. I have code for that (I think it should... |
Forum: Windows Vista and Windows 7 Aug 16th, 2008 |
| Replies: 4 Views: 1,141 I know, but like I said, Dell's offering a better video card, but no 64-bit OS, while HP has the 64-bit OS, but a slightly worse video card. So if there aren't too many 64-bit games, I'd prob go with... |
Forum: Windows Vista and Windows 7 Aug 16th, 2008 |
| Replies: 4 Views: 1,141 >64 bit computing is more or less the norm now.
I'm a gamer/aspiring game programmer, and I'm getting a computer mostly for gaming. Right now I'm torn between HP and Dell. Dell doesn't offer a... |
Forum: Windows Vista and Windows 7 Aug 15th, 2008 |
| Replies: 4 Views: 1,141 Hey. I'm planning on buying a desktop, but I'm a little confused as to the difference between 32-bit Vista and 64-bit Vista, and exactly what those differences entail.
Now, I think the technical... |
Forum: C++ Aug 10th, 2008 |
| Replies: 4 Views: 727 So #import is specific to Obj-C? |
Forum: C++ Aug 10th, 2008 |
| Replies: 4 Views: 727 Hey,
I'm learning Objective-C, and they use #import "File.h" instead of #include "File.h". The tutorial I'm using says that import is like an include once thing, and it basically implements the... |
Forum: C++ Aug 9th, 2008 |
| Replies: 7 Views: 1,168 Wait, are you talking about this line:
*drawn = rand() % 52+1;
rand() returns an int but drawn has been dereferenced so isn't it also of type int? |
Forum: C++ Aug 8th, 2008 |
| Replies: 15 Views: 1,395 @williamhemswort
namespaces shouldn't end with a semicolon (though AD didn't point that out so I'm not sure I'm right about that...). I also don't think non const variables can be defined outside a... |
Forum: C++ Aug 8th, 2008 |
| Replies: 5 Views: 1,229 The reason the line you commented isn't working is because save.dna[i] is of type char, but "T" is of type char* (I believe, maybe it depends on the compiler?). Try changing it to 'T' |
Forum: C++ Aug 8th, 2008 |
| Replies: 19 Views: 1,923 Oh, right. At a glance I thought they were method declarations, not prototypes for global functions. |
Forum: C++ Aug 7th, 2008 |
| Replies: 10 Views: 853 Don't use spaces between in the code tags for them to work.
That code is swapping the variables word[i] and word[j]. Temp is needed to do the switch (at least the way it's being done here).
Say... |
Forum: C++ Aug 7th, 2008 |
| Replies: 19 Views: 1,923 Post the errors and a description of your problem/question.
edit: Sorry, didn't see the comments in your code. Still good to post a description of the issue though.
I see a couple of strange... |
Forum: C++ Aug 7th, 2008 |
| Replies: 4 Views: 491 Um, when you say thread, you mean like a multi-thread program, where each thread gets its own share of processor time? I don't have much experience with multi-threading so I don't know if/how it's... |
Forum: C++ Aug 7th, 2008 |
| Replies: 4 Views: 500 1. You didn't listen to one of the above posters. Don't do this:
cin >> name;
If I type a name that's larger than 20 characters your program will crash.
2. Unless this is for a class and your... |
Forum: C++ Aug 7th, 2008 |
| Replies: 4 Views: 614 Do you indeed want to make it have a GUI? If so, follow linux0id's advice - you're going to need to use some sort of API. |
Forum: C++ Aug 7th, 2008 |
| Replies: 4 Views: 491 Any method of the mainFrame class has access to both m_library and m_player.
So you can have a method called GetNextTrack() (or w/e):
class mainFrame : public Gtk::Window
{
public:
... |
Forum: C++ Aug 7th, 2008 |
| Replies: 2 Views: 389 Are you on a console? If so, I don't think there's a good, definite way to do that (though I could be wrong). |
Forum: C++ Aug 7th, 2008 |
| Replies: 17 Views: 1,591 Kind of off topic, but strcpy() is meant for use with C-Strings (i.e., char*). When using std::strings (which you should :) )you use the (overloaded? ) assignment operator. |
Forum: C++ Aug 5th, 2008 |
| Replies: 18 Views: 1,570 I don't understand why it says assigning either. If it said casting or converting or something like that then I would get it. Because true really isn't of type int, it's of type enum bool, so when... |
Forum: C++ Aug 5th, 2008 |
| Replies: 18 Views: 1,570 Wait - you're saying to not use variables of type bool? |