Is there a way to create a Debug build of our Vs2005 (C++) project and exclude specific modules or code sections from being included into the debug information? Or is there an option to have VS generate multiple PDB files from a single project?
It looks like our generated PDB file is getting too large for Visual Studio to handle/genera...
According to John C. Mitchell - Concepts in programming languages,
[...] Java guarantees that a
constructor is called whenever an
object is created. [...]
This is pointed as a Java peculiarity which makes it different from C++ in its behaviour. So I must argue that C++ in some cases does not call any constructor for a class ev...
I have already written a program that sorts a 2D array in increasing values.
Here is my input and output.
Input:
Array2D[0][0] = 99
Array2D[0][1] = 10
Array2D[0][2] = 97
Array2D[0][3] = 10
Array2D[0][4] = 14
Array2D[1][0] = 73
Array2D[1][1] = 53
Array2D[1][2] = 81
Array2D[1][3] = 22
Array2D[1][4] = 88
Output:
Array2D[0][0]...
I am looking for resources to show me how I can consume web services inside native C++ . Are there any popular libraries I can use?
TIA
Andrew
...
Why does the following code generate a compile error?
Edit: My original code wasn't clear - I've split the code up into separate files...
First.h
class First
{
public:
static const char* TEST[];
public:
First();
};
First.cpp
const char* First::TEST[] = {"1234", "5678"};
First::First()
{
uint32_t len = sizeof(TES...
When implementing reference counting in objects the "release and possibly delete object" primitive is usually implemented like this:
void CObject::Release()
{
--referenceCount;
if( referenceCount == 0 ) {
delete this;
}
}
First of all, delete this looks scary. But since the member function returns immediately and do...
In this paragraph of C++ FAQ usage of delete this construct is discussed. 4 restrictions are listed.
Restrictions 1 to 3 look quite reasonable. But why is restriction 4 there that I "must not examine it, compare it with another pointer, compare it with NULL, print it, cast it, do anything with it"?
I mean this is yet another pointer. W...
I need GUI control for audio file presentation. The language is not very important but it should run on windows platform.
I should be able to :-
load the file
play the sound
put and move markers across the audio bar.
it would be nice if it can load itself from RTP wireshark captures (and not wav files).
An example may be seen in ...
Are there STL implementations that use operator new[] as an allocator? I was just wondering because on my compiler, making Foo::operator new[] private did not prevent me from creating a vector<Foo>... is that behavior guaranteed by anything?
...
Hi,
I have n amount of vectors, say 3, and they have n amount of elements (not necessarily the same amount). I need to choose x amount of combinations between them. Like choose 2 from vectors[n].
Example:
std::vector<int> v1(3), v2(5), v3(2);
There cannot be combinations from one vector itself, like v1[0] and v1[1]. How can I do this...
Requirement :
I must read until EOF (16 bytes a
time) from a particular file , and
then say sleep for 5 seconds. Now,
after 5 seconds, when I try to read
from the file (whose contents would
have been appended by that time), the
intended design must be in such a way
that it reads from the point where it
left previou...
What would you suggest as the fastest or best way to parse a fixed length message in c++ which has fields defined like
field = 'type', length = 2, type = 'alphanumeric'
field = 'length', length = 2, type = 'binary' (edit:length = 2 means 16 bit)
...
...
and so on
I read about making a struct and then using reinterpret_cast but im no...
I have been doing web development for the past 3 years, mainly in PHP and MySQL. Lately I have been changing into the C/C++ area. The reason is that I want to try out something new and expand my skillset before deciding which area I want to focus on.
I would like to get advice from you guys about this. Is this a good idea? Is it a bad i...
I am working with some legacy c++ code and I need to extend an interface. The current interfaces are for example:
[
object,
uuid(guid),
version(1.0),
dual,
nonextensible,
oleautomation
]
interface IInfo : ITask {
// Methods here
}
[
object,
uuid(guid),
version(1.0),
dual,
nonextensible,
oleautomation
]
interf...
Ive got a server that uses boost::asio which I wish to make multi-threaded.
The server can be broken down into several "areas", with the sockets starting in a connect area, then once connected to a client being moved to a authentication area (i.e. login or register) before then moving between various other parts of the server depedning ...
I'm trying to find the most efficient way to alpha blend in SDL. I don't feel like going back and rewriting rendering code to use OpenGL instead (which I've read is much more efficient with alpha blending), so I'm trying to figure out how I can get the most juice out of SDL's alpha blending.
I've read that I could benefit from using har...
!!!!solved!!! - VS2010 has a bug, works fine with eclipse Galileo
I am working on the 'driver' part of my programing assignment and i keep getting this absurd error - error C2065: 'cout' : undeclared identifier
I have even tried using the std::cout but i get another error that says: IntelliSense: namespace "std" has no member "cout...
I have a stream of PCM audio captured from a cell phone, and I want to play it.
I am trying to find a lightweight method of playing this audio in C++.
I can already slap on a wave header and create a file that plays in any media player, but I want to play the file in real time as it streams in. I would like to avoid writing the file to...
Why is returning a std::pair or boost::tuple so much less efficient than returning by reference? In real codes that I've tested, setting data by non-const reference rather than by std::pair in an inner kernel can speed up the code by 20%.
As an experiment, I looked at three simplest-case scenarios involving adding two (predefined) integ...
I do not want to learn an IDE or similar software which is only made for one platform only. I want to spend my time+energy in learning something which is a timeless-truth.
I want to switch to an editor-religion, which has no religion but of development and progress, it sees & treats all with equality.
Yes, please provide me some guide...