2,867 Posted Topics
Re: I'm guessing that [inlinecode]randNumGen->Next()[/inlinecode] returns a number, correct? What you'll need to do is convert this into a string before assigning [inlinecode]textBox1->Text[/inlinecode] to it. | |
Re: >why not combine all linux and unix questions into one category? Well, for one thing, I like to have shell scripting questions separated from Linux "help" questions. And having distro choice discussions separate from software installations is also a nice feature. The only forum that really doesn't serve a purpose … | |
Re: >But are not there kernels the same? No. Although the Vista kernel does use sections of the XP kernel, huge amounts of new code have been added to the Vista kernel (such as security enhancements), making it close to impossible to apply many of the features of Vista to Windows … | |
Re: >clientRequest.push_back(????); Well, I guess you could just create a temporary instance of [inlinecode]Client[/inlinecode] that you continually fill with data and push onto the vector. It'd be much easier to add a new element into the vector with [inlinecode]insert[/inlinecode], and then just fill in the data directly: [code=cplusplus] clientRequest[i].aa = xx; … | |
Re: I don't know if this helps, but you can mark a forum read by double-clicking the yellow folder that's beside the name of a forum. At least it saves you the trouble of visiting each individual forum. | |
Re: X11 is included as an installation option when installing Mac OS X. If you choose not to install it, the only way you can get X11 is by installing a third party application like you did. It's generally better to use Apple's implementation of it, so the next time you … | |
Re: >Anybody know of any online c++ "dictionaries" There isn't any complete documentation of the language as far as I know, but there are a number of sites that document quite a number of C++'s functions. One such site is [URL="http://www.cplusplus.com"]www.cplusplus.com[/URL] . However, using some documentation is at best, a poor … | |
Re: Firefox is distributed on a disk image, which is basically a compressed file. When you double-click it, you extract it into the memory. (That "Applications folder" you were wondering about is actually a watermark that you see when you open the disk image, it doesn't do anything.) Now you need … | |
Re: Remove the semicolon here: [code] void DVD::list() { DVD *current=start_ptr; while (current)[COLOR=red][B];[/B][/COLOR] { [/code] | |
Re: [quote=Salem;368689] You're reversing a string "in place", so the real answer is in string. printf("%s",string); [code] if ( length > 1 ) { ptr[0]=ptr[length-1]; reverse(ptr+1,length-2); } [/code][/quote] Just a thought, shouldn't you be saving the contents of [inlinecode]ptr[0][/inlinecode] to a temporary variable, and then copying this back to [inlinecode]ptr[length-1][/inlinecode]? | |
Re: I always do it from the command line so I can see what's happening. [code]# wine notepad.exe[/code] Or if it's installed on your fake "C drive", you would do it like this: [code]# wine "c:\program files\etc"[/code] | |
Re: [URL]http://msdn2.microsoft.com/en-us/library/ms532309.aspx[/URL] The answer is pretty clear. [quote][I]hInstance[/I][in][INDENT]Handle to the instance of the module whose executable file contains the bitmap to be loaded.[/INDENT][/quote]Since you're not passing a valid application instance, it's highly unlikely it's going to give you valid handle. | |
Re: >I still get the message that my membership expires in 8 days. It's probably still going off your trial membership. Once that expires, your full membership kicks in. Don't quote me on that, though. In any case, iWeb simply shares your .Mac storage with Mail and all your other iLife … | |
Re: >Is using Glut with OpenGL still popular and recommended? Pretty much. GLUT certainly isn't dead, is a good way to make OpenGL programs portable with very little code, and it's a great way to start out with 3D graphics programming. As you gain more experience and your programs become more … | |
Re: Well, lo and behold, it's May 15th. [quote=sk8ndestroy14;367108]Well it's on topic a little because I made a post that was on topic but it didn't show and that's happened to me once before.[/quote] Good point. That justifies you for bringing the thread off-topic. I'm glad we all make so much … | |
Re: [quote=laconstantine;367355]type casting cout << (int)x;[/quote] Yeah, right. :icon_rolleyes: [code] #include <iostream> using namespace std; int main() { char myString[] = "1234567890"; cout << (int)myString << endl; return 0; } /* output # ./a.out -1073743883 # */[/code] Since you're in C++, I'd recommend stringstreams: [code=cplusplus]istringstream iss(myString); int num; iss >> num;[/code] … | |
Re: Did you even change anything? Look at it this way: you need to grab the user's input [I]before[/I] the while loop, so that you can see if it was invalid or not. Then if it's invalid, the while loop kicks in, which keeps grabbing input until it's valid. Inside the … | |
Re: >Anybody who knows how to save a file to [U]/usr/include[/U] in the terminal? Uh, yeah. Just use the [inlinecode]cp[/inlinecode] or [inlinecode]mv[/inlinecode] command. With root (administrator) privileges, of course. >Suppose I will save a file named hello.h to the said directory If you save it there, then well, it's there. >what … | |
Re: You should definitely deallocate any memory you allocate. Otherwise you'll experience those awful memory leaks. And why in the world are you using [inlinecode]malloc[/inlinecode] for allocating the memory, and [inlinecode]delete[/inlinecode] for deallocating? That's a bug right there. When in C++, do like the C++'ers do, that is, use [inlinecode]new[/inlinecode] and … | |
Re: I can't possibly cover everything here, but to make it short: that code is awful. Here's some links that I have lying around: [URL]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351[/URL] [URL]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044841143&id=1043284376[/URL] [URL]http://www.devx.com/tips/Tip/14447[/URL] >char *accept(); Yikes. Since you're using C++, is there any particular reason why you're using C strings instead of the newer C++ ones? >char … | |
Re: [quote='Stein;366447]I believe it just doesn't show you their posts anymore, but don't quote me on that.[/quote] It falls short of being an ad blocker in some rare circumstances. [URL]http://www.daniweb.com/techtalkforums/profile.php?do=addlist&userlist=ignore&u=157780[/URL] | |
Re: >is this a new feature? It was present before, but I believe it somehow got lost in the recent site changes that Dani made. There was a mention about it in one of the previous threads here. >It's really neat, though becomes annoying quite fast. No need to worry. There's … | |
Re: >all i have to do plug it in to the printer and one of the ethernet ports on the router? That's the way most networkable printers are supposed to work. Some may require additional configuration, depending on your router/network setup. | |
![]() | Re: Found this guide on how to install libdvdcss on SuSE, as well as a number of other applications. [url]http://desktoplinux.com/articles/AT2703022234.html[/url] As for media players, I'd again suggest going with [URL="http://www.videolan.org/developers/vlc.html"]VLC[/URL]. It's a great player that supports many formats. |
Re: [quote=~s.o.s~;362234]Maybe something [URL="http://curl.haxx.se/libcurl/"]like this[/URL], though I am not very sure.[/quote] Nah, I think Curl is a bit too limited for the OP's purposes. Curl was built more for file transfer, not port scanning. Can't think of much, however at least look for something that's C++ based, such as this wrapper … | |
![]() | Re: [quote=dr4g;363310]For Servers. Linux blows Microsoft out of the window, hands down. Offering stability, security and maintainability. Windows can be setup in 10 minutes, but as stated above, will give you numerous problems and issues.[/quote] If that were completely true, don't you think more system administrators would be willing to spend … |
| |
Re: >The only downfall of it is that you must have an XBOX 360 to play it. Who said it wasn't going to be ported to Windows? With Halo 2 in the works for Vista, I'd say it'll be a few years till we see Halo 3 emerge for PC, but … | |
Re: >me relocating, any new neighbours? Well, I guess you're a [I]little[/I] closer to Canada... ;-) Why the move? Did war and stuff get in your way? | |
Re: >int get_letter grade(int); Can't have spaces in your function. And since you're calculating a [B]letter[/B] grade, don't you think you had better return a letter instead of a number? >int numeric_grade, >letter_grade; Likewise, you should make 'letter_grade' a char value, not an integer. It just makes sense. >cout endl; There's … | |
Re: Wow -- it seems like you're way over-complicating the whole procedure. Just make a loop like AD mentioned, and then use a stringstream to split up the words: [code=cplusplus] // loop... std::istringstream iss(line); iss >> lastName; iss >> firstName; // another loop to extract 10 scores, but you get the … | |
Re: Try searching for [search]Bitmap C++[/search]. The first 2 hits from Google should interest you. | |
Re: I'll try to give you some suggestions, but I'll pass on the donuts... :p Gnome - relatively fast, although there is some bloat present. Has a very "cute" look to it, and appeals to many people, although some find that it's too limited, and that KDE suits them better. KDE … | |
Re: You're getting the segmentation fault for because of this: [code]for(ptr=string;[COLOR=Red]string[/COLOR]!='\0';ptr++)[/code] Try replacing 'string' with *ptr (and remember, the * is important for dereferencing the value contained in the pointer). As for your logic -- it's a bit skewed. For one thing, you never consider the fact that the first letter … | |
Re: >im new in c++ So why the heck are you trying to create such an advanced program? Solidify your C++ knowledge first, [I]then[/I] go ahead and tackle a project like this. | |
Re: [quote=Narue;361347] I'd wager my next pay check that you're trying to strtok a string literal.[/quote] [quote=rati;361966][code]# include <stdio.h> int main() { char *s1; int found=0; char *s2; char * p3=NULL; scanf("%s",&s1); scanf("%s",&s2); printf("hgf"); *p3=strtok(s2," "); while(p3!=NULL) { if(strcmp(s1,p3))found=1; strtok(NULL," "); } if(found)printf("yes"); return; } ~ [/code] [/quote] Can I have … | |
Re: I'd recommend checking out the open-source [search]Gaim[/search] client's code, you will learn a lot by reading other people's source code. As for chat concept... the concept is fairly simple, it's the implementation that's difficult. You'll definitely want to spend some time learning sockets and other network-programming goodies that you'll need … | |
Re: You need to add the library object file to your linker's file list. This provides a reference to the DLL. Additionally, you may have to specify the .def file for the module definition, which you can do in the linker options with the /DEF [I]filename.def[/I] switch (only do this if … | |
Re: >Please let me know not ony what you think of the idea I could probably care less. >but also what you think of the specific colors for each category. Just don't make them too bright or happy, those tend to annoy me as they conflict with my personality. Thanks. | |
Re: [quote=iamthwee;346391]Why do ppl always complain about the ads or intelliText.[/quote] Usually the complaints aren't directed at ads in general, they're directed at particularly annoying ones which make it hard to view the content (eg. ads floating across the page), or ones that advertise crooked websites, such as paying to download … | |
Re: Somehow, I don't like the solution of using [inlinecode]system()[/inlinecode] calls. Maybe it's because[LIST] [*][inlinecode]system()[/inlinecode] calls are way slower than using libraries or hard-coding the socket calls yourself [*]Any client machine would be required to have [inlinecode]wget[/inlinecode] installed [*]It leaves files all over the hard drive [*]It requires read/write access to … | |
Re: >please how do get to the tty? Open up a terminal application if you're in a graphical environment. For example, Konsole. >how do i get my sound working? Install the drivers for your soundcard. >how do i use the command(s)? What commands? In other words, until you provide - the … | |
Re: >Is there a way to embed the necessary OpenGL files into the .exe file through the compiler? Yes, try statically linking the libraries, which will emebed all the necessary code into the final executable. Actual process to do such a thing varies from compiler to compiler. The easiest way, however, … | |
Re: Haven't received any JavaScript errors, ever. I haven't noticed any difference in the speed of DaniWeb, and I'm using Firefox 2.0 with Adblock. | |
Re: 1 decent search engine + another decent search engine != double traffic Some people use both search engines. Some will be annoyed at a search engine that has way more features than they need, and leave. Either way, it's not going to be worth it for Microsoft to spend all … | |
Re: [quote=musicbox;304016]many websites are offering free domains, you can try looking at [URL="http://www.freewebspace.net"]www.freewebspace.net[/URL] forums[/quote] Nah, some of them claim "FREE DOMAIN", but if you actually try to register, you'll find some sort of "registration fee", or it turns out that you have to pay a monthly "hosting fee" to get your … | |
Re: [URL]http://software.newsforge.com/article.pl?sid=04/12/06/1531221&tid=130&tid=132&pagenum=1[/URL] Basically you need to edit the .bochsrc to use the image you specify. I believe that it [I]should[/I] bring up a menu, which you can use to further configure the environment. | |
Re: strcmp() returns 0 when the strings are equal. So you would in fact have to write [inlinecode]if(strcmp(order,add) == 0)[/inlinecode] if you wanted to test whether 'order' and 'add' are the same. ![]() | |
Re: >is there any way of retreiving the username and password Not that I know of. >or di i just press reest on the router That's the easiest way. |
The End.