Questions tagged as 'c++'

1
answer

Invalid operands of types 'char' and 'char *' to binary 'operator *'?

I did this function in c ++ to invert a word void cambio(char*); //cadena a ingresar void cambio(char *v){ int d=strlen(v); //dimensión de la cadena int e= d-1; // valor para leer la cadena desde el último carácter char temp; // variable tempo...
asked by 03.11.2016 / 02:31
0
answers

Conflicts displace / reduce yacc

When using yacc if we have the following grammar it does not give us any problem, only the conflict displaces / reduces the if else that it should be. Programa : Cabecera_programa Bloque; Cabecera_programa : PRIN | error; Bloque : ABRIRLLAVE...
asked by 24.11.2016 / 13:06
1
answer

QTreeWidget contacts in C ++, with QT and XMPP

Hello, I'm trying to make a list of all my contacts in my account. To do this, I will show those that are connected and not. I rely on the XMPP chat communication protocol. The code is as follows: void MainWindow::rosterRecibido() { lo...
asked by 14.10.2016 / 18:11
1
answer

Using ListBox to view directory files - Visual C ++

I am new using Visual C ++, and I need to know how to view the files in a directory using ListBox in Visual c ++. I hope you can help me, thank you in advance.     
asked by 03.11.2016 / 04:26
1
answer

how to create a thread in c ++ with windows using _beginthreadex?

I am trying to create a thread within a member function of a class with _beginthreadex. void CapturaDeRed::startCapture() { unsigned threadID; HANDLE hTread; MyData *data=NULL; data->ifaceName = configCapture(); data-&g...
asked by 05.09.2016 / 18:07
1
answer

error: C1083: Unable to open the file include: 'QKeyEvent':

I can not include this library to my application. Try to include it in the following way: #include <QEvent> #include <QKeyEvent> However, it shows me the following error:    user \ filter \ filterofperfectpersonalized.cpp: 4:...
asked by 11.10.2016 / 12:49
1
answer

Use keystate or windows hook

I have been learning to capture my keys so I can include certain effects in my game when I press certain keys. How can f12 be fired etc. What I want to know is that it is more advisable to use a Hook or keystate, I think keystate is less conflic...
asked by 05.10.2016 / 22:50
2
answers

Differentiate a program with a HASH in QT

Hi, I want to create an alias for each program that I create in qt and that this alias is different. I was thinking about using hashes and converting them into a string. For example: I compile a program every time I compile that program it has t...
asked by 17.10.2016 / 14:44
1
answer

Winsock Server Client Example

Good morning, As I work in the uni, they have sent us to do a program with a server and a client. But for this we have been told that first we have to make an example of server and client work. They have given us the example like this, with thes...
asked by 26.03.2016 / 13:49
1
answer

Template Abstract Class C ++

Hello, I have the following problem. I have many functions that perform different operations, so I wanted to group this sharing with an interface (abstract class) of the Evaluable type Now as each function returns something different I thou...
asked by 14.04.2016 / 19:56