Hello
In my work, I'm developing a Viewer client for a Offshore simulation server, using sockets to send the simulation data from the Simulator to de Viewer.
But, the server uses Boost.asio as it's sockets library. As the client uses Qt for it's GUI, I was wondering if there is any problem in using de Qt Networking library for handling...
Please do not mark it as a dupe of this question just yet:
http://stackoverflow.com/questions/1881865/bold-labels-in-mfc
That question does not help me; for some reason I do not see the rich edit control. Instead I believe I have to do it in code. here is a sample I found:
http://www.tech-archive.net/Archive/VC/microsoft.public.vc.mfc...
I've just started developing a small C++ program using GraphViz's graph library and noticed there are actually three different API's: libgraph, libcgraph and libagraph. WTF?
I would like to know what is the difference between them, which one to use and where to look for API documentation. I have looked at the GraphViz documentation and ...
Hi
I'm developping an application under windows, and i'm using fstreams to read and write to the file.
I'm writing with fstream opened like this :
fs.open(this->filename.c_str(), std::ios::in|std::ios::out|std::ios::binary);
and writing with this command
fs.write(reinterpret_cast<char*>(&e.element), sizeof(T));
closing the file a...
Is it possible for the sizeof operator to ever return 0 (zero) in C or C++? If it is possible, is it correct from a standards point of view?
...
I have a couple of base/interface classes each of which has several derived classes. I have a need to store metadata on each derived class that has a lot of overlap, but different values.
I also have a Factory class for creating instances of the derived classes that's implemented as a singleton and has a few macros. For example, you'd:
...
Hi Guys,
Im trying to run a function that will never end (until the program is killed)
How would i start such a function and be able to continue on past that function, because at the moment the program will not run past the never ending function.
Regards
Paul
...
I have made a string vector
vector<string> actor_;
and then added elements in it using push_back.
I now want to display all of them, for which I need to run a loop according to the number of elements in the vector. For that, I need to run the following loop:
for (int i = 0; i < (int)actor_.size; i++)
{
}
but this returns the follo...
Hi
I need to use openid in a c++ website and can't find a working library to work with.
I am trying to use this one
http://kin.klever.net/libopkele/requirements
but it stops the configure with this message:
checking for OPENSSL... configure: error: no openssl library found. get one from http://www.openssl.org/
but my debian has open...
I always see people mention that "Python binding" and "C Sharp binding" etc. when I am actually using their C++ libraries. What does binding mean? If the library is written in C, and does Python binding means that they use SWIG kind of tool to mock a Python interface?
Newbie in this field, and any suggestion will be welcomed.
...
std::map find/end both provides const_iterator and iterator, e.g.
iterator end ();
const_iterator end () const
Out of curiosity,if I have a std::map , which will be called/compared here, an iterator or a const_iterator ? :
if(m.find(key) != m.end()) {
...
}
And should I care ?
...
Possible Duplicate:
Should C++ eliminate header files?
In languages like C# and Java there is no need to declare (for example) a class before using it. If I understand it correctly this is because the compiler does two passes on the code. In the first it just "collects the information available" and in the second one it check...
I just downloaded MSVS 2010 from university MSDN AA. The IDE itself is wonderful, I can't complain, but...
I'm developing project that combines C#, C++/CLI and C++ (native core, cli bridge DLL and c# GUI). But the VS 2010 seems NOT TO support targeting .NET for C++/CLI projects unless VS 2008 is installed. Requiring both VS 2010 and 20...
A z buffer is just a 3d array that shows what object should be written in front of another object. each element in the array represents a pixel that holds a value from 0.0 to 1.0. My question is if that is all a z buffer does, then why are some buffers 24bit, 32bit, and 16 bit ??
...
XulRunner/Gecko seems to be really interesting for developing GUI-intensive applications (by using widely used technologies such as HTML / CSS / SVG / XUL / Javascript). But the underlaying C++ APIS (XPCOM, NECKO, ...) looks so old and complex. Moreover the general lack of documentation/developper tools is really frightening.
On the oth...
Given a list of URLs, such as a/b/e/f, b/c/d/k/g, s/e/c/d, how to match an input URL to the one in the list, for example, an input c/d should be matched to s/e/c/d, not b/c/d/k/g
...
Hello,
I'm sure I'm just doing something stupid here, but I can't quite figure out what it is. When I try to run this code:
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(int argc, char *argv[])
{
string s("hello");
istringstream input(s, istringstream::in);
string s2;
input >> s2;
cou...
#include <iostream>
#include <assert.h>
using namespace std;
struct Base
{
Base() : m_member1(1) {}
Base(const Base & other)
{
assert(this != &other); // this should trigger
m_member1 = other.m_member1;
}
int m_member1;
};
struct Derived
{
Derived(Base & base) : m_base(m_base) {} // m_base(base)
Base & m_...
I am not asking an unexpected exception, but an exception that is not captured.
Crashed? Or terminated?
...
Does anyone know any more details about google's web-crawler (aka GoogleBot)? I was curious about what it was written in (I've made a few crawlers myself and am about to make another) and if it parses images and such. I'm assuming it does somewhere along the line, b/c the images in images.google.com are all resized. It also wouldn't s...