- Strength to Increase Rep
- +14
- Strength to Decrease Rep
- -3
- Upvotes Received
- 296
- Posts with Upvotes
- 210
- Upvoting Members
- 78
- Downvotes Received
- 53
- Posts with Downvotes
- 34
- Downvoting Members
- 19
921 Posted Topics
Re: "When the last tree is cut, the last river is poisoned, and the last fish is dead, we will discover that we can't eat money..." | |
| |
Re: Its possible to do, ive never tried this but I think it should work. [CODE=CPP] SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(NULL, MAKEINTRESOURCE(ICON_ID))); [/CODE] | |
Re: not sure, but for doing clicks, you can just do: [CODE] mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP, x, y, 0, 0);[/CODE] for a right click | |
Re: I remember having problems with the wheel scroll, I think the return value is [B]WHEEL_DELTA[/B] if the scroll is up, and [B]-WHEEL_DELTA[/B] if the scroll is down. Hope this helps. | |
Re: I prefer mine :) Never quite finished it, but I think it was going pretty well. | |
Re: My favourites have to be: - Chrno Crusade - Vampire Knight - Hantsuki - Kanokon (friend showed me it, found it funny) - Basilisk - Dragon Ball Z ;D (used to watch it when I was a kid) - Vampire Princess Miyu All I can think of at the moment. | |
Re: This code is confusing, that's your main problem. I don't understand the need for [ICODE]POINT lame;[/ICODE] Also, line 40 is useless as [B]i[/B] will never be equal to 1280 (only ever < than 1280). If you want to loop through every pixel from point (0,0) and (1280,801) to find a … | |
Hi all, I'm a very early user of Daniweb, and after a long break, and I'm hoping to participate a bit more in this forum again. I'm here specifically for some advice before starting a new project of mine. I'm an experienced C++ / Win32 developer, but seem to be … | |
Re: This is quite sad.. You want to learn a programming language just to cheat on games like runescape. First of all these kinds of games will trace it unless you have good enough programming skills to make in untraceable, and theres no easy way to do it unless you learn … | |
A program that uses hooks to detect keypresses and write them to a file. | |
I'm working on a program that requires some very low level optimization. My question is, when precision isn't an important factor, how can I automatically use the most efficient floating point type for whatever architecture the program is being run on? As far as I'm aware, floats are more efficient … | |
Re: Nice work :), This looks like a good tutorial and Ive never really managed to get the hang of asm, Thanks! | |
Re: I was amazed by some of the things I saw on this site. [URL="http://www.topfive.com/arcs/t5050302.shtml"]http://www.topfive.com/arcs/t5050302.shtml[/URL] but I especially found these ones to be the weirdest :) [LIST] [*]Male [URL="http://i202.photobucket.com/albums/aa144/Primate_bucket/070824-monkey-babytalk_big.jpg"]rhesus monkeys[/URL] often hang from tree branches by their amazing prehensile penises. [*]SCUBA divers cannot pass gas at depths of 33 feet or … | |
Quite a while ago, I made [URL="http://www.daniweb.com/code/snippet217147.html"][B]this[/B][/URL] snippet. This code is basically the same, except that it adds animation. This method of blitting is very fast assuming you don't use a surface that's too large. On a 500 x 500 surface, I managed 350fps using only 0-1% of the cpu. … | |
Hi, thanks for any help in advance. I was hoping to get some guidance for getting started with connecting to an SQL database online. I'm writing an application in Win32 which needs to be able to read/write to a database. I have plenty of experience with C++, but almost no … | |
Re: Your code runs without a problem for me, maybe it's a compiler setting? Also, you can use the GetWindowText and SetWindowText to make life simpler. | |
Re: I'd stay with Windows 7 until it becomes out-of-date enough to need a different OS such as Linux (which would probably greatly increase in popularity). | |
Saw [this](http://www.daniweb.com/software-development/cpp/code/216430/add-a-little-graphics-to-your-console) and decided to make a little spinoff with some physics of mine. Enjoy! | |
Re: "When you have eliminated the impossible, whatever remains, however improbable, must be the truth" | |
Re: Please check the date that this thread was created... | |
| |
Re: >can you call a function inside that same function If I understood that correctly then.. If you call a function while your already in it, you have recursion. Take this as an example. [CODE=CPLUSPLUS]#include <iostream> using namespace std; void CountDown(int number) { if (number != 0) { cout << number … | |
Re: Perhaps a class like this might help.. Ive done abit for you. [CODE] #include<iostream> using namespace std; class fraction { public: int Numerator; int Denominator; fraction(int n, int d) { Numerator = n; Denominator = d; } bool Shrink() { bool sucessful = 0; for (int i = min(Numerator, Denominator); … | |
Re: >Isn't making a smoking section in a restaurant like making a peeing section in a swimming pool? Not really. >Why do croutons come in airtight packages? Aren't they just stale bread to begin with? Nope, croutons are not stale, they are just rebaked bread. >If Fed Ex and UPS were … | |
Re: Add this message handler to your windows proc:[CODE=CPLUSPLUS]case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint( hwnd, &ps ); TextOut( hdc, 0 /* X */, 0 /* Y */, "Blah de blah de blah", 20 /* Number of chars */); EndPaint( hwnd, &ps ); } break;[/CODE]Should be enough to get … | |
Re: Uhm, I think its quite obvious what my name is supposed to be, would you mind changing it to [B]WilliamHemsworth[/B] please :) ?? It was the worst possible mistake I could do when making this account :D | |
Re: "Doctor Doctor!, I only have 50 seconds to live!" -"Go over there and i will see you in a minute.." | |
Re: [QUOTE=Ancient Dragon]zero -- I don't listen to music on the internet. [/QUOTE]This doesn't really have anything to do with the internet :) My winamp says: "4538 items [11 days+22:01:52][24.26gb]" But I like most of what I have, and never seem to get bored of my music. | |
Re: [QUOTE]Has anybody seen that 2012 movie? [/QUOTE]Yep, it's pretty good, quite long though. | |
Re: I don't think you are going to have much luck with this. The animation on that page was made using flash (which is designed for easy animation) and is still very hard to make, this would be even more complex in C++. You are best just using a C++ graphics … | |
Re: [QUOTE] int getNumDecimalDigits(int value) { char myString[16]; sprintf(myString,"%d",value); return strlen(myString); } [/QUOTE] That is not the best way to do it, heres a better way: [CODE=CPP] // Will work with negative numbers int CountDidgets(int val) { int d = 1, c; if (val >= 0) for (c = 10; c … | |
Re: Control a PC from a cell phone? I highly doubt that's something you could manage even with the help here. The only way I can think of doing that is sending emails from your phone, having a program on your PC to recieve them and follow instructions. Even if you … | |
Re: Nice, neat, consistent format, and well commented code :] | |
Re: Ahh, chillin' to some Jack Johnson :) [url]http://www.youtube.com/watch?v=pNlmn7vbXBQ[/url] | |
Re: I would definetely say Flash AS2. The absolute most important part is that the students are motivated, and flash allows you to be very creative with just a basic knowledge of math. I got into programming through AS2 when I was about 12, and then started C++ a year later, … | |
Re: Nice snippet, works perfectly. The only thing I could complain about (other than the formatting) is the fact that you included [b]conio.h[/b]. | |
Re: this must be the absolute geekiest thread in existence :P oh oh i mean: 0111010001101000011010010111001100100000011011010111010101110011 0111010000100000011000100110010100100000011101000110100001100101 0010000001100001011000100111001101101111011011000111010101110100 0110010100100000011001110110010101100101011010110110100101100101 0111001101110100001000000111010001101000011100100110010101100001 0110010000100000011010010110111000100000011001010111100001101001 0111001101110100011001010110111001100011011001010010000000111010 01010000 | |
Re: Most probably you're just missing a codec, try installing this codec pack [URL="http://filehippo.com/download_codec_pack/"][link][/URL], or try using VLC Player. | |
Re: Well, something's sure happened to AD. [URL="http://www.daniweb.com/forums/member46588.html"][link][/URL] There's no way he deserved 6506 downvotes :P |
The End.