Hi
I'm trying to use c++ in cgi programs and everything is ok if i don't use mysql. Without mysql my site is generated in about 1-2 ms, but if I add only one variable or function from mysql++ library, site is generated in ~35 ms! (with php it's about 15 - 25 ms all time) I suppose it's a problem with dll loading ( there are two, and mys...
Is there any free tool that improves Intellisense and provides code snippet in vc++ 2008?
Please don't post commercial tools
...
I need to craft a packet that has a header, a trailer, and a variable length payload field. So far I have been using a vector for the payload so my struct is set up like this:
struct a_struct{
hdr a_hdr;
vector<unsigned int> a_vector;
tr a_tr;
};
When I try to access members of the vector I get a seg fault and a sizeof of an entir...
I have met an interesting problem while implementing the Observer pattern with C++ and STL. Consider this classic example:
class Observer {
public:
virtual void notify() = 0;
};
class Subject {
public:
void addObserver( Observer* );
void remObserver( Observer* );
private:
void notifyAll();
};
void Subject::notifyAll() {
...
I keep getting this warning from a third-party library (which I don't want to debug), so I'd really appreciate a way to suppress this specific warning. Google failed me, so here I am.
...
Hi,
I'got a C++ app (similar to this one) that downloads files using URLDownloadToFile method (defined in urlmon.dll).
Until IE8, it was possible to abort a download by returning E_ABORT in the progress callback.
On a system on which IE8 has been installed, doing so crashes the program, with an error report generated.
Do anyone know ...
I'm using a small C webserver. I'm doing some of the actual request processing with C# libraries.
I'm using a glue layer which appears to be written in something close to c++ to join the two worlds. It provides a 'public ref class' which I can derive from in the C# world.
If I want to derive several different classes from this in C#, h...
I need a tool which analyzes C++ sources and says what code isn't used. Size of sources is ~500mb
...
Callback* p = new Callback;
func(p);
If I want to delete the callback object, when and how to delete that?
If it gets deleted early, then the callback may be failed.
...
What are the performance implications of using exceptions in C++0x? How much is this compiler dependent? Should we expect to use exceptions more for general logic handling like in Java?
...
I'm unable to do a scenario from subject.
I have DirectX 9 March 2009 SDK installed, which is 9, "sub"-version c, but "sub-sub"-version is 41, so libs (d3dx9.lib d3d9.lib) are linking exports to dxd3d_41.dll.
What happens when I try to run my app on machine which has DX9.0c but not redistributable from march 2009 is now obvious :), it ...
Ok lets start off with info about myself.... that way there is no stone unturned.
I am a adult, 27 years old. so this isnt a joke or a passing fad. Im into computers, how they work and how apps and games are designed from the ground up and made.
I have ZERO programming back ground. I went to college for the wrong thing. I love ...
Does anybody have experience with custom styled, custom widgets in QT? (I am using Qt 4.5)
The problems looks like this:
I want to develop some custom controls that are not based entirely on existing drawing primitives and sub-controls. Since the entire application should be skinnable, I want to rely on custom styles, possible on style...
Hi
I am a relatively newbie in C++ and worked in the game industry for a few months. I am looking to get back to the industry and understand that one needs to be a very good C++ programmer (mainly bcos of how competitive it is to get into making games). I was wondering if there are really good websites online that would help with that. ...
This is a C++ class that I have made with n number of pointers.
class SomeClass
{
private:
int* ptr1;
int* ptr2;
...
int* ptrn;
private:
// constructors, destructors, and methods
};
During the initialization stage, I want to make all those pointers point to NULL (or make pointers point to NULL by default when...
I was reading another question pertaining the efficiency of two lines of code, and the (asker?, questioner?, querier?) said that he looked at the assembly behind the code and both lines were identical in assembly. Digression aside, how could I view the assembly code created when a program is compiled.
I'm using Microsoft's Visual C++, ...
I want to compare C++ class/structure objects. In C, most of the time, one knows exact size of the struct by adding up the sizes of individual fields (assuming that compiler does not add padding). Hence one can use memcmp() function on two object to compare them very fast. I am not sure if the same works for C++. This is because a class ...
Using Code::Blocks w/ mingw, and trying to use GLee for some OpenGL on windows. I'm getting the following build errors:
GLee.c|60|undefined reference to `_wglGetProcAddress@4'
GLee.c|10748|undefined reference to `_wglGetProcAddress@4'
GLee.c|10751|undefined reference to `_wglGetCurrentDC@0'
GLee.c|10797|undefined reference to `_glGetStr...
I want to call a C# component from an unmanaged c++ service. I need to set config items expected by the C# component. What name should be config be and where should it be located.
eg.
parentfolder\cplusplusservice.exe
anotherfolder\csharp.dll
i need csharp.dll.config or its equivalent.
Thanks,
...
I have heard of Boost and ACE as two of the well known C++ libraries. What are the other good C/C++ libraries available?
Does Boost and ACE support session management for web applications written in C/C++?
EDIT: Ok I will try to be domain specific. I am looking for a C/C++ library which could help me maintain session state for a C++ b...