The default naming convention for the Boost C++ libraries is:
libboost_regex-vc71-mt-d-1_34.lib
where all libraries are built into the same directory. I'd like to modify the build process so that the filename does not contain the target architecture or build type (versions are okay). I want the file to end up in a different directory d...
Most opinions on Stack Overflow seem to voice a similar opinion: C++ is "harder" to use and it is a "bad" choice for a beginner. Speaking as someone who has been learning C++ as a first language, on my own time as a hobby, for a few months, it doesn't seem all that hard. Admittedly, the first time I took a look at pointers and their rela...
I recently wrote a node-based stack class, per instructions (specs in the comments before the code, taken from the forum post). I was told to post it here for review by one of the friendlier members of the SO community, so here it is. For simplicity's sake: I put the definitions with the implementation. I understand when to use header fi...
There is tree of classes rooted at CBase (single-inheritance).
CSub is derived from CBase, and other classes derived from CBase or CSub,
and CBase having virtual member functions.
All classes must be assignable. Some classes have members (pointers) that
need special treatment in assignment (pointers).
How do I ensure assignability ...
i am passing HBuf to function
but it crashes i don't know whether i am following right way or not
//case 1:
HBufC8* iBuffer2 = HBufC8::NewL(1000 );
TPtr8 bufferPtr( iBuffer2->Des() );
//assigning value to HBuf code
StartParsingL(iBuffer2);
StartParsingL(HBufC8* aHBufPtr)
{
iBuffer = HBufC8::NewL(aHBufPtr->Length());//it crash...
I have a structure called vertex and I created some pointers to them. What I want to do is add those pointers to a list. My code below, when it tries to insert the pointer into the list, creates a segmentation fault. Can someone please explain what is going on?
#include <iostream>
#include <list>
#define NUM_VERTICES 8
using namesp...
After over a decade of C/C++ coding, I've noticed the following pattern - very good programmers tend to have detailed knowledge of the innards of the compiler.
I'm a reasonably good programmer, and I have an ad-hoc collection of compiler "superstitions", so I'd like to reboot my knowledge and start from the basics.
Can anyone recommen...
From this site which seems to have the most detailed information about catmull-rom splines: http://www.mvps.org/directx/articles/catmull/ it makes mention of needing four points to create the spline. However it does not mention how the points p0 and p3 affect the values between p1 and p2.
Another question I have is how would you create ...
Hi,
I wrote an application which allows people to contribute plugins to extend the functionality. Such plugins are deployed as DLL files, which the framework picks up during runtime. Each plugin features a factory function which is called multiple times during the lifetime of the application to create objects. So far, in order to handle...
Hi!
I need some help understanding a peculiar issue I'm having when using asio.
I've a client -server app, with a c++ client(using boost asio) sending 2 byte hearbeat (say, every second) to a server(written in java) (and receiving lots of data as well).
for a quite a few minutes the server correctly receives the 2 byte HeartBeat...
Which C++ cross-platform GUI toolkit gives smallest footprint with both static and dynamic builds? I don't need a very sophisticated GUI, just basic controls & widgets. Thank you in advance.
...
Hai
I am developing programs in c++ on linux platform (g++ compiler) . Where in one point I want my output character to blink on the terminal. How can I do it?
Thank you in advance
...
Hi,
I'm putting together a presentation to show some of the productivity gains that I think C# may offer over C++. I've written some code in C# which I'd like to convert to C++. I don't have the time or up to date C++ to do the conversion justice, hence posting here.
Code to convert:
using System.Collections.Generic;
using System.Dr...
Hi all,
Is there a way to directly read a binary file into RAM?
What I mean is, is there a way to tell the compiler, here's the file, here's the block of RAM, please put the file contents in the RAM, off you go, quickly as you can please.
Currently I'm stepping through the file with ifstream loading it into RAM (an array) 64bit block ...
Is it possible at all to control the creation of different classes from configurations?
Say, I have a function which does this which is hard-coded:
BaseClass* getClassObject(int type)
{
switch (type)
{
case 1:
return new DerivedClass1();
case 2:
return new DerivedClass2();
default:
return 0;
...
I am a vc++ developer but I spend most of my time learning c++.What are all the things I should know as a vc developer.
...
I write a small database project for handling payroll records. These payroll records will be put into a tableview object for viewing. How can I search a particular record in a TableView ? Any idea, please help me.
...
I am having problem with the contents of a pointer passed as the wParam from a 32-bit C# application is changing along the way to a 64-bit C++ process.
There are two processes 32.exe (in C#) and 64.exe (in C++). 64.exe is started as a child process of 32.exe. 32.exe post window message for 64.exe, one of which has a wParam that is a poi...
Used the New Add-in Wizard to create a Visual C++ / ATL add-in project.
Generated code:
HRESULT hr = S_OK;
pApplication->QueryInterface(__uuidof(DTE2), (LPVOID*)&m_pDTE);
pAddInInst->QueryInterface(__uuidof(AddIn), (LPVOID*)&m_pAddInInstance);`
Get the Events object, and the WindowEvents:
m_pDTE->get_Events(&m_pEvents);
m...
We have here a pretty big application that is taking a lot of time to compile and I am looking for a way to reduce this compile time. I thought a good way to do this would be to reduce the dependency between the include files. Do you know any good dependency/Includes manager that would be pretty cheap? Something that would draw me a good...