c++

Recommendation for a HTTP parsing library in C/C++

Hi, I am looking for HTTP parsing library for C/C++. I have looked curl library, but it seems it is a http client library. I am looking for a library which parses HTTP header (e.g. a way to get the query string, get cookie, get request url, get Post Data)? Thank you. ...

How to use SAPI's SetNotifyCallbackFunction() in a CLR project with Windows Form as the interface window?

Hi, I'm trying to write a dll plugin for Winamp. I'm using Microsoft Visual Studio 2008 and Microsoft SAPI 5.1. I created the interface window using Windows Form (System::Windows::Forms::Form). I tried to use SetNotifyWIndowMessage(), but the method is never called when I speak to the microphone. So I tried using SetNotifyCallbackFunct...

RELAX NG C++ Code Generator?

Are there any open source RELAX NG C++ code generator? Thanks. ...

Warning: System.Web.dll built without parts that depend on: System.Web.Services.dll Mono.Web.dll

I am building mono (2.6.3) on Ubuntu 9.10 I am getting the following error: Warning: System.Web.dll built without parts that depend on: System.Web.Services.dll Mono.Web.dll Does anyone know what is causing this, and how I may resolve this? ...

Is there a c++ library that provides functionality to execute an external program and read its output?

Basically, I'm looking for something that will allow me to replicate the following Perl code: my $fh = new FileHandle; $fh->open("foo |"); while (<$fh>) { # Do something with this line of data. } This is in the context of Linux, so a library that is specific to Windows will not help. I know how to write a program that does fork/e...

Qt Graphics Scene mouse event propagation

hello i'm learning qt and i'm doing the folowing to add some widgets to a graphics scene void MainWindow::addWidgets(QList<QWidget *> &list, int code) { if(code == CODE_INFO) { QWidget *layoutWidget = new QWidget(); QVBoxLayout *layout = new QVBoxLayout(); foreach(QWidget *w, list) { ...

using 9 function of 21h interrupt in c++

function 09h interrupts 21h dx = offset of the text , ds = segment of the text how can i obtain segment and offset in c++? ...

Introduction to c# for c/c++ users

I have 6+ years of c/c++ experience. Tomorrow starts a university assignment where I will have to use c#. Therefor I would like to have a list of links which you think important, an extensive tutorial - in short everything you think worthy. codingstyle, best practices, ... (I don't know any specifics about the c# environment I will be ...

Run function on running application on execute

Alright so what I am trying to do is essentially create a program that, when it is already executed, can be "executed" again, detect the already existing process and instead of creating another process, execute a function in the existing process. Any ideas? It's possible I am going at this all wrong. I am trying to adapt this open-sour...

C++ thread to separate process

Is there any way I can have a thread branch off into its own independent process? I know there's the CreateProcess function but as far as I can tell, you can only run external applications with it. Is what I'm asking for at all possible? ...

C++ compilers and back/front ends

Hello. for my own education I am curious what compilers use which C++ front-end and backend. Can you enlighten me where the following technologies are used and what hallmarks/advantages they have if any? Open64 - is it backend, front-end, or both? Which compilers use it? I encounter it in cuda compiler. EDG - as far as I can tell thi...

C++ Report alternatives ?

I came across this recommendation for reading the C++ report magazine. However, when I searched for it, i realized it has become defunct. Can someone please recommend me some other magazine / rss etc which is of the same genre ? I look forward to read more about some of the elusive and other C++ techniques that veterans are using in the...

Problems Expanding an Array in C++

I'm writing a simulation for class, and part of it involves the reproduction of organisms. My organisms are kept in an array, and I need to increase the size of the array when they reproduce. Because I have multiple classes for multiple organisms, I used a template: template <class orgType> void expandarray(orgType* oldarray, int& numit...

error: expected constructor, destructor, or type conversion before '(' token

include/TestBullet.h:12: error: expected constructor, destructor, or type conver sion before '(' token I hate C++ error messages... lol ^^ Basically, I'm following what was written in this post to try to create a factory class for bullets so they can be instantiated from a string, which will be parsed from an xml file, because I don't...

C++ Class Construction and Member Initialization

The first print shows the member value to be false, and the other two prints show it as true. Why does the first output differ from the last two? #include <vector> #include <iostream> using namespace std; class MyClass { public: bool value; bool stuff; }; class Container { public: vector<MyClass> my_classes; Container() { ...

C++ domain specific embedded language operators

hi. In numerical oriented languages (Matlab, Fortran) range operator and semantics is very handy when working with multidimensional data. For example: A(i:j,k,:n) // represents two-dimensional slice B(i:j,0:n) of A at index k unfortunately C++ does not have range operator (:). of course it can be emulated using range/slice functor, b...

Best way to get ints from a string with whitespace?

Hey all, I know this is simple, I just can't recall the best way to do this. I have an input like " 5 15 " that defines the x and y of a 2D vector array. I simply need those two numbers into int col and int row. What's the best way to do this? I was attemping stringstreams, but can't figure out the correct code. Thanks for any help! ...

Binary Search Tree Implementation

I've searched the forum, and tried to implement the code in the threads I found. But I've been working on this real simple program since about 10am, and can't solve the seg. faults for the life of me. Any ideas on what I'm doing wrong would be greatly appreciated. BST.h (All the implementation problems should be in here, and this has ...

Access Violation When Writing Dynamic 2D Array... Sometimes

This program is meant to generate a dynamic array, however it gives an access violation error when writing when given certain dimensions. Eg: R = 6, C = 5 crashes, but then R = 5, C = 6 doesn't. In case your wondering, it isn't my homework to "fix" this broken program, this is the method we were taught in class. Also part of my assessmen...

Output iterator's value_type

The STL commonly defines an output iterator like so: template<class Cont> class insert_iterator : public iterator<output_iterator_tag,void,void,void,void> { // ... Why do output iterators define value_type as void? It would be useful for an algorithm to know what type of value it is supposed to output. For example, a function tha...