My application uses GLUTesselator to tesselate complex concave polygons. It randomly crashes when I run the plain release exe, but it never crashes if I do start debugging in VS. I found this right here which is basically my problem:
The multi-thread debug CRT (/MTd) masks the problem, because, like
Windows does with processes sp...
I'm using GLUTess to tesselate polygons. Sometimes it crashes with a null pointer issue and I have no way of knowing why since I just link to glu32.lib . Is there a way to see the source and get the exact line it crashes on?
Thanks
...
I'm using GLUTess to tesselate polygons. After several tests, I realized glu32.lib which links to glu32.dll, crashes every once in a while. Whereas GLU which I got from the opengl sdk, is solid as a rock. Unfortunately though, by not linking to the windows dll, this means I need to drag around GLU.dll with my app instead of relying on Wi...
HI,
what does this mean, and how to resolve it?
error RC2175 : resource file res\icon3.bmp is not in 3.00 format
...
what is the mazimum icon' size can be used in c++ mfc dev?
...
HI, all.
Here are the things I want to do :
I want to store lots of informations to a block by bits, and save it into a file.
In order to keep my file not so big, I only want to use a small number of bits to save specified information instead of a int.
For example, I want to store Day, Hour, Minute to a file.
I only want 5 bit(day)...
Here is very simple code,
#include <iostream>
using namespace std;
int main() {
unsigned int u=10;
int i;
int count=0;
for (i=-1;i<=u;i++){
count++;
}
cout<<count<<"\n";
return 0;
}
The value of count is 0. Why?
...
vector<int> myVector;
and lets say the values in the vector are this (in this order):
5 9 2 8 0 7
If I wanted to erase the element that contains the value of "8", I think I would do this:
myVector.erase(myVector.begin()+4);
Because that would erase the 4th element. But is there any way to erase an element based off of the value "...
Possible Duplicate:
What does the code do?
void duff(register char *to, register char *from, register int count)
{
register int n=(count+7)/8;
switch(count%8)
{
case 0: do{ *to++ = *from++;
case 7: *to++ = *from++;
case 6: *to++ = *from++;
case 5: *to++ = *from++;
case 4: *t...
I have to develop ATL app that is meant to run as service most the time, however we need to deploy it as user application in few environments
...
Suppose we have a loop that runs for 100 times. Does using unsigned char instead of int for its counter make a difference? And also using i += 1U instead of i++? Or do compilers take care of that?
...
Possible Duplicate:
How to determine if a linked list has a cycle using only two memory locations.
hello i have been asked in an interview that how can i find a loop exists in a link list using only two pointers.
i have done the following:
1) find the center of the link list each time
2) by iterating this at the end both th...
I have the following two loops:
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main(){
int start=clock();
for (int i=0;i<100;i++)
cout<<i<<" "<<endl;
cout<<clock()-start<<"\n"<<endl;
cout<<"\n";
int start1=clock();
for (int j=0;j<100;++j)
cout<<j<<" "<<endl;
...
I'm editing an item in CListCtrl control. an edit box appears where I can enter text.
The event of entering the text will, however, not be catched by the LVN_KEYDOWN handler.
how do I catch it otherwise? any samples?
Thank you
...
I have a C++ project with the following definition in the header file:
typedef enum /* Set operation type */
{
GPC_DIFF, /* Difference */
GPC_INT, /* Intersection */
GPC_XOR, /...
I am cross compiliing my executable for coverage using -fprofile-arcs -ftest-coverage flags on a 32 bit machine . And the resulting executable I am running it on target machine which is 64-bit.
When I run the executable it does not generate .bb .bbg and .da files. What can be the reason for it.
...
I'm looking for a way to specialize a widget at runtime. I have a form created with Qt Designer. In this form there is a widget that displays user data, like name, age and so on. Then the user chooses a file and according to the type the widget shall display additional information (like to OO example person -> student, teacher).
I tried...
Hello there,
I have an MFC application in which I have declared a Global Object say "obj" in a file called MiRec2PC.cpp now I want to use this object in a C file.
I have used an approach in which I include the header file in which the structure of that particular object is declared. I also use a keyword "extern" with that obj when I u...
Hi again and welcome to another 'wouldn't it be great if we'd combine two things that i really don't understand anything about'-question ;)
This Episode: OpenGL Uniforms and c++ Templates
The Idea: Wouldn't it be great if you could write a single template function to set uniforms in an OpenGL shader?
The Problem: Uniforms in shaders a...
Hi,
I'd like to output some data to a file. For example assume I have two vectors of doubles:
vector<double> data1(10);
vector<double> data2(10);
is there an easy way to output this to a file so that the first row contains the headings 'data1' and 'data2' followed by the actual contents. The function which
outputs the data will b...