5,237 Posted Topics
Re: You could post more than one line of code, so we can see the context of the question. | |
Re: Does your code report any useful error messages on failure? Do you have a firewall? Are you assuming that message transport is "instantaneous"? Are you assuming that message transport never fragments messages? | |
Re: > 1. Does anyone know where I can find a list of hex file markers A search engine? Pre-digested results: [url]http://www.softpedia.com/get/System/File-Management/File-identifier.shtml[/url] [url]http://www.forensicswiki.org/wiki/File_Format_Identification[/url] > 2. I have noticed that whenever I modify some files like RIFF, when I run then they need to be 'repaired' You didn't do a good enough … | |
Re: [URL="http://clusty.com/search?query=windows+user+administrator+privileges&sourceid=Mozilla-search"]Secret information - for your eyes only[/URL] | |
Re: > #include <stdafx.h> Delete this line, then do Project->Settings->Compiler (or pre-processor - depends on which VS you have). Look for the option that configures "use precompiled headers". Then turn it OFF. | |
Re: > I have doe SQL fro some time now but I have never done blob. So did you learn what you know by reading the manual, or did you learn it some other way - osmosis perhaps? > 2. How to create a C++ object to store in blob and … | |
Re: Still xposting I see.... [url]http://cboard.cprogramming.com/cplusplus-programming/124466-need-help-linked-list.html[/url] | |
Re: "grasshopper" also means [URL="http://en.wikipedia.org/wiki/Kung_Fu_%28TV_series%29"]the student[/URL] | |
Re: So what have you learnt (or even attempted) in the past two weeks? [url]http://www.daniweb.com/forums/thread208111.html[/url] | |
Re: Have you asked Nvidia tech support? | |
Re: Pretty much the same thing was asked yesterday, [url]http://www.daniweb.com/forums/thread265174.html[/url] | |
Re: You mean there's a brain somewhere? [url]http://www.daniweb.com/forums/thread259990.html[/url] [url]http://www.daniweb.com/forums/thread259551.html[/url] So have you figured anything out in the past week? As far as I can tell (which is already perhaps more than you can tell), this field is pretty much at the cutting edge. Either big businesses are interested, in which case … | |
Re: Have you joined for forums / mailing lists here? [url]http://www.libsdl.org/[/url] Does a really simple program of just SDL_Init(); SDL_Quit(); also cause problems? If it does, you have a really simple test case for a bug report. | |
Re: > May i know is it suitable to propose this system to project supervisor ? Here's an idea - ask THEM! | |
Re: > printf("Prime is %d prime\n", prime); > exit(prime); Have you read the manual? [code] The exit() and _Exit() functions terminate a process. Before termination, exit() performs the following functions in the order listed: 1. Call the functions registered with the atexit(3) function, in the reverse order of their registration. 2. … | |
Re: Everything on your machine is FINITE [code] $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 20 file size (blocks, -f) unlimited pending signals (-i) 16382 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) … | |
Re: [url]http://www.daniweb.com/forums/announcement8-2.html[/url] | |
[I]<<thread split>>[/I] Who exactly? The OP left the forum 4 YEARS ago. And there the thread lay, nice and quiet until a day ago. | |
Re: > The Design Assignment is due by Friday at 6:00 p.m., Better get to it then. >I tried as hard as I could, but loops and ifstream, are something I cannot understand. Mmm, so post what you managed to do so far then. | |
Re: > In my Visual Studio options Well there's your problem! You downloaded MinGW libraries, not Visual Studio libraries. Try here [url]http://curl.haxx.se/download.html[/url] | |
Re: [quote=c99 draft] 7.23.2.1 The clock function Synopsis 1 #include <time.h> clock_t clock(void); Description 2 The clock function determines the processor time used. Returns 3 The clock function returns the implementation’s best approximation to the processor time used by the program since the beginning of an implementation-defined era related only to … | |
Re: > mul=(float *)malloc(36000); a) why are you casting malloc in a C program? Did you forget to include stdlib.h? b) who said sizeof(float) was 4 bytes on your machine? If you want 9000 floats, then say [ICODE]mul = malloc( 9000 * sizeof *mul );[/ICODE] then it doesn't matter how big … | |
Re: And your legitimate reason for hijacking is what? 99.9% of hosts hijacks are spammers and other low-life - what's your reason? | |
Re: > does the standard definition of memcpy varies from system to system ? No, the standard DEFINITION is that it copies n bytes from source to destination. The IMPLEMENTATION from one system to another can however vary. - some systems copy from low addresses to high addresses - starting at … | |
Re: > I'm trying to get the album name for the mp3 file, but when I echo the name I get a blank line back. Try feeding it a VALID mp3 file, not some crude thing containing only a single dot. | |
Re: Post your test program showing how you create the parent/child, and how you deal with signals at the moment. | |
Re: > int count0; Here's the problem, you don't initialise your counters to zero. | |
Re: [code] int sign = 1; for ( .... ) { // do something sign = -sign; } [/code] Each time around the loop, sign alternates 1,-1,1,-1 Just multiply whatever your term is by sign, and you're done. | |
Re: What's the rest of the code? Without a complete example, and your input file, it's hard to figure out what you're doing wrong at the moment. | |
Re: [url]http://linux.die.net/man/3/isnormal[/url] | |
Re: Have you read [url]http://beej.us/guide/bgnet/[/url] ? | |
Re: So what's your question? How to learn MIPS? > Just need to convert an integer to a character. Is that it? Or will you 'just' need to do another MIPS assignment next week as well? | |
Re: So what is the problem? Each PC just plugs directly into the hub, and the hub (I'm guessing it's a hub and modem in a single box) plugs into the ADSL. Each should then be able to surf at will. If you've got something specific in mind, then mentioning which … | |
Re: > init_client() Why doesn't this initialise the mutex (and everything else, especially notify) > add_to_client() It's probably safer if you use the mutex to guard this as well. Adding you might get away with, but when it comes to removing things from the list, you definitely need to lock it. … | |
Re: > printf(fileFound, " %s\\*.*", path); Surely you mean sprintf() here! > printf (path); NEVER pass user input as the format string direct to printf. [url]http://en.wikipedia.org/wiki/Format_string_attack[/url] Use fputs() if you just want to output a string. | |
Re: > I was wondering would this be considered a quine? No. Reading from a file renders the problem trivial in nearly all languages. Some real examples [url]http://www.nyx.net/~gthompso/self_pyth.txt[/url] | |
Re: a) Which operating system b) which file system c) which compiler d) which hard disk drive Probably some other info as well. How much research did you do? [url]http://www.hardwaresecrets.com/article/29[/url] [url]http://en.wikipedia.org/wiki/File_Allocation_Table[/url] [url]http://en.wikipedia.org/wiki/NTFS[/url] | |
Re: That's two posts in quick succession from you, both without a hint of any effort on your part. [url]http://www.daniweb.com/forums/announcement9-2.html[/url] | |
![]() | Re: Post an actual example! My simple test has no issues. [code] #include <iostream> #include <iomanip> #include <string> #include <map> using namespace std; class CManager { enum RespType_en { eInvalidRes = 0, eAuthRes, eActivateRes, eSetStateRes }; map<RespType_en, string> m_mRespTags; public: CManager(); bool GenerateResponseTagMap(); }; CManager::CManager() { GenerateResponseTagMap(); } bool CManager::GenerateResponseTagMap() { … |
Re: > i know i need to use structure for the same. i am using pointer to that structure in this case. Do you allocate this struct (good), or use some local variable (bad), or even re-use that local variable for starting more threads (even worse!). Ditto for the array. So … | |
Re: > Hey...how is the tutorial going? First check the post dates, and when the poster was last on line (years ago). Did you see their email address? did you try it? If you want a tutorial, try this [url]http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/www.artofasm.com/index.html[/url] | |
Re: > I'm new to C++ and i was told Dev CPP is a good compiler. The compiler is OK (a bit old now), but the IDE is pretty poor by comparison to todays offerings. For a start, it sounds like you downloaded the SMALLER of the two packages available. Small … | |
Re: > Im using Visual C++ ... > Microsoft Visual C# 2008 Express Edition One of these is a typo surely? > fopen("Keywords.txt", "r"); In windows explorer, do you have the "helpful" feature of "hide extensions for known file types" turned on? [attach]13913[/attach] Actually, it's of no use at all to … | |
Re: So you want to be able to type in say 2 3 + and then get the answer 5 ? Start with [ICODE]std::stack<int>[/ICODE] See a number, push it See an operator - well you've already described everything. | |
![]() | Re: Are you looking to tie your program to that specific machine, or are you just looking for something which is unique? If it's the latter, then consider a [url]http://en.wikipedia.org/wiki/Uuid[/url] ![]() |
Re: [url]http://www.codeblocks.org/[/url] Runs on Ubuntu | |
Re: Wow - a full house of forums I've seen the same post on. | |
Re: What about the other case then? You know, the one where the bullies who managed to incriminate themselves got prosecuted. Were they charged with violation of privacy, or just regular physical assault? It's hard to find out, because without the "google" tag, this isn't anything like international news. For example, … | |
Re: > while ((fscanf(fp, " %[^\n]", line) != EOF)) I agree with Dave, this could so easily overflow your char array. Try using fgets instead. | |
Re: > if(strcmp(cmd,NULL) == 0) Well this will blow up every time! Perhaps you meant to test cmd for being empty? > chdir(getenv("HOME")); getenv() might return NULL as well, and that will segfault as well. |
The End.