Say, I'd like to have a tool (or script?) taking project (or .h file) and building searchable tree of "includes" included into it (of included into of included into and so so on). Is there exist something like this? Should I write this by myself [of course I am :), but may be somebody had it already written or may be has an idea how to g...
I had this dicussion with my colleague today about using Boost in our new C++ project. He did not agreed to use Boost as he thinks that Boost is huge and another point he added was that Why did Chrome team chose to not to use Boost? I am not sure what to answer ... His whole point is none of the modern day C++ projects make use of Boost ...
Hello all
does any one had success with gmail smtp servers ? smtp.gmail.com
to send emails from c++ code ?
i know its using secure layer but i have no idea how to implement such one .
...
Hi
I wanna send an unsigned char * over the Socket whereas the RSockt.Send has the following signature:
IMPORT_C void Send(const TDesC8 &aDesc, TUint someFlags, TRequestStatus &aStatus);
I tried to do it the following way but that gives me an error message:
Socket.Send( TPtrC8 ptr((TUint8*)charvariable), 0, iStatus);
Error #254: Ty...
Has anyone tried to use the autozone garbage collector from Apple? Or can you point to a good and configurable one usable with C++?
edit: I work on decision diagrams (like BDD), so I would like to test if managing the memory with a garbage collector is efficient in this case.
edit 2: To be more precise, when implementing a library for ...
I have class B with a set of constructors and an assignment operator.
class B
{
public:
B();
B(const string & s);
B(const B & b){(*this) = b;};
B & operator= (const B & b);
private:
virtual void foo();
// and other private member variables and functions
}
I want to create an inheriting class D that will just override the...
I would like to create a singleton class that is instantiated once in each thread where it is used. I would like to store the instance pointers in TLS slots. I have come up with the following solution but I am not sure whether there are any special considerations with multithreaded access to the singelton factory when thread local storag...
Hi,
I'm trying to add some help to my GUI developed in VC++ 2008. I want to compile a chm file, or a hlp file that can be accessed from my menu. Anyone can give me any idea about how to do this?
Thanks a lot
...
We use g++ 4.2.4 and I'm trying to track down some performance problems in my code.
I'm running gprof to generate the profile, and I'm getting the following "strangeness" in that the most expensive function is __tcf_0:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds sec...
Anyone knows c++ code coverage tool usable under the following conditions:
Target platform is PowerPC CPU inside Nintendo WII dev.kit, that runs custom embedded OS. The only way to exchange data with the PC is to use custom proprietary API (sorry for my NDA).
Compiler is not Microsoft, not GCC, not even command line. Namely it's Metrow...
My teammate and I have an argument,
Is there a reason not to use the latest version of a library if we haven't coded anything at all yet?
Right now we are talking about boost. We use a framework that uses some of boost's libraries.
There is no API or ABI breakage, boost is mostly production stable.
So why not use the latest version of bo...
We've pretty much moved over to using boost::shared_ptr in all of our code, however we still have some isolated cases where we use std::auto_ptr, including singleton classes:
template < typename TYPE >
class SharedSingleton
{
public:
static TYPE& Instance()
{
if (_ptrInstance.get() == NULL)
_ptrInstance.rese...
I've done a decent search, but can't seem to find a way to get Visual Studio 2008 to use a unix Makefile, or even to create some MSVC compatible equivalent from the Makefile. Does anyone have ideas or similar issues?
Note: I already know the benefits/drawbacks of using Makefiles or not, and I don't want to hear your opinion. All I'm int...
I am creating a C++ program that will read a .docx's plain text. My plan of attack is to rename the .docx as a .zip and then unzip. I then will rename the .xml file containing the text of the document as a .txt and parse it out.
Right now I have figured out the renaming which was easy enough. I am now struggling with unzipping. I am...
Hello,
I want to use a different STL with g++ instead of its default libstdc++. What is the easiest way to do this?
I found -nostdinc++ flag which inhibits g++ from looking for its STL headers but this is only a compile time thing. It will still make g++ link against its own STL.
So I need to find a way to inhibit the linking.
Thanks...
I'm using Visual C++ 2008 SP1. I have an app that is compiled in debug mode, but links against a library in release mode.
I'm getting a crash at the start-up of the application. To make the problem smaller, I created a simple solution with 2 projects:
lib_release (generates a .lib, in release mode)
exec_using_lib_release (genereates a...
After taking a very hard C++ aptitude test for a blue chip company, I received a rejection email the day after. I actually thought I was a very good C++ programmer, since I have had 8 years previous experience with other languages, and about 2 years academic experience in C++ with a university software engineering course. So, the test re...
I have a header file with some inline template methods. I added a class declaration to it (just a couple of static methods...it's more of a namespace than a class), and I started getting this compilation error, in a file that uses that new class.
There are several other files that include the same .h file that still compile without com...
In AVID Composer program in import settings it is possible to customise Colour Levels by installation of options RGB (0-255) or 601 (16-235).
How I can call this dialog to configure import settings using quicktime?
...
(c++ class issue)
This is really getting me down,when ever the following class deletes its member pointer (to class player) in it's destructor I get a 'Heap corruption after normal block' error.
//Team.h
class Team
{
public:
Team (const char* team_dir_path);
~Team(void);
Team (const Team &team);
Player* player;
in...