Hi to all,
for start i would like to say that i am newbie.
i am trying to initialized boost:multi_array inside my class. I know how to create a boost:multi_array:
boost::multi_array<int,1> foo ( boost::extents[1000] );
but as part of a class i have problems:
class Influx {
public:
Influx ( uint32_t num_elements );
bo...
I've been using the Boost libraries, and in Boost.Exception, I've noticed code like the following:
#define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x)
Just out of curiosity: what is the purpose of the leading "::" before "boost::throw_exception(x)"?
...
In C++ (gcc,VS) is NULL considered the same as False. Or more importantly if in a logical statement what does NULL evaluate to. There were a number of other questions but none for C++ specifically.
For some reason looping with a NULL control for(;;) just freezes up the program indicating that there is something other than a NULL placed...
Is there any way to pass Ruby objects to a C++ application ? I have never done that kind of thing before and was wondering if that would be possible. Would it require to modify the Ruby core code ?
...
I've got a wrapper around a std::deque that I'm using to queue up audio data (coming in blocks via libavcodec, if that matters).
This is the function that takes a buffer of 16-bit data and adds it to the deque
void AVAudioBuffer::enqueue(int16_t* src, size_t num, double pts) {
// Save current size of buffer
size_t size = data_buffe...
Hi
I tried to play a audio file in Qt 4.4 in windows XP using phonon classes (MediaObject,MediaSource,AudioOutput). The code gets compiled and ran but the audio file is not playing. I enabled the phonon support and setup the backend as well. Someone can please help me with this. i attached my code also for reference. Also i dont want to...
Hi there,
I have experience programming in C#, but I'm taking a C++ class this semester, and I'm writing my second project, but I keep getting this error when I try to build a debug configuration of my program.
My build log is below, any ideas on what's going on? I'm at a loss.
Thanks everyone!
1>------ Rebuild All started: Project: ...
I am looking forward to build an application that relies heavily on geographic data.
The application will use HTML5's ability to get GPS data and will do computations such as finding the nearest street, finding the shortest path between 2 points, etc. I was thinking of using a platform such as Google Maps, so it will most likely be writ...
I have a library written in C and I have 2 applications written in C++ and C. This library is a communication library, so one of the API calls looks like this:
int source_send( source_t* source, const char* data );
In the C app the code does something like this:
source_t* source = source_create();
for( int i = 0; i < count; ++i )
...
I'm wondering if there are any simple ways to link boost libraries (all or individual) via some entry like....
-lSDL_ttf
The above links SDL's True Type Font library. Can this be done with boost? If so, I'm not sure what file I'm linking for to link. I'm currently using boost_1_40_0.
If this isn't possible, or there are better ways t...
I have
class Foo {
....
}
Is there a way for Foo to be able to separate out:
function blah() {
Foo foo; // on the stack
}
and
function blah() {
Foo foo* = new Foo(); // on the heap
}
I want Foo to be able to do different things depending on whether it's allocated on the Stack or the Heap.
Edit:
Alof of people have asked m...
Is there any reference or library that would create a webserver (help)? (in C++)
...
Is there a neither, nor syntax?
I have found it by reading your post and it's if(!){ //do code }.
http://bcsy.hostzi.com
...
What are the steps to implement that feature in 1) Windows and 2) in Mac? I went through these, still I am not very clear! I am using C/C++ in Windows and in Mac. So, Win API or Mac API will be enough.
I am also confused because Mac Firefox has also has a option "Use system proxy settings", which is not present in Windows Firefox.
Thes...
I'm tired of copy pasting the header into my cpp file then hacking at it until its in the correct form. Has anyone made a program to read a header file and make a corresponding cpp skeleton?
Who else wishes D was older and more stable? We should strike C++ from the records!!!!
Example
class A
{
public:
int DoSomething( int...
having a file containing these statements:
public:
boost::shared_ptr<TBFControl::TbfCmdHandler> _tbfCmdHandlerPtr;
// will be private later...
boost::shared_ptr<TBFControl::TbfCmdHandler> getTBFCmdHandler()
{ return _tbfCmdHandlerPtr; }
I can use it this way:
boost::shared_ptr<TBFControl::TbfCmdHandler>myTbfCmdHandlerPtr(
this->...
In WinCrypt.h I see:
#define CERT_CHAIN_POLICY_SSL ((LPCSTR) 4)
WINCRYPT32API BOOL WINAPI CertVerifyCertificateChainPolicy(
IN LPCSTR pszPolicyOID,
IN PCCERT_CHAIN_CONTEXT pChainContext,
IN PCERT_CHAIN_POLICY_PARA pPolicyPara,
IN OUT PCERT_CHAIN_POLICY_STATUS pPolicyStatus
);
The first argument takes CERT_CHAIN_...
Hi All.
I'm using windows XP , hebrew version.
I am trying to save an AVI file using the Video For Windows API in C++, when I run the AviSaveOptions() function, the dialog opens as a thin unclickable strip at the corner of the screen.
Would it have anything to do with the language (Hebrew)? maybe with the vfw driver itself? what might ca...
I wish to give an effect to images, where the resultant image would appear as if it is painted on a rough cemented background, and the cemented background customizes itself near the edges to highlight them... Please help me in writing an algorithm to generate such an effect.
The first image is the original image
and the second image i...
I've got a function that takes a pointer to a buffer, and the size of that buffer (via a pointer). If the buffer's not big enough, it returns an error value and sets the required length in the out-param:
// FillBuffer is defined in another compilation unit (OBJ file).
// Whole program optimization is off.
int FillBuffer(__int_bcount_opt...