Posts
 
Reputation
Joined
Last Seen
Ranked #399
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
100% Quality Score
Upvotes Received
12
Posts with Upvotes
12
Upvoting Members
9
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
9 Commented Posts
~69.3K People Reached
About Me

student

Interests
C++, video games, Latin
Member Avatar for Wiki_Tiki

It has to do with the way your compiler is interpreting strings (I think it happens when you set the character encoding to unicode instead of multibyte, or something like that). I [i]think[/i] that this: [CODE]PlaySound((LPCWSTR)"beep.wav", 0, SND_LOOP|SND_ASYNC);[/CODE] will work.

Member Avatar for sahana_3
0
682
Member Avatar for mattybennett

[QUOTE]Simple - because I must.[/QUOTE] You [I]must[/I]? Was it assigned to you for your job or something? I don't have any industry experience, but I'm pretty sure a decent boss wouldn't give a huge project like this to a single person with limited programming experience. VernonDozier's suggestion of breaking up …

Member Avatar for joel.queiroz
0
2K
Member Avatar for DarckHalf

Gears of War had 32 people JUST on programming (12 were listed under "Unreal Engine Programmers"). In total, around 150 people from Epic Games alone worked on the game. Bioshock (surprisingly to me), had less, around 24 programmers listed in the credits. I was too lazy to count all of …

Member Avatar for roax206
0
711
Member Avatar for sarvari

They can also be passed as pointers, if you want to use them. Thought I believe it's considered better to use references over pointers when possible. [CODE] class MyClass { // blabla }; void foo(MyClass* obj) { // class passed by reference } int main() { MyClass myclass; // create …

Member Avatar for L7Sqr
0
1K
Member Avatar for CoolGamer48

Hey, I'm a C++ programmer, but I'm beginning to learn Java, and from what I see so far the two languages are very similar. The main difference I hear is that C++ has pointers and Java doesn't, but from my understanding Java does have pointers in a sense, the user …

Member Avatar for stultuske
0
903
Member Avatar for yap.nice

It is considered one of the "harder" languages, but as AncientDragon said, hard is a relative term. C++ was really the first language I learned, and I didn't have any real experience with other languages. So if you want to learn it, don't hold back because it's "hard".

Member Avatar for akilank
0
156
Member Avatar for soroush68

I ran this for fun. Is it necessary to cast the addresses as ints before subtracting? I printed both addresses, and saw that they were 4 apart, but [ICODE]&x[1] - &x[0][/ICODE] came out as 1. But when I cast them to ints, it was 4. Why is the cast necessary?

Member Avatar for bharath404
0
255
Member Avatar for Geek-Master

Sorry for reviving a dead topic, but... I still don't have nearly enough programming knowledge to know what everyone was talking about here, but I think I almost sort of get pointers. I couldn't help but think of a database and UID's. IF you had a database of customers and …

Member Avatar for new programer
0
487
Member Avatar for CoolGamer48

Hey, Right now I'm using XP, and I was thinking of getting a laptop. Now, I've heard a lot of bad stuff about Vista, but most of the things I heard are "It sucks." Or "don't get it" or "it's extremely slow". Now, except for the last one those are …

Member Avatar for seemabaalm
0
372
Member Avatar for CoolGamer48

I've been trying to code a catch me game (for anyone who doesn't know: a game with a ball that randomly jumps around the screen - the goal is to click the ball before it moves, and not to miss it). I've got the clicks part down. You can click …

Member Avatar for twatface4000
0
154
Member Avatar for NickyU

People have already done the work for you. The Direct3D extensions library (d3dx) has functions for loading bitmaps into Direct3D surfaces or textures. Unless you want to manually load the bitmap into your program as a learning experience, or if you just feel better doing things yourself, use Direct3D (or …

Member Avatar for mrnutty
0
725
Member Avatar for CoolGamer48

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 server through windows explorer or filezilla gives me simmilar errors. Everything I do …

Member Avatar for RJCO
0
177
Member Avatar for CoolGamer48

Hey, I download DarkGDK for Visual C++ 2008 Express (also downloading the correct version of the Direct X SDK). I just saved the SDK in some random directory, so when I try to execute the test code, i get an error telling me d3dx9.h can't be found. So, where do …

Member Avatar for Sepiantum
0
481
Member Avatar for CoolGamer48

I have a child of std::exception defined as: [CODE=c++] struct image_load_failed : public std::exception { image_load_failed(std::string const s) : message(s) {} virtual ~image_load_failed() throw() {} const char* what() const throw() { return "image load failed";//message.c_str(); } std::string const message; }; [/CODE] (I would normally have what() return message.c_str(), but I've …

Member Avatar for CoolGamer48
0
497
Member Avatar for DonkeyKong92

If you're on windows, a common way to do it is [ICODE]system("PAUSE");[/ICODE]. It gives a prompt like "Press any key to continue..."

Member Avatar for Kungpao
0
172
Member Avatar for CoolGamer48

I'm trying to load a bitmap into an Image object using the following code: [CODE=Java] System.out.println("Point A"); System.out.println("Point B"); m_image = Toolkit.getDefaultToolkit().getImage(getClass().getResource(filename)); System.out.println("Point C"); MediaTracker mt = new MediaTracker(null); System.out.println("Point D"); mt.addImage(m_image, 0); System.out.println("Point E"); try { System.out.println("Point F"); mt.waitForID(0); System.out.println("Point G"); } catch (InterruptedException ie) { System.err.println(ie); System.exit(1); } …

Member Avatar for Ezzaral
0
177
Member Avatar for naina_gill

[QUOTE]graphics is not part of either c or c++ languages.[/QUOTE] I think he meant that he has not learned how to create programs that use 3D or advanced 2D graphics (like those used by a game) in C++ yet. Obviously what you said was correct, but someone who hasn't made …

Member Avatar for vandenzergen
0
250
Member Avatar for CoolGamer48

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 the file extension is .hpp (or .cpp, obviously, but not .h). So what's the …

Member Avatar for ArkM
0
135
Member Avatar for CoolGamer48

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 with the same file before). I looked up the error and …

Member Avatar for dickersonka
0
148
Member Avatar for kudusan

It would be very difficult to write a game with C++ without the use of a graphics API like Direct3D or OpenGL. The only real function you have with Win32 programming is DrawPixel() (or is it SetPixel()...something like that). Loading bitmaps like that would be VERY difficult.

Member Avatar for Salem
0
300
Member Avatar for CoolGamer48

I'm trying to upload .js files onto my sever. This is the code: [CODE]<html> <head> <title>Add Ubiquity Command</title> </head> <body> <form action="add_ubiquity_cmd.php" method="post" enctype="multipart/form-data"> Name: <input type="text" name="name" /><br /> Description: <textarea rows="8" cols="30" name="description"></textarea><br /> JS File: <input type="file" name="file"><br /> <input type="submit" value="Add Command" /><br/> </form> <?php if(isset($_POST["name"])) …

Member Avatar for Atli
0
107
Member Avatar for CoolGamer48

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 htmlentities() first, but it doesn't help. I only get it to work when I remove mysql_real_escape_string(), …

Member Avatar for Atli
0
159
Member Avatar for CoolGamer48

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.

Member Avatar for forumdude123
0
126
Member Avatar for CoolGamer48

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 rather get a rough estimate from a human. I'm getting an Intel Core …

Member Avatar for jermaghs07
0
178
Member Avatar for CoolGamer48

Hey. I've never worked in industry, and I was just curious as to how exactly things work in the real world (as a C++ programmer). To be a bit more specific, what kind of things do you do in a day? If you're working on a program, how many people …

Member Avatar for William Hemsworth
0
184
Member Avatar for blud
Member Avatar for newb1e
0
868
Member Avatar for CoolCheech

There have been a few games that were cross platform. Shadowrun combined players from both Vista-PCs and Xbox 360s, though these are both Microsoft platforms. It is definitely not impossible, but the extra work it takes may be more than developers are willing to do given the benefits of the …

Member Avatar for sDJh
0
139
Member Avatar for CoolGamer48

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 work, could someone check it?): [CODE] rzb::color::color(unsigned int hex) { m_red = …

Member Avatar for ArkM
0
227
Member Avatar for CoolGamer48

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 difference is the size of the memory bus. Well, if I'm right, I'm not exactly sure what …

Member Avatar for CoolGamer48
0
134
Member Avatar for CoolGamer48

Hey, I've been trying to create an RPG, and I really have trouble moving with it. I really can't find any decent tutorials (or even books). The only book I've heard of (Making RPGs with DirectX, or something, by Jim Adams) got pretty bad reviews. The part I can't really …

Member Avatar for Ezzaral
0
860