I want to do my final year project,and thinking of researching and building a network mapping software,But i dont know which programming language(Java,C++,C,Visual Basic)/platform(Linux,Unix,Windows) is best for this research software.Please any suggestions will be highly appreciated.
Flaws...i am familiar in Java but not Good in C and ...
Good day all.
I have a file that contains data which some part is shown below.It contains the records at every 3seconds taking for a period of 30 days. I want to perform the following on the data.
2010-03-03 16:00:31; 66.89; 24.0; 14.89; 0.08;
2010-03-03 16:00:35; 66.15; 24.1; 14.85; 0.08;
2010-03-03 16:00:38; 6...
The idea is that an existing project uses timeGetTime() (for windows targets) quite frequently.
milliseconds = timeGetTime();
Now, this could be replaced with
double tmp = (double) lpPerformanceCount.QuadPart/ lpFrequency.QuadPart;
milliseconds = rint(tmp * 1000);
with lpPerformanceCount.QuadPart and lpFrequency.QuadPart being...
Hello!
I am trying to adapt swapBuffers sample on WDK so that the swapped buffer is the same one than original buffer but in upper case. Modifying this lines on SwapPostReadBuffers() it doesn't work... I get execution errors. Can anyone help me to do it? THANKS
// We suppose that input data are always characters in lower case.
UCHAR *...
I am working on an embedded C project. I have an LCD display and for each character there is a 5x7 dot matrix. To display a specific character you have to shift in 5 bytes that correlate with the dots to turn on. So I need to make some kind of look-up table with a key where I can pass in an ASCII character, and get an array of 5 bytes re...
Is there a standard C function that can convert from hex string to bye array? I do not want to write my own function if there is an already existing standard way.
...
I want to take a binary file (exe, msi, dll, whatever) and be able to actually "see" the binary code or whatever base I'd like (hexadecimal whatever). Figured the easiest way would be just to output the code into a txt so I can examine it.
Whats the best and easiest way to do this? Basically I am looking to convert the binary code into ...
I'm working on some C code in Visual Studio 2005 on Win7 Pro x64. The code is correct; it compiles and runs on MinGW under Eclipse. However, using certain functions from the standard C libraries like stdio or stdlib causes the following lines to exhibit syntax errors when the code is built in VS2005. As an example:
#include<time.h>
#...
What will be the behavior and output of the following code if i accidentally code so in C/C++,
float a = 12.5;
printf("%d\n", a);
printf("%d\n", *(int *)&a);
...
Folks I think I will throw all my modest C lore away. Look at this code please:
int main( int argc, char ** argv, char ** envp )
{
int aa;
srand(time(NULL));
int Num=rand()%20;
int Vetor[Num];
for (aa=0; aa<Num; aa++)
{
Vetor[aa]=rand()%40;
printf("Vetor [%d] = %d\n",aa,Vetor[aa]);
}
}
I would think that this should th...
I'm creating a message loop in plain C that interfaces to my Harbour-based project. So far, everything works just fine, except for scrollbars in dialogs which have the WS_VSCROLL style. My message loop doesn't seem to see the WM_VSCROLL message, but it does see the WM_NCLBUTTONDOWN message with the HTVSCROLL value in Msg.wParam. Anybody ...
Possible Duplicate:
Why is alloca not considered good practice?
What is alloca and why is its use discouraged?
...
I am new to C and I was wondering if it was possible for a pointer to be overflowed by a vulnerable c function like strcpy(). I have seen it a lot in source code, is it a way to avoid buffer overflows?
...
Why does the following program give a warning?
Note: Its obvious that sending a normal pointer to a function requiring const pointer does not give any warning.
#include <stdio.h>
void sam(const char **p) { }
int main(int argc, char **argv)
{
sam(argv);
return 0;
}
I get the following error,
In function `int main(int, char **...
I'm looking for an API that is open sourced and that can take contours of verticies as input and return verticies of triangles. I would also like it to support different winding rules. Thanks
...
Is this correct?
int (*(*ptr)())[];
I know this is trivial, but I was looking at an old test about these kind of constructs, and this particular combination wasn't on the test and it's really driving me crazy; I just have to make sure. Is there a clear and solid understandable rule to these kind of declarations?
(ie: pointer to... arr...
Here is my issue. I'm tesselating complex, self intersection, multicontour polygons with hundreds of verticies. The GLU Tesselator crashes with null pointer 0x0000000 issue. It never ever crashes when I do not make self intersecting polygons. If it does not intersect, it will never crash no matter what the circumstances. I check for NULL...
am trying to understand windows hooks by writing a few keyboard hooks.
i have a function,
bool WriteToFile(WPARAM keyCode, char * fileName)
{
ofstream fout("filename");
if(fout.is_open())
{
if(keyCode>=0x030 && keyCode<0x039)
fout<< (keyCode - 0x030);
fout.close();
return true;
}
...
So I'm stuck with a protocol that adds a CRC8/CRC16 over odd number of bits. (ie. it's not divisible by 8) What's the best method to generate the CRC for it in software?
There are plenty of CRC algorithm that uses table, but they are lookup per byte. Of course, there's the "fail-safe" of doing it one bit at a time. But is there a be...
i need to know pushing and poping in stack using c program
...