We have a multi-threaded C++ app which is mis-behaving. Fixing a corner-case bug properly would likely be a lot of work. Putting a patch on a bullet wound in combination with something else might do the trick. Due to too many heavy (GUI) threads being spawned, we are running over the limit of messages, which is defined in:
HKLM\Software...
I am using CreateFileMapping and MapViewOfFile to try and map an almost 1 GB file. I was having some problems with extending the file so I thought that I would try using CreateFileMapping with a 1 GB size. That is larger than the actual file, but it works well on smaller files.
It seems that I can get almost to a 1 GB mapping, but not a...
Can I include sections of code written in Visual C++ in my C# app, or vise-versa? I know that you can do that in Objective-C, so I wanted to know if it was possible in C# (.NET 4.0).
...
hello
Are there any popular open-source plug-in architectures for C++, which allowed discovering and loading shared object plug-ins during runtime or at startup via some sort of descriptor file? I had some experience with eclipse architecture, but I would like something easier than osgi bundles
Thank you
...
I have a System class that can return a pointer to an Editor class. The Editor class is instantiated within the System class and passed pointers to System's private variables. The Editor class essentially acts as an alternative interface to System's internal data structures.
My question:
Does a design pattern exist that allows me to pr...
I am new to C++ and am in a class. I am trying to finish the first project and so far I have everything working correctly, however, I need the user to input a number to select their level, and would like to validate that it is a number, and that the number isn't too large.
while(levelChoose > 10 || isalpha(levelChoose))
{
cout << "...
hello,
is there is any good parser in c or c++ for extracting tags and links from html page ...
...
I have been reading about PDB files and how they have to do with debugging but why would I want to keep a pdb file after I ship? If there is a problem, I can just debug on my machine. What am I missing?
...
Is it legal to replace something like this:
namespace foo {
namespace bar {
baz();
}
}
with something like this:
namespace foo::bar {
baz();
}
?
...
I've created a C++ class (myPixmap) to encapsulate the work performed by the OpenGL GLUT toolkit. The display() member function of the class contains most of the code required to set up GLUT.
void myPixmap::display()
{
// open an OpenGL window if it hasn't already been opened
if (!openedWindow)
{
// command-line ar...
i need to create pdf creation server and i don't know what is the best tools to chose
java itext engine or c++ libharu , programming is not the problem c++ and java is the same to me .
but i need something that will be fast so c++ libharu is good but iText i know its more rebust and complete .
are those assumption true?
...
I develop unmanaged C++ applications in MSVC2008. And occasionally the application crashes at the customer site. I found an article on this. But it was written in 2002 for Visual Studio .NET. Has things changed since? Can the same technique be used? Is there a newer method?
...
Hi, I'm starting to write a library and considering its interface. Previous libraries I've written all use raw pointers (both internally and in its interface), and now I want to try the smart pointer library that comes with VS2010.
Should the interface use smart pointers? (Possibly forcing the library users to use smart pointers too?)
...
Given that I do something like this:
void glOrtho( GLdouble left,
GLdouble right,
GLdouble bottom,
GLdouble top,
GLdouble nearVal,
GLdouble farVal);
and the result is: http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xmlw could I achieve a matrix like this:
http://cairographics.org/manual...
Possible Duplicate:
Why doesn't C have unsigned floats?
The question is probably very basic and probably answered many time earlier, but I want to understand why C++ does not have unsigned floating point types, even though floating point literals can be signed or unsigned.
$3.9.1/8- "There are three floating
point types:...
void traverse(Node* root)
{
queue<Node*> q;
Node* temp_node= root;
while(temp_node)
{
cout<<temp_node->value<<endl;
if(temp_node->left)
q.push(temp_node->left);
if(temp_node->right)
q.push(temp_node->right);
if(!q.empty())
{
temp_node = q.fro...
The title says it all. But here a few points which concern me:
How do you maintain documentation
which will be released to customers?
What about docs which are for internals use?
How to document packages/classes/methods/APIs?
How to ensure maintainability? e.g. check-in criteria, code review checklist item, automation.
...
I have a template class with a template member function. I want to explicitly instantiate the class to avoid a drastic compilation slowdown. I am using g++ 4.1.2. I get ambiguous template specialization errors from the compiler. This the shortest code which will reproduce the problem:
template <class T, class S >
class Test
{
public:
...
Hi,
When I have a class containing static stuff, how can I free the memory at the end of the application the best way?
Foo.h
class GLUtesselator;
class Foo
{
private:
static GLUtesselator *tess;
public:
Foo();
virtual ~Foo();
}
Foo.cpp
#include "Foo.h"
#include <GL/glu.h>
GLUtesselator *Foo::tess = gluNewTess(); // S...
I need a library that can URLencode a string/char array.
Now, I can hex encode an ASCII array like here:
http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029
But I need something that works with Unicode.
Note: On Linux AND on Windows !
CURL has a quite nice:
char *encodedURL = curl_easy_escape(handle,WEBPAGE_URL, strlen(WEBPAGE...