Hello there,
I'd like to know whether it is possible to enable XP Visual Style in wxWidgets,
as it is not enabled by default.
All of the controls were drawn in classic Windows style.
I'm using wxMSW packed with wxPack, but without wxFormBuilder (http://wxpack.sourceforge.net/), and MSVC++ 2008 EE as the ide.
So, is it possible to ena...
So i have this C++ program that is called via JNI from my Java program, the code follows:
JNIEXPORT jstring JNICALL Java_com_entrust_adminservices_urs_examples_authn_LdapAuthenticator2_takeInfo(JNIEnv *env, jobject obj, jstring domain, jstring id, jstring idca, jstring password)
{
const char *nt_domain;
const char *nt_id;
...
Hi,
(This is all in ortho mode, origin is in the top left corner, x is positive to the right, y is positive down the y axis)
I have a rectangle in world space, which can have a rotation m_rotation (in degrees).
I can work with the rectangle fine, it rotates, scales, everything you could want it to do.
The part that I am getting reall...
I have a homework assignment. I'm not looking for anyone to do the work for me, I'm just having trouble with one little aspect, although I'd accept advice on other bits as well.
The assignment is:
Write a class using a two-dimensional dynamic array.
The constructor passes in the dimensions of the array. The constructor also int...
Consider a class of which copies need to be made. The vast majority of the data elements in the copy must strictly reflect the original, however there are select few elements whose state is not to be preserved and need to be reinitialized.
Is it bad form to call a default assignment operator from the copy constructor?
The default assi...
Hopefully this is a brainlessly easy question, but it shows my lack of expertise with C++. I'm a C# programmer, and I've done extensive work with P/Invoke in the past with other people's C++/C dlls. However, this time I've decided to write a wrapper C++ dll (unmanaged) myself, and am then calling my wrapper dll from C#.
The problem I ...
Often when working with templates, you end up with something like:
template <T>
class the_class
{
public:
// types
typedef T value_type;
typedef const value_type const_value_type;
typedef value_type& reference;
typedef const_value_type& const_reference;
typedef value_type* pointer;
typedef const_value_type* const_...
I want to know what is happening in memory when you declare:
int **array;
...
I'd like to read a binary file and use something like std::string that automatically resizes the buffer and such.
I'm using Visual C++. What are my options?
...
Why would I ever want to call std::string::data() over std::string::c_str()? Surely there is some method to the standard's madness here...
...
Hi,
I have a namespace extension that supports copy-paste using the CFSTR_FILEDESCRIPTOR/ CFSTR_FILECONTENTS to copy virtual files to the clipboard. However, the 'Copying Files...' progress dialog does not show up.
Explorer appears to hang until the copy operation is complete.
Any suggestions as to how to get the progress dialog to w...
I'm under the impression certain compilers only work for making windows applications.
...
I am a corporate C# programmer. I found some time to invest into myself and stumbed upon a dilemma. Where to go from now? C#/.NET is easy to learn, develop for, etc. In future I would want to apply to Microsoft or Google, and want to invest spare time wisely, so what I will learn will flourish in future.
So: Python or C++ for a C# progr...
I was wondering about using or not templates, in other thread I found out that templates must be implement in the header file because of some reasons.
Thats ok, my question is if the source will be need if other programm use it?
from the logic of the other thread's answer, it seems that even other programm would need the full implementat...
Hi,
How can I retrieve null-terminated string from socket using boost::asio library?
Thanks in advance
...
void Foo(float a){} //1
void Foo(double a){} //2 overloaded
Foo(1.0f); //calls function 1
Foo(1.0 /*double numeric suffix?*/); //calls function 2
If not, is a cast the only way this can be achieved? I am mainly interested in
ensuring double precision math during certain operations, etc:
ulong j;
double ...
The more I work with C++ locale facets, more I understand --- they are broken.
std::time_get -- is not symmetric with std::time_put (as it in C strftime/strptime) and does not allow easy parsing of times with AM/PM marks.
I descovered recently that simple number formatting may produce illegal UTF-8 under certain locales (like ru_RU.UTF...
I'm doing (something like) this:
void insert(Node*& node, string val, Node* parent)
{
if (node == NULL)
instantiateNode(node, val, parent);
else
insert(node->child, val, node);
}
The thing is, that instantiateNode(..., parent) seems to modify the original *&node passed into the function when setting the *parent. instan...
List anything you think is great to improve c++ knowledge... Please be concrete when giving solutions.
...
Background: We are designing a physics app, that will do a lot of data analysis, but our focus is integrating physical electronic equipement.
Basically I would like to be able to call root (it's a big data analysis library from CERN written in C++) library written in C++ library from Java. Basically ability to use ROOT classes from Ja...