Questions tagged as 'c++'

1
answer

Why can not I capture KeyEvent in my program? Problems is not the main?

#include<QApplication> #include<tabuleiro.h> #include<jogador.h> #include<QWidget> int main(int argc, char* argv[]){ QApplication app(argc, argv); QWidget window; Tabuleiro t(&window); Jogador j(&window); windo...
asked by 01.06.2015 / 13:58
1
answer

How to get the value of a variable from memory? [duplicate]

I run the first CC period and would like to know how I could get variable values from a game, for example, in real time. For example, when a Boolean variable changes the value to TRUE, I wanted to have access to that state of the variable. Can...
asked by 03.06.2015 / 03:49
0
answers

Using elements of a Form within a function

I'm developing an application in C ++ Builder that has a Form that contains elements like ListBox , buttons, Labels , etc. I can configure the events of each of these elements ( onClick , onEnter , onExit...
asked by 20.01.2015 / 03:05
1
answer

Winsock remote data reading (CMD)

I have a (remote) server where it redirects its shell to the client (remote), the client side is using netcat or telnet for communication. I am developing the client side for use with Windows, however I am having some problems when receiving the...
asked by 12.01.2015 / 12:17
1
answer

Reference loss per parameter

I'm having the following problem, when I run the insereOP() method, the instances maq and cli lose their data. So when I call the atualizarOP method, the client and machine information does not exist, generating an...
asked by 10.09.2014 / 15:11
1
answer

How to store the PxFixedJoint class in a vector

I'm trying to store the PxFixedJoint class in a std::vector with the push_back method. But the vector is always empty, it just does not add anything. Down the code. // C++ // Declaração do vector para armazenar os joint...
asked by 02.08.2014 / 19:57
1
answer

How to listen to events without opening a window?

I'm doing a simple personal console project that will do keyboard hooking , but I do not want it to open the SFML OpenGL window. Is there any way to listen to SFML events without opening a window?     
asked by 27.07.2014 / 01:59
1
answer

Error passing a vector of objects in C ++ [closed]

I have the following function: int verticeEstimativaMinima(Node *grafo, int numVertices){} And in my function main , I have the following line of code: Node *grafo = new Node[numVertices]; That is, I'm basically trying to pass an...
asked by 02.10.2014 / 16:41
1
answer

sqlcipher compile plugin on windows

How do I compile the plugin in windows? I'm doing this: Git Clone sqlcipher - C:\sqlcipher installed MINGW32 - C:\MINGW32 installed msys - C:\MINGW32\msys.0 installed tcltk-8.4.1-1 -...
asked by 03.04.2014 / 18:19
1
answer

How do string istreams work?

To get a std::string , pointers of type char are required, as far as I know. However, to get a pointer, you have to allocate memory (necessarily, or there will be runtime error , Segmentation Fault ). However, it may con...
asked by 18.05.2014 / 16:22