... Because the registry offers one thing the file system doesn't: Atomic operations. Only one process is allowed to read from/write to one key at a time....
Dear list members, I working in a project that uses a very big struct whose size is approx 4.0 MB. If I declare a struct variable within the main (actually,...
Hi , i got through ur question .for calling a function alot of time su can use this recursion wheather it depends .by this functin u can reduce ur lines of...
Hi, ... I think my question was not clear. "Why virtual function cannot be friend ?" is probably the right question. Here an example : #include <iostream> ...
David Fleury
david.fleury-prestata...
Dec 1, 2004 11:49 am
41238
... Globals should be avoided whenever possible. Did you try to allocate the space dynamically? Like: DATA* data; data = new DATA; Or such? HTH -- Tamas Marki...
Did you try it on Win 2000/XP? ... _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it...
... You should be using dynamically allocated memory using new/delete and I can't imagine why you need such a big structure - either you have lots of large...
... can use this recursion wheather it depends .by this functin u can reduce ur lines of codes .again the memory spaces .I am MCA STUDENT OF 1ST yr i am trying...
Which one you don't know how to do? Getting a file name from command line, prompting user for file name, or comparing the file name? To access the command...
aavvee <aavvee2002@...> wrote: Hi, In my program, I created a file. Then I get a file name from inline command. And I want to compare if this file name...
hi, Shyan: Thanks for your info. I already created file MyFile.txt in directory D:\Working\ And I got the file name "MyFile.txt" from command line with gets() ...
What's the OS and compiler? For VC++, you can use _findfirst() / _findnext() / _findclose(). For Windows in general, you can use the FindFirstFile() /...
I work on UNIX, and use cc or gcc command. Is there similar function in C library? Thanks ... __________________________________ Do you Yahoo!? The all-new My...
... Well, I'm not surprised. Very few systems are going to have a stack big enough to hold a 4 MB structure. Some will be able to "grow" the stack at need....
I am trying to write a txt file on the Hard disk. I use this program: FILE * pFile; pFile = fopen ("myfile.txt" , "w"); fprintf (pFile, " %s This goes in one...
... You should check for a null pointer return. ... This is an invalid line. You specify a %s, but you supply no corresponding argument. But in answer to your...
So, I know that the compiler totally ignores comments, but just to be sure, do all of the following get translated into machine language? - compiler directives...
... Making the program more robust is better than swapping platforms. Even if the OP can get the program to work under XP, why place an unnecessary limit on...
... I'm not clear on your terminology. Can you give examples of the two types? [Also, add what _you_ think the differences are, even if you think you're...
... no, lots of things will affect what gets executed. ... Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: ...
... The C90 language only guarantees that one object of 32767 bytes can be allocated. Of course, this is impractical for real applications, but the same...
... A compiler doesn't have to. Some systems allow meta comments to affect code. ... There are generally no hard and fast answers to that. It depends on the...