Hi everyone.
I was working again with C++ during the weekend and came to notice something that I'm not sure where does it come from.
Following the advice in this thread, I decided to implement a map_keys_iterator and map_values_iterator. I took the -- I think -- recommended-against approach of deriving a class from std::map<K,V>::itera...
Hello,
I need to make COM IntetrOp at runtime using reflections. My native COM Object's exposed methods have some parameters as pointers (DWORD*) and some double pointers (DWORD**) and some are user defined types(e.g SomeUDTType objSmeUDTType) and vice versa its pointer(i.e. SomeUDTType *pSomeUDTType).
Now for dynamic method invocation...
i know wat function to use but i can't get it to workd right. i use SetCursorPos() the only problem is that it sets the cursor not to the windows coordinates but to the screen coordinates. i also tried the ScreenToClient() but it didn't work ethier.
here is my code
pt.x=113;
pt.y=280;
ScreenToClient(hWnd, &pt);
SetCursorPos(pt.x, pt.y);...
I am trying to tunnel RTP traffic through a user-defined protocol, and want to test this setup. Is there any C++ library, which I can use to generate example RTP packets and then tunnel them through my library?
Thanks.
...
What's the most recommended way to go?
...
is there gonna be a new version for c++ and when?
...
I have a std::list in a C++ program, which contains objects of a Class A.
Lets say I have 10 objects in it. I have a reference to the 6th object stored, in another data structure say ref_6. Lets say I need to remove the 8th element from my list. To do this, I would use pop_front 8 times and store 8 objects in a vector and use push_front...
I am developing a C++ application that needs to process large amount of data. I am not in position to partition data so that multi-processes can handle each partition independently. I am hoping to get ideas on frameworks/libraries that can manage threads and work allocation among worker threads.
Manage threads should include at least be...
Hey,
I need to seed the random number generator in boost (which is loaded from an int) for a few processes, for a program that has to compile and work both in Windows and in Linux.
I used std:time(0), which worked, but since the processes are jobs which are run simultaneously, some of them would run at the same second, producing the s...
i need algorithm for generate random complex number please help i know how generate random number but random complex number confuse me
...
Possible Duplicates:
What does a type followed by _t (underscore-t) represent?
What does the postfix _t stand for in C?
I've seen this more as of late. These are not typically templated classes, but rather just ordinary classes. Their names are all sensible, but they all tend to end with _t. I can't point to the libraries be...
I have been going through the emacs ebrowse info pages learning how to use it. I have hit a snag though. I am upto the "Member Buffers -> Switching Classes" page in which is states that I can swap classes using the "C c" key combination. Whenever I try to change to another class in the source tree it just spits out this error:
"ebrowse-...
this question is from Codechef.com [if anyone is still solving this question dont look further into the post before trying yourself] and although it runs right, but i need to make it a lot faster.i am a beginner in c,c++.(i know stuff upto arrays,strings and pointers but not file handling etc).So is there a way to make this program run a...
I want to develop a Windows service and choose ATL service as I want to use native C++, but it seems there are not much materials on this topic, I only found some concept description here, which is not enough for me to develop my service application.
Do you know any tutorials or samples on developing a ATL service?
Thanks so much.
...
Say I fill QComboBox with a number on each line. And lines are very close vertically. How can I control vertical the distance?
...
So, I want to take advantage of new win7 taskbar features, like jump lists and progress bars, ect...
When looking it up on msdn, I found the functions to add a progress bar. I added the header and included the library.
Intellisense recognised the constants, but not the functions.
I'm knew to this, so does anyone know how to implement...
Hi, all
Is it possible to have a vector without specializing it?
My problem is: I have an abstract class N4GestureRecognizer
and a couple of subclasses of it.
So in a Controller class I want to have a vector<N4GestureRecognizer> recognizers_ but since it is abstract I cannot.
How can I store this recognizers in a vector or collection ...
I would like to make somekind of alias in c++ to single tone calling
so instead of calling each time to MYCLASS::GetInstance()->someFunction();
I could call just someFunctionAlias(); in my code .
...
Hi All
I am new to C++ Qt programming.
Having difficulty with hooking up buttons to signals and events. Not sure what i'm doing wrong, please see code below.
Main.cpp
#include <QtGui/QApplication>
#include "MainWidget.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWidget mainWidget;
mainWidget.s...
Possible Duplicates:
C++ Virtual/Pure Virtual Explained
What's the difference between virtual function instantiations in c++
Why pure virtual function is initialized by 0?
This is a method in some class declaration that someone gave me. And I don't know what '..=0' means. What is it?
virtual void Print() const = 0;
...