Hello! I am working on a limited remote control of another PC over network. At first the controlled window is chosen and the client may control that window and all child windows. I am having a problem with the mouse though, I can move it using SetCursorPos, but when I try to send the WM_LBUTTONDOWN and WM_LBUTTONUP messages, there is no ...
When I write a program using C++ and I want to run it, I can't catch the console window. I press CTRLF5 and it does not work.
I want the window to stay open and wait, even it finishes executing. Can anyone help me?
Thanks in advance.
...
hello,
I was just wondering if someone could just give me an example of how to use switch/case. I kinda get the just of it but am having trouble figuring out what and how i can use this. Thank you in advance.
...
I've written my own version of thread safe queue. However, when I run this program, it hangs/deadlocks itself.
Wondering, why is this locks/hangs forever.
void concurrentqueue::addtoQueue(const int number)
{
locker currentlock(lock_for_queue);
numberlist.push(number);
pthread_cond_signal(&queue_availability_condition);
}
i...
Please see the code below:
#include <windows.h>
int main(int argc, char* argv[])
{
HANDLE _mutex = ::CreateMutex(NULL, FALSE, "abc");
if (!_mutex)
throw std::runtime_error("CreateMutex failed");
if (::WaitForSingleObject(_mutex, INFINITE) != WAIT_OBJECT_0)
throw std::runtime_error("WaitForSingleObject failed...
I am looking for an OCR library (commercial or free) that I can use of my C++ project.
My project is mobile-based, so the library cannot depend on .Net or any framework like that.
Can you recommend any?
...
Hello I was looking around on the internet and I was unable to find anything concrete. I would like to find a good Wiimote API (in C or C++) that also implements usage of the Wii Motion Plus accessory. If anyone knows of any good ones it would be greatly appreciated. Thanks.
...
Hi,
I would like to know what is the easiest way to convert an int to C++ style string and from C++ style string to int.
edit
Thank you very much. When converting form string to int what happens if I pass a char string ? (ex: "abce").
Thanks & Regards,
Mousey
...
I'm newbie to C++. Don't mind this stupid question:
In C++ primer 4th edition (Stanley Lipmann) on page 52, there is a sentence which says:
The default constructor is used regardless of where a variable is defined.
Can anyone explain a bit more? This statements seem like it is missing something.
...
From some browsing on net, I just understood that any framework is set of libraries provided by the framework and we can simply use those library functions to develop the application.
I would like to know more about
what is a framework with respect to C++.
How are C++ frameworks designed?
How can we use them and develop applications.
...
I downloaded the latest CEGUI stable release (0.7.1 binary for Microsoft Visual C++ 2008)
and after hours of setting properties, linker configuration and searching headers files on the internet
I finally got the samples to compile. the big surprise now is that I don't find the executables anywhere.
The msvc++ reports says:
========== ...
As you know, if the call to LoadLibrary specifies a DLL module already mapped into the address space of the calling process, the function simply returns a handle of the DLL and increments the module's reference count.
Somewhere, I need to get the reference count of a dll. How to get the dll's reference count? How to know where the dll ...
This is the error I'm getting when trying to compile some code that uses taucs (not my code):
.../taucs/src/taucs.h:554: error: conflicting declaration ‘typedef struct taucs_ccs_matrix taucs_ccs_matrix’
.../taucs/src/taucs.h:554: error: ‘taucs_ccs_matrix’ has a previous declaration as ‘typedef struct taucs_ccs_matrix taucs_ccs_matrix’
...
how can the following declaration be expressed with const first (without typedef)?
double* const (&data)[6]
// ?? const double* (&data)[6] // incorrect, elements, not reference, are const
thank you
...
(see edits)
I'm developing a QT/c++ application under gnome.
The application a main window and QListBox child window.
Both of these windows show up as separate main windows when I alt-tab away from the application.
How can I make it so that only one window is shown when I (or later the user) uses alt-tab?
I am guessing this behav...
File1.h
// Declaration
Class A
{
void Func();
}
//Along with some other stuff
File1.cpp
//Definition
A::Func()
{
}
// Along with some other stuff
File2.h
class A
{
void Func();
}
File2.cpp
// Definition
File2::A::Func()
{
}
File3.cpp
#include "File1.h"
#include "File2....
Based on below, am i right?
global_A reference is initialized to null.
global_int is 0
local_A reference is null
local_int is uninitialized
Both global_A.x and local_A.x is uninitialized.
THanks for any help.
A global_A;
int global_int;
class A {
public : int x;
}
int main()
{
int local_int;
A local_A;
}
...
I am trying to compile gcc 4.5.1 for cygwin with support for C++0x threads.
However, the resulting gcc does not recognize the -pthread option.
My configure command is:
./configure --enable-bootstrap --enable-shared --enable-shared-libgcc
--with-gnu-ld --enable-languages=c,c++ --enable-libgomp
--enable-libssp --...
I need an algorithm that converts any file format to its .PRN file equivalent which will be compatible for a specific printer (for example, only in CANON printers).
Or I need a source code or way to know how printer drivers work. Printer drivers are the one who specifies or creates the .PRN file of any type. So please help me. Thanks!
...
ok im setting a cursor in a loop it works but when i move the cursor it just changes back to the way it was. im using win32 api and i used
SetCursor(LoadCursor(hInstance, MAKEINTRESOURCE(IDC_PROTECTED)));
any idea
...