Questions tagged as 'c++'

1
answer

Making Downlod of WINDOWS directories

I have an application that transfers files via socket, however it is very tiring to have to make one-to-one transfers. My question is this: How can I download a full DIRECTORY via socket? The program works as follows, it prompts the user...
asked by 21.02.2015 / 00:22
1
answer

Passing address to WriteProcessMemory

I'm trying to pass a memory address to WriteProcessMemory() , but this address should be typed by the user, I'm in doubt how can I do this, I tried with strings, wstring I was not successful. int isSuccessful = WriteProcessMemory(...
asked by 12.02.2015 / 07:05
1
answer

How to solve the problem of accentuation in the terminal?

I'm writing some strings on the screen using the Opengl library and some of the stored words are accented words, for example: república checa , where the output ends up being: repblica checa can solve this problem without using exte...
asked by 30.04.2016 / 01:03
1
answer

QThreads on QT Creator

I created a server in QT Creator, and I also implemented the Threads service on it. But when I connect to the server with the application "Client" and send a data, the server does not receive ... It should receive and print the received data, bu...
asked by 21.08.2015 / 21:18
3
answers

Infinite loop when typing a character

I'm doing error testing on my "Monkey Test" program and it goes into loop infinity when I type a character on the keyboard other than number. int ActionGenerator() { bool Verify; int Action; Verify = true; while(Verify){...
asked by 25.11.2014 / 22:20
1
answer

Error Assertion failure: "(!" SetThreadContext failed ")" in .. \ win32src \ thread32.cpp at line 434

I am compiling my C ++ project in Embarcadero's CodeGear 2009, and when I start debugging my program this message appears:    bds.exe - bordbk120N.dll   Assertion failure: "(!" SetThreadContext failed ")" in .. \ win32src \ thread32.cpp at l...
asked by 28.11.2014 / 13:13
2
answers

Add QtableView data to the database

Hello. How do I add all data from within tableView to the database? I am adding data in tableView with QStandardItem //TableView count = ui->tableView->verticalHeader()->count(); verticalHeader.append(QString...
asked by 12.04.2014 / 01:06
2
answers

Size of a vector of characters according to their addressing

Is the size of a character vector given by its address or variable value? Example: char[1000] = "Exemplo Teste" Is the length of this variable 1KB due to its char[1000] address or its size is 13 because of its content?     
asked by 26.12.2018 / 21:40
1
answer

How to check if the vector of a record is empty in C

I have this record: typedef struct{ char nome[200], telefone[200], email[200]; } Agenda; Agenda contato; Agenda vetor[300]; And I want to print only those records that have data: int lista_contatos(void){ printf("========== Cont...
asked by 29.10.2018 / 15:55
1
answer

recursive function error in c ++

This recursive function should calculate the multiplication of two integers but is always returning +1 in the result, can anyone help me? int multiplic(int m1, int m2){ if(m2==0){ return 1; } return m1 + multiplic(m1,m2-1);...
asked by 25.10.2018 / 00:08