Hi,
I'm trying to create a Windows-compatible icon using a pixel buffer. The Surface class loads an image and saves it as an unsigned int array internally (0xRRGGBB).
I'm trying to create an icon like so:
Surface m_Test("Data/Interface/CursorTest.png");
HICON result = CreateIconFromResourceEx( (PBYTE)m_Test.GetBuffer(),
...
Hello
Is there something like "The New C Standard.An Economic and Cultural Commentary" (http://www.knosof.co.uk/cbook/cbook.html) - line-by-line commentary of the standard for C++ (ISO IEC 14882-1998)?
I want to deeply learn some extremal examples of C++ and their standard-compliance
...
I am trying to download a zip file from a website but running into a few issues.
http://ampaste.net/m1632f19a
I implemented libcurl, followed some examples on downloading a file, used a big zip file so I could watch the progress %. It takes about 20 seconds to download, when it completes I go look and there is no file.
Anyone have any...
Things to take into consideration:
- easy to use
- fast
- use underlying OS as much as feasable (like wxWidgets for UI)
Ones I am leaning towards are wxWidgets for UI and Boost for networking - how do they compare to others?
...
Is it possible to document preprocessor defines in Doxygen? I expected to be able to do it just like a variable or function, however the Doxygen output appears to have "lost" the documentation for the define, and does not contain the define its self either.
I tried the following
/**My Preprocessor Macro.*/
#define TEST_DEFINE(x) (x*x)
...
I want to a create dialog box like window before displaying the console window. I haven't actually tried anything yet but was just wondering if it can be displayed as a start-up window.
...
I have a shared library that is linked with another (third-party) shared library. My shared library is then loaded using dlopen in my application. All this works fine (assuming files are in the proper path etc).
Now, the problem is that I don't even need to specify to link against the third-party shared library when I link my library. G...
can we use NVDA technology to our java web application and how that integration can be done.
...
Where can I find an overview of type conversion, e.g. string to integer, etc.?
Because of the comments so far, I'll clarify: I'm looking for a list /table that says:
To convert a string to an int, use: ... And same for other data types (where possible): double to int, char to string, ...
...
Hello,
Is there any way to uniquely identify controls using Accessibility? Once control is identified - I should be able to get its current position on screen (rectangle).
Tried to do this with IAccIdentity, but don't know what to do with that string of bytes which it returns - is there any way I can extract necessary information from i...
I have existing C++ lib containing many different classes working together. Some example usage should include something like passing an instance of one class to constructor/method of another class.
I am planning to provide a C# binding for these C++ classes using C++/CLI therefore I don't have to port the whole C++ code.
I can already...
I successfully compiled some UDFs on 64-bit Linux that were originally compiled on AIX
Linux is running IBM DB2 v9.5
Here's the function that sometimes returns for some values
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include "cbudf.hpp"
using namespace std;
extern "C"
void SQL_API_FN cbzdt(SQLUDF_VARCHAR_FBD *pArg,...
I've done enough Googling to know that if I have something
like
class SubObject {
public:
//blah blah blah
};
class Aggregate {
public:
boost::shared_ptr<SubObject> m_ptr;
};
I can get Doxygen to create the "correct" collaboration diagram
if I have a dummy declaration like
namespace boost { template<class T> class shared_ptr {...
I'm using shared_ptr and STL extensively in a project, and this is leading to over-long, error-prone types like shared_ptr< vector< shared_ptr<const Foo> > > (I'm an ObjC programmer by preference, where long names are the norm, and still this is way too much.) It would be much clearer, I believe, to consistently call this FooListPtr and ...
Just because I've never read binary files before I wrote a program that reads binary STL files. I use ifstreams read member that takes a char* a parameter. To cast my struct to a char* I use a reinterpret_cast. But as far as I remember every book about C++ I read said something like "don't use reinterpret_cast except you have to". What w...
I have a Qt application that uses a QMainWindow-derived class for the main UI. On startup I want to make some security checks and, if they fail, display a message to the user and close the main window. Currently I make these checks in the QMainWindow constructor, but if I call the close method, nothing happens and the application conti...
I know that there is no way to do this in pure C++, but I was wondering if it is possible to call a constructor from another constructor's initialization list in C++/CLI, same way one can do it in C#.
Example:
ref class Foo {
Foo() {}
Foo(int i) : Foo() {}
}
...
A simple situation here,
If I got three threads, and one for window application, and I want them to quit
when the window application is closed, so is it thread-safe if I use one global variable,
so that three threads will quit if only the global variable is true, otherwise continue its work?
Does the volatile help in this situation?
C++...
Hi
I have an string (iso 8859-1) with some non ascii chars, any idea how i cast to an integer or binary?
example
str has this text: "value 5= \377\242\242"
I need to transform \377\242\242 to binary (i tried with atol or strtol but doesn´t work)
Thanks
...
I'm looking for a associative container of some sort that provides safe concurrent read & write access provided you're never simultaneously reading and writing the same element.
Basically I have this setup:
Thread 1: Create A, Write A to container, Send A over the network.
Thread 2: Receive response to A, Read A from container, do som...