5,237 Posted Topics

Member Avatar for tango2009

You could post more than one line of code, so we can see the context of the question.

Member Avatar for tango2009
0
106
Member Avatar for yanni13

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?

Member Avatar for yanni13
-1
288
Member Avatar for squarey

> 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 …

Member Avatar for squarey
0
77
Member Avatar for All Left Me

[URL="http://clusty.com/search?query=windows+user+administrator+privileges&sourceid=Mozilla-search"]Secret information - for your eyes only[/URL]

Member Avatar for Salem
0
36
Member Avatar for eddan

> #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.

Member Avatar for gangsta1903
0
900
Member Avatar for Stefano Mtangoo

> 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 …

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for MyRedz

Still xposting I see.... [url]http://cboard.cprogramming.com/cplusplus-programming/124466-need-help-linked-list.html[/url]

Member Avatar for lotrsimp12345
0
112
Member Avatar for iliali16

"grasshopper" also means [URL="http://en.wikipedia.org/wiki/Kung_Fu_%28TV_series%29"]the student[/URL]

Member Avatar for jephthah
0
288
Member Avatar for 143wena

So what have you learnt (or even attempted) in the past two weeks? [url]http://www.daniweb.com/forums/thread208111.html[/url]

Member Avatar for WaltP
-1
605
Member Avatar for gingank
Member Avatar for Phloxicon

Pretty much the same thing was asked yesterday, [url]http://www.daniweb.com/forums/thread265174.html[/url]

Member Avatar for Phloxicon
0
81
Member Avatar for csfriends

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 …

Member Avatar for peter_budo
-1
179
Member Avatar for SimonLarsen

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.

Member Avatar for SimonLarsen
0
236
Member Avatar for ting89_sam

> May i know is it suitable to propose this system to project supervisor ? Here's an idea - ask THEM!

Member Avatar for jwenting
0
163
Member Avatar for nhalavanja

> 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. …

Member Avatar for Salem
0
112
Member Avatar for johndoe444

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) …

Member Avatar for Salem
0
172
Member Avatar for milind123
Member Avatar for Salem

[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.

Member Avatar for Ancient Dragon
0
109
Member Avatar for lordvoldemort

> 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.

Member Avatar for tetron
0
91
Member Avatar for kedarm

> 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]

Member Avatar for Salem
0
1K
Member Avatar for sexyzebra19

[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 …

Member Avatar for Salem
0
421
Member Avatar for katwalatapan

> 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 …

Member Avatar for katwalatapan
0
339
Member Avatar for Godsp3ed

And your legitimate reason for hijacking is what? 99.9% of hosts hijacks are spammers and other low-life - what's your reason?

Member Avatar for Godsp3ed
0
148
Member Avatar for Iam3R

> 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 …

Member Avatar for Salem
0
693
Member Avatar for Ryman

> 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.

Member Avatar for Salem
0
230
Member Avatar for aliase

Post your test program showing how you create the parent/child, and how you deal with signals at the moment.

Member Avatar for Salem
0
40
Member Avatar for Broseph

> int count0; Here's the problem, you don't initialise your counters to zero.

Member Avatar for Broseph
0
86
Member Avatar for TheWolverine

[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.

Member Avatar for TheWolverine
0
149
Member Avatar for kendaop

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.

Member Avatar for abhimanipal
0
127
Member Avatar for daviddoria
Member Avatar for D4n1sD
Member Avatar for leatheag

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?

Member Avatar for leatheag
0
907
Member Avatar for ALISEIFABF

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 …

Member Avatar for Salem
0
76
Member Avatar for freakzilla

> 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. …

Member Avatar for Salem
0
170
Member Avatar for Tango2010

> 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.

Member Avatar for Salem
0
664
Member Avatar for Tech B

> 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]

Member Avatar for Tech B
0
175
Member Avatar for squarey

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]

Member Avatar for Salem
0
202
Member Avatar for system analysis

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]

Member Avatar for Salem
0
155
Member Avatar for liveshell

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() { …

Member Avatar for Salem
0
758
Member Avatar for drewangel

> 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 …

Member Avatar for Salem
0
117
Member Avatar for sanzilla

> 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]

Member Avatar for Salem
0
1K
Member Avatar for Xhoana

> 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 …

Member Avatar for Salem
0
121
Member Avatar for iNach

> 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 …

Member Avatar for Salem
0
136
Member Avatar for react05

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.

Member Avatar for react05
0
205
Member Avatar for manutm

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]

Member Avatar for manutm
0
99
Member Avatar for Abdel_eid
Member Avatar for vijayr_singh
Member Avatar for ArtphotoasiA

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, …

Member Avatar for Lardmeister
0
190
Member Avatar for johndoe444

> while ((fscanf(fp, " %[^\n]", line) != EOF)) I agree with Dave, this could so easily overflow your char array. Try using fgets instead.

Member Avatar for Adak
0
185
Member Avatar for phil750

> 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.

Member Avatar for phil750
0
539

The End.