Hi,
I would like to know if there is any way in which I can monitor a value of a variable until for example a counter reaches a value and then log the output of variable value during each counter value?
...
hi everyone
is any one knows whats the diffrence between unsigned long to UINT64
i think its the same , but im not sure.
the defenition of UINT64 is :
typedef unsigned __int64 UINT64 (By Using StdAfx.h)
thanks.
...
I am writing the log file in my c application, the method for writing the file is
fopen_s(&fMainFile, "c:\\LOG\\Filter.txt", "a");
fprintf(fMainFile, "SomeText");
fclose(fMainFile);
I open the handle, after writing I closed it, but this writing crash my application after a while, can any one sort out this problem, that how much dange...
I work on a code base which is mostly C with a little C++, and is mostly built with gcc but occasionally it needs to be built with MSVC. Microsoft's C compiler is still pretty much C89 with a few minor extensions, and it still doesn't support mixed code and variable definitions à la C++/C99. So I need to find a way to prevent developers ...
Hello everyone.
My problem is that I need to parse an HTML document chunk by chunk and add a comment in the head element of the document.
I am using C and I found that libxml2 is the best library out there for this purpose.
As I am receiving only chunks of data at a time I thought using a SAX parser would be a better option.
Howeve...
hello i am using windows and ANSI-c , i have an application that sniffs data from network card then decodes it and sent to and other application via UDP. the problem is my application starts with fine working but after some time its all variables int, float and strings are corrupted i have checked it many times but can't be able to dig o...
I am using GCC + the terminal to make an array of prime numbers.
I once asked on #[email protected], but I still don't understand:
An int can store values on 32 bits (so a total of 2^32 unique values), but can't an array have more than 2^24 values ?
I'm not sure, but is http://stackoverflow.com/questions/2318278/why-24-bits-registers...
struct inode_operations ext3_dir_inode_operations = {
.create = ext3_create,
.lookup = ext3_lookup,
}
This struct is assign to inode structure and further to file system operation structure.
My question is what is this flag .create? Do we do the assignment in the structure itself?
Or is it some other ver...
I am trying to get the size of PNG image (Without storing into file). I am using this code as reference. When calling GetDIBits(), size of image would get updated into bi.biSizeImage. Everything works fine when bi.biCompression is BI_RGB. Then I have changed the compression mode from BI_RGB to BI_PNG; GetDIBits() started to fail. Please ...
I've been annoyed lately by the fact that PyDev doesn't information about classes and function when it code completes wxPython code.
Can anybody tell me FOSS IDE's or extensions that offer code information (function params, returns etc.) when it code completes for C/C++ and Python.
I am a fan of CodeLite, Eclipse CDT and CodeBlocks in ...
Is there an easy way to get a notification from Google when a Google Mail user gets a new mail? Read- /write support, etc. is not needed.
I'm looking for solutions in C, Objective-C or C++.
...
Hi,
I have the following lua script :
module("modoo",package.seeall)
foo=1
bar={12,34}
Which works fine using the cli, such as :
> dofile "mod_modoo.lua"
> =modoo.foo
1
> =modoo
table: 0x86ce058
As far as I understood, it works like a table, but whenever I try loading it as a table, a nil value is pushed onto the stack. Every othe...
Please let me know if you encounter any good programming (C/C++/Datastructures) video tutorials. This is something I found which has quite a good compilation http://freescienceonline.blogspot.com/2007/09/programming-language-video-lectures.html
~ Sam (The more I give the more I receive)
...
Hi,
I tried to read the /proc/modules using standard c functions:
FILE *pfile;
int sz;
pfile = fopen( "/proc/modules", "r" );
fseek( pfile, 0, SEEK_END );
sz = ftell( pfile );
rewind( ftell );
But my problem is ftell give me 0 value. So I can't read the contents of the file since I have a zero length. Is there another way that I can ...
A long time ago I used to program in C for school. I remember something that I really hated about C: unassigned pointers do not point to NULL.
I asked many people including teachers why in the world would they make the default behavior of an unassigned pointer not point to NULL as it seems far more dangerous for it to be unpredictable.
...
Is there any function or method to randomly choose a number (or 2 numbers or more) from an array?
...
Using fprintf, what is the format-string to output two digits after a decimal separator?
float number = 3.0;
fprintf(pFile, "%10.02f", number);
This always outputs 3 instead of 3.00
How do I fill up the digits after decimal separator with zeros? I want 3.00 written in the output file.
...
Hi Guys , Well i have a probleme with some puzzles , However i want to solve this puzzle and i need your help , i have an array from ten Numbers(Or More),for example :
arr[1,2,3,4,5,6,7,8,9,10]
i want a method to check if 3 numbers from this arrays have the same sum to another 3 numbers (I want to get all the possibilities ! ) , for ...
What are some good do-s and don't-s for floating point arithmetic (IEEE754 in case there's confusion) to ensure good numerical stability and high accuracy in your results?
I know a few like don't subtract quantities of similar magnitude, but I'm curious what other good rules are out there.
...
I have a char* name which is a string representation of the short I want, such as "15" and need to output this as unsigned short unitId to a binary file. This cast must also be cross-platform compatible.
Is this the correct cast: unitId = unsigned short(temp);
Please note that I am at an beginner level in understanding binary.
...