Learning Win32 to develop GUI Applications
if you're a c++ programmer, would you go for the Win32 API or .NET to develop GUI applications? ...
if you're a c++ programmer, would you go for the Win32 API or .NET to develop GUI applications? ...
I want to use Festival TTS with my C++ programme. So i have downloaded all files form http://www.cstr.ed.ac.uk/downloads/festival/2.0.95/ then i start reading manual(http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html) for C++ API but in manual they says that: In order to use Festival you must include festival/src/inclu...
In my application I got many instances of class CDbaOciNotifier. They all share a pointer to only one instance of class OCIEnv. What I like to achieve is that allocation and deallocation of the resource class OCIEnv will be handled automatically inside class CDbaOciNotifier. The desired behaviour is, with the first instance of class CD...
A quick, fun question - What is the difference between a function declaration in C/C++ and an else-if statement block from a purely parsing standpoint? void function_name(arguments) { [statement-block] } else if(arguments) { [statement-block] } Looking for the best solution! =) Edit: Thanks for the insight guys. I was actually ...
is it possible to connect to an mysql database and issue queries using c++? i found some sample code from the internet but they all use mysql! so u need to install mysql first on the computer. what i want is to use a program from different locations where i don't have mysql installed to access a remote mysql database. is this possible? ...
class Node { string name; Node previous; }; Error: Node::previous uses "Node" which is being defined. How can I get this to work in C++? It works in C#. EDIT: Why Node* previous works? ...
What techniques / methods exist for getting sub-millisecond precision timing data in C or C++, and what precision and accuracy do they provide? I'm looking for methods that don't require additional hardware. The application involves waiting for approximately 50 microseconds +/- 1 microsecond while some external hardware collects data. ...
Hi, I am going to do pan/scale stuff on QGraphicsView. So I read the documentation of QGraphicsView and see some utility functions like ensureVisible() and centerOn(). I think I understand what the documentation says but I can' t manage to write a working example. Could you please write/suggest me an example code to understand the issue....
I'm venturing into the world of C++ and Linux, and am having problems linking against a shared library. I have a library, libicuuc.so.44.1, installed in /usr/local/lib. There is also a link in the same directory, libicuuc.so.44 pointing to that library. My /etc/ld.so.conf reads: include /etc/ld.so.conf.d/*.conf I have a file, /etc/l...
I understand visual programming languages to be those languages that allow the programmer to to manipulate graphical--rather than textual--objects onscreen to build functionality. The closest thing I see in C#, VB, etc. is RAD controls, but that is just composing UI and the very simplest functionality -- it has nothing to do with the la...
let's say i have a setup file called setup.exe i want to make this setup.exe include another exe file inside of it !! how can i do that ? or what is this process called and i will try to search and learn p.s i would do that with C , C++ p.s the other exe isn't a virus don worry :) it's a security file that will block that sof...
Here's the code. Is it possible to make last line work? #include<iostream> using namespace std; template <int X, int Y> class Matrix { int matrix[X][Y]; int x,y; public: Matrix() : x(X), y(Y) {} void print() { cout << "x: " << x << " y: " << y << endl; } }; template < int a, int b, int c> Matrix<a,c> Multiply (Matr...
Windows 7, C++, VS2008 I have a COM DLL that needs to be registered using "runas administrator" (it is a legacy app that writes to the registry) The DLL is used by a reports app which instantiates it using CoCreateInstance. This failed unless I also ran the reports app as administrator; until I changed the linker setting from /MANIFESTUA...
The following snippet gives the warning: [C++ Warning] foo.cpp(70): W8030 Temporary used for parameter '_Val' in call to 'std::vector<Base *,std::allocator<Base *> >::push_back(Base * const &)' .. on the indicated line. class Base { }; class Derived: public Base { public: Derived() // << warning disappears if constructor is rem...
Hello, This is a newbe question but I have alwasy doubts with pointers in C++. This is the situation. I have a class A which as a collection (a vector actually) of pointers of class B. This same class A has another collection of pointers to class C. Finally the objects of class B have also a collection to pointers to class C which poin...
I'm writing an RPC middleware in C++. I have a class named RPCClientProxy that contains a socket client inside: class RPCClientProxy { ... private: Socket* pSocket; ... } The constructor: RPCClientProxy::RPCClientProxy(host, port) { pSocket = new Socket(host, port); } As you can see, I don't need to tell the user that I...
I am having some trouble getting this simple code to work: #pragma once #include <iostream> #include <string> using std::string; class UserController; #include "UserController.h" class CreateUserView { public: CreateUserView(void); ~CreateUserView(void); UserController* controller; void showView(); string name; string lastname; ...
Does anyone know if there is a function in DirectX to get the dimensions of an LPDIRECT3DTEXTURE9? I just need the width and height. If there isn't, anyone know of a quick and dirty way to accomplish this? ...
I have the following options_description: po::options_description config("Configuration File or Command Line"); config.add_options() ("run-time,t", po::value<double>(&runTime_)->default_value(1440.0), "set max simulation duration") ("starting-iteration,i", po::value<long>(&startingIteration_)->default_value(1), "set starting simulat...
when I tried to compile the code: (note: func and func2 is not typo) struct S { void func2() {} }; class O { public: inline S* operator->() const; private: S* ses; }; inline S* O::operator->() const { return ses; } int main() { O object; object->func(); return 0; } there is a compile error reported: D:\...