Hi, I wish to use "C" legacy project in the Eclipse. In the project it require "autoreconf
-vi" followed by "./configure" before make to start. My problem is I am not able to do "autoreconf -vi" and "./configure" from the eclipse.
Thanks
Arpit
...
does anyone have a simple example on how to use the bonjour sdk with a windows visual c++ form application or a general gui application? as far as i know apple provides examples only for c sharp, java and vb
thanks a lot for any help
...
I'm building a bunch of windows libraries (mostly simple wrappers to compine features from API and third party libraries) to be consumed later by set of applications which have very similar requirements.
Most of libraries are depending from another library and all of them are depending from one common library. This common library contai...
Hello!
Does Qt has something like QSettings, but for local scopes?
I am seeking for a data structure with the same methods, but not specific for APPLICATION.
I mean, I want to construct local (for example, exporting settings) settings from file (xml, for example) and use them in local scope - without polluting global application s...
For example printf instead of cout, scanf instead of cin, using #define macros, etc?
...
How to configure mingw32 to cross-compile Direct3D Apps for Windows? Is there any possibility? I have actually succeeded compiling code from this tutorial: http://www.directxtutorial.com/Tutorial9/B-Direct3DBasics/dx9B4.aspx - using Code::Blocks on Kubuntu with i586-mingw32msvc-g++. I needed to add #define UNICODE and remove the #pragma ...
On 32 bit System.
std::vector<char>::max_size() returns 232-1, size of char 1 byte
std::vector<int>::max_size() returns 230-1, size of int 4 byte
std::vector<double>::max_size() returns 229-1, size of double 8 byte
can anyone tell me max_size() depends on what?
and what will be the return value of max_size() if it runs on 64 bit ...
Hi,
I'm designing a Buffer class whose purpose is to represent a chunk of memory.
My underlying buffer is a char* (well, a boost::shared_array<char> actually, but it doesn't really matter).
I'm stuck at deciding what prototype to choose for my constructor:
Should I go with:
Buffer(const void* buf, size_t buflen);
Or with:
Buffer(...
Hello,
we have one main application, which executes up to 5 different exes. These exes run independently and communicate with each other via UDP. Changing this architecture is not planned at the moment.
We want to migrate this whole thing from VS6 to VS2008.
I'm thinking about adding unit tests to make sure that after migration everyth...
For instance I have code like that
class Base1
{
virtual void wonderFULL() = 0;
};
class Base2
{
// all this weird members
};
class Derived : public Base1, public Base2
{
// not so weird members
};
int main()
{
Derived Wonder;
magicFunction(&Wonder);
return 0;
}
void magicFunction(Base2 *ptr)
{
if (Base1 *b1 = dynamic_...
Is there any C++ Library api available which converts Unix timestamp to XML datatype datetime
eg :
http://books.xmlschemata.org/relaxng/ch19-77049.html
I am looking to convert into pattern : 2001-10-26T19:32:52+00:00
I also have access to mysql, so I can get hold of :
mysql> select now();
+---------------------+
| now() ...
I've got a homework assignment in my C++ programming class to write a function that outputs the binary value of a variable's value.
So for example, if I set a value of "a" to a char I should get the binary value of "a" output.
My C++ professor isn't the greatest in the whole world and I'm having trouble getting my code to work using th...
Any different between C and C++??
...
If you have to pass objects across threads which smart pointer type is best to use?
Assuming the object being passed is thread safe.
...
Hi,
I am trying to get started with an existing open source project (QuantLib) using Linux operating system. However it seems that most developers use Visual Studio (judging from the project files committed with the source).
Which Linux C++ IDE would be most compatible with VS project files? Is there a way to import/export them, so th...
I'm declaring a map of string to a pair of pairs as follow:
std::map<std::wstring,
std::pair<std::pair<long, long>,
std::pair<long, long>>> reference;
And I initialize it as:
reference.insert(L"First",
std::pair<std::pair<long, long>,
std::pair<long, long>>(s...
My objective is to do a deep copy of a class, but a virtual class is causing trouble.
#include<iostream>
using namespace std;
class Vir//pure virtual class
{
public:
virtual void hi()=0;
};
class Handler:public Vir
{
public:
int i;
Handler() {}
Handler(int val):i(val) {}
void hi() {cout<<"Value of i="<<i<<e...
I have a QGraphics scene its Rect is 0,0,2000,800
I want to get print out in A4 all this scene. How can I do it?
( I try it but it is unreadable. I want to get print out readably )
I use this codes
ui.graphicsView->setRect(0,0,2700,800);
QPainter painter(&printer);
ui.graphicsView->render (&painter,scene->sceneRect());
I cant show...
I've two files of 1 GB each containing only numbers in sorted order. Now I know how to read the contents of the files and sort them using merge sort algorithm and output it into an another file but what I'm interested is to how to do this only using 100MB buffer size (I do not worry about the scratch space). For example one way is to rea...
My Code:
std::ofstream m_myfile,
m_myfile.open ("zLog.txt");
m_myfile << "Writing this to a file " << " and this " << endl;
when this C++ Program runs, I have another program that needs to read this file. The problem is that the file is locked by C++ and I cannot read it from the other program. I know there is something I have to d...