921 Posted Topics
Re: >I suppose I'll revive this thread =) Wow, what is the chance of that?! :icon_lol: , I was just about to do that.. seriously ^.^ Another chance to go back to Portugal & meet up with my family and friends again ([I]its not gonna happen)[/I] :) | |
Re: You haven't given enough detail in your post, and in future use code-tags. >PLEASE.... I NEED URGENT HELP////// No need for the upper-case characters, this may be urgent to you, but it's not for us. Here is the code well formatted, with your error highlighted. [CODE]//The function starts here void … | |
Re: >go to esnips.com to solve your problem. Uhm, so how does that solve his/her problem? | |
Re: Depends on what your using... are you making a console application? Or are you trying to detect it within a windows application? If so, then look up the [B]WM_MBUTTONUP[/B] message, or you could try using windows hooks. For a better answer, be more specific in your post. | |
Re: It can be quite complex, but with the help of google, I managed to put this together as an example :)[CODE=CPLUSPLUS]#include <windows.h> #include <iostream> using namespace std; void KeyEventProc(KEY_EVENT_RECORD); int main() { HANDLE hStdin; DWORD cNumRead; INPUT_RECORD irInBuf[128]; hStdin = GetStdHandle( STD_INPUT_HANDLE ); if ( hStdin == INVALID_HANDLE_VALUE ) return … | |
Re: [URL="http://en.wikipedia.org/wiki/A_Short_History_of_Nearly_Everything"]Bill Bryson "A Short History of Nearly Everything"[/URL], you learn something new on every page :) | |
Re: [QUOTE]Many here in our country have no believe in your god.[/QUOTE]Let me fix that for you?[QUOTE]Many here in our country have no [B]belief[/B] in your god.[/QUOTE]:) | |
Re: I prefer [URL="http://www.isketch.net/isketch.shtml"]http://www.isketch.net/isketch.shtml[/URL], It is the ultimate game to play with some friends when your bored :) No password needed, just pick a username, and press logon, then choose a room. | |
Re: >pls?... Pathetic. >i really don't know what to do.. What don't you know how to do? All the information is right there, just do one step at a time and i'm sure you can manage it. When you get stuck on a specific problem, we will help. But don't expect … | |
Re: >its [B]my[/B] final priject of my first semester of BSCS so, why are you asking us to do it for you? | |
Re: Sure, just don't add it to the resource file, and open the bitmap by its filename instead. | |
Re: Iv'e been using vista ultimate (without SP1 for most of the time), and to tell you the truth, I think its great and easy to use. Iv'e never really had any problems with it, and I have only ever found 1 bug in it (you delete a file but the … | |
Re: Yellowcard - [URL="http://www.sing365.com/music/lyric.nsf/Only-One-lyrics-Yellowcard/791182C91468D1C148256D530007A84A"]Only one[/URL] :) | |
Re: What annoys me more is the dumb Smily Central thing, every time I hover my mouse over it, I get the annoying disruptive "hellooooooo" sound.. | |
Re: Here is a snippet I found somewhere on the internet quite some time ago, with a little extra code added. This code manually searches through every file on your C drive (which may take a while) and prints it to the console. With this you should be able to figure … | |
Re: So you revived a 16 month old thread just to say "I will try it!".. | |
Re: [QUOTE=Ancient Dragon]Amazingly it compiles without error[/QUOTE] Amazingly, this compiles without error (for me) :icon_eek: So I'm not too surprised that his compiled x)[CODE=CPLUSPLUS]char ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** a;[/CODE] | |
Re: You can't assign an array of characters like that, here is how you correct it.[CODE][COLOR="Red"]#include <stdio.h>[/COLOR] struct data { char name[20]; char number[10]; }; typedef struct node { struct data list; struct node* next; } Node; Node *head = 0; Node *tail = 0; Node *New = 0; void add(char* … | |
| |
Re: How about these :) [url]http://www.phrozenflame.com/images/gallery/128.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/132.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/6.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/1.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/127.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/44.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/74.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/17.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/107.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/108.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/105.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/25.jpg[/url] [url]http://www.phrozenflame.com/images/gallery/29.jpg[/url] | |
Re: When things get this bad, honestly, just start over. [URL="http://www.cplusplus.com/doc/tutorial/"]http://www.cplusplus.com/doc/tutorial/[/URL] Understand how to use functions and make simple expressions, also, keep your code well formatted. Here is how your current code would look well formatted, but all the mistakes are still there.[CODE]#include<iostream> using namespace std; int add(int x, int y)[COLOR="Red"] … | |
Re: This question didn't make much sense to me at all. > can I introduce something other than a 0 or a 1 in a bit? A bit can [B]only[/B] be either a [B]1[/B] or a [B]0[/B], or you can think of it as either [B]on[/B] or [B]off[/B]. | |
Re: Learn how to use code-tags. | |
Re: Haha, this made me laugh.. :D But in many ways, they are correct (I still think its dumb though) | |
Re: [B]double[/B] doesn't support the Modulus operator, you will have to implement it yourself if you want to do this. | |
Re: How about this, rather unusual method ;) [CODE=CPLUSPLUS]#include <iostream> struct octet { union { char val; struct { unsigned h : 1; unsigned g : 1; unsigned f : 1; unsigned e : 1; unsigned d : 1; unsigned c : 1; unsigned b : 1; unsigned a : 1; … | |
Re: Oh Oh - [URL="http://letmegooglethatforyou.com/?q=C+tutorial"]STFW[/URL] :) ... ( thanks for that niek! ) | |
Re: >I was just curious, I absolutely do not want to make any type of virus, trojan, or malware. I have to admit, I believe you (because i've helped you in many previous threads). And well, we all find ammusment in differen't things, making pranks for a friend (as long as … | |
Re: :sweat: Eesh, I was just thinking today how I seemed to be getting so much more spam than usual. Damn?.. | |
Re: Was it really necessary to post 1126 lines of code, especially with a very vague question.. | |
Re: The file is available at compilation time.. but not run time. As far as I can think, the only way this is possible is to use the [ICODE]#include[/ICODE] directive, assuming the file contains C/C++ code. Other than that, I have no idea :) | |
Re: This is one of those situations where, as long as the project isn't too big and it is okay with you, attach the whole thing and let me have a little play around with it to see if I can figure it out :) Im sure the problem is easier … | |
Re: >here a solution to your problem That is a very long and overcomplex solution to his problem I think :) Heres my solution.[CODE=CPLUSPLUS]#include <iostream> #include <string> #include <vector> using namespace std; int main() { string value; cout << "Please input something: "; getline(cin, value); vector<int> numbers; int temp = 0; … | |
Re: >i seriously tried but still cannot find the mistake Huh? What do you mean you can't find it? You have been told [B]exactly[/B] what your error is, and how to solve it. What more could you want? Read through the posts, and actually pay attention to what is being said. … | |
Re: Your problem is very small :) The coordinate in which you are trying to display the menu is not based on the client location. Change your [B]WM_RBUTTONUP[/B] message like this:[CODE=CPLUSPLUS]case WM_RBUTTONUP: POINT p; p.x = LOWORD(lParam); p.y = HIWORD(lParam); ClientToScreen(hWnd, &p); DisplayPopupMenu(p.x, p.y); break;[/CODE]Hope this helps. | |
Re: Nope, [B]hbrBackground[/B] only accepts [B]HBRUSH[/B], not an image. If you want to do this, you will have to draw it yourself. Try looking up the [B]WM_PAINT[/B] and [B]WM_ERASEBKGND[/B] messages, and manually paint the image on your parent window in your message handler. By posting some code, I could help more. | |
Re: [QUOTE][B]You Are 35% British [/B]You're about as British as a half hearted Anglophile... in other words, a piss poor Brit. If you are indeed from Britain, you probably consider yourself a European more than anything else. If you're trying to pass for a Brit, you're going to have to try … | |
Re: For the first one, I got an IQ of 120 :) Woo! I have "High Intelligence".. only 10 away from superior intelligence. | |
Re: Trig isn't all that difficult.. I put together a small example of how to create a bitmap, draw a circle and a sector in it (with a 50 deg angle). I tried to keep the code as short as possible, but it is still over 200 lines, so I will … | |
Re: Yellowcard The Used Secondhand Serenade Dexter Freebish American Hi Fi Eagle-Eye Cherry Jack Johnson My Chemical Romance Goldfinger Mindless Self-Indulgence Rise Against Buckcherry Red Hot Chilli Peppers - Pretty much in order :icon_cheesygrin: | |
Re: Maybe this thread will help you :) [B][URL="http://www.daniweb.com/forums/thread131545.html"]Link[/URL][/B] |
The End.