Hi,
I just opened an old C project in Visual Studio 2010 and tried to understand Intellitrace. But I get this error message
Intellitrace is not available for native or mixed-mode debugging
I searched a bit on SO and found similar but not yet resolved questions. Do you know what could be the problem? Thanks
...
This is a follow up to this question.
Since, it I can't use GLUT to undecorated windows is there a cross-platform (which should include Mac, Windows, and Ubuntu at minimum) library or way to undecorated a window? I know there are ways to do this for individual operating systems but, I wanted a cross platform way to do it, so I looked at...
okay, so I'm a bit of a C newbie. How does one test whether a file is read only on windows.
I tried to get something working with the GetFileAttributes function, but to no avail.
Given a file's path, what is the proper way to test if it is read only?
Edit:
So I'm still stuck on this one. I want to check if the user has permission to ...
In GCC compiler, whenever -O3 is flagged, the compiler optimizes mainly by Loop Unrolling and Function Inlining.
However, when I compiled an application that has the following function, it didn't do Function Inlining. From gprofing and gconving I could notice that this function (comp_t_delay) was not called from the main function unit o...
I have a nested for loop and I need to convert the output I get to a string. How do I do that?
e.g. my loop gives hundreds of values of numbers like:
192 168 11 248
192 168 11 249
192 168 11 250
192 168 11 251
192 168 11 252
192 168 11 253
192 168 11 254
192 168 11 255
How do I concatenate each value as 192.168.11.248 and so on.
Ba...
Hello guys,
I am writing a VMM for intel x86 architecture. Most of the code contains x86 platform specific assembly and c code. Can some one help me how to debug the assembly code please including hardware data structures.
...
I'm a little confused about the rules regarding restricted pointers. Maybe someone out there can help me out.
Is it legal to define nested restricted pointers as follows:
int* restrict a;
int* restrict b;
a = malloc(sizeof(int));
// b = a; <-- assignment here is illegal, needs to happen in child block
// *b = rand();
while(1)
{...
Comparing two numbers x,y; if x>y I return 1, else return 0. I am trying to do this using only bitwise operators such as >> << ~ ! & | ^ +.
So far I got this:
int greaterThan(int x,int y) {
return ((~(x-y))>>31);
}
So if x-y is negative, the most significant bit would be a 1. So I negate it to get a 0 and shift it so that it returns...
I am trying to implement the LRU alogorithm, however I am really not so sure how to change the FIFO to LRU and to manipulte the page table in the
//The declared parameters are as follows:
pt_entry pte[MAX_PAGE]; /* page table */
int mem_size; /* physical memory size in page frames */
list free_list_head; /* fre...
I am looking for a command line utility on *nix, that can dump the names of all the functions, classes etc. defined in a file(C/C++/Java)
...
Hi guys
I'm running a shell script on the university's server. In this shell script, I will execute java, c, c++, python and perl programs. Because every program will be executed many many times(I'm a teaching assistant and will test the students' programs with many different inputs). The server always gives me an error: "running out of...
Possible Duplicate:
constants and pointers in C
#include <stdio.h>
int main()
{
const int a = 12;
int *p;
p = &a;
*p = 70;
}
Will it work?
...
Hi,
I want to understand how sqlite is implemented. And, want to read the source code( I have already downloaded the source). Which part of the code I should start looking at?
...
after filling an array about 20 elements with students marks then rank 1 to highest marks of all student then increase rank to 2 to next highest marks of all student or remaining students
this just class management please help me to write algorithm in c# or C or C++ or java
...
hi all, I know about c and I am entering into JAVA and confused about its approach towards Array and String.its totally different from array and string in C. plz make me understand what actually the difference in C and JAVA (for string and array) .
...
Can you tell me the meaning of a**=b; in C. Also please define the ** operator;
...
I want to implement an analog of backtrace utility under windows in order to add this information to exception for example.
I need to capture return addresses and then translate it into symbols names.
I'm aware of StackWalk64 and of StackWalker project but unfortunately it has several important drawbacks:
It is known to be very slow ...
I am trying to get the following sent in an xml.
<Request xmlns="http://abc.org/1.1/Listener.wsdl">&lt;serverstatusinquiry xmlns="http://abc.org/messages"/&gt;</Request>
The problem I am facing is the text part of the Request node. I am printing the text as follows.
"<serverstatusinquiry xmlns=\"http://abc.org/messag...
Hi All. I have a problem here and need your help. I've been trying to capture keyboard strokes from a created window using cvWaitKey() function. The function works fine if I called the cvWaitKey from the same thread that created the window, but when I create the window from a thread and call cvWaitKey() from another thread it doesn't ret...
I have to output a large number, a double precision number using the following code:
fprintf(outFile," %11.0f %d O(g(n))",factorialNotRecursive(index,factCount),factValue);
now the number gets so big that it jumps out of alignment further down the
list of output. Once it gets past 11 digits, the max specified it continues ...