Questions tagged as 'c++'

1
answer

The function does not add to the list

THIS IS THE SOURCE: #include <iostream> #include "gestor.h" using namespace std; int menu() { int opc; cout << "Faca a sua escolha!" << endl; cout << "1-> inserir avaria!" << endl; cout <<...
asked by 03.10.2015 / 17:44
2
answers

Instantiate class in a library by method in arduino

I have this line of code, and in it I have 2 methods, where one sets the keypad and another one takes the key pressed. void Maleta::setKeypad(int r1, int r2, int r3, int r4, int c1, int c2, int c3, int c4){ const byte numRows= 4; // Numero d...
asked by 15.09.2015 / 19:29
0
answers

Error while compiling Allegro

I installed and created the allegro project following this tutorial . I have this code: #include <stdio.h> #include <stdlib.h> #include <allegro5/allegro.h> #include <allegro5/allegro_native_dialog.h> int main(voi...
asked by 17.09.2015 / 02:40
1
answer

Socket Asynchronous C # receiving more than one message at a time

I'm developing a C # Dll that works with Asynchronous TCP Socket for developing some tools I'm working on, the problem appears when the client receives many messages in a short period, in which case the messages are in JSON, so the server sends...
asked by 16.09.2015 / 15:34
1
answer

Communication between C \ C ++ ADDON and NodeJS

This is trying to implement a server capable of speech recognition. But this last part has to be implemented through a C ++ C ++ Addon. At this point, I am writing the wav file on the server and passing the name to the addon: var obj1 = julius...
asked by 07.07.2015 / 16:29
0
answers

Encapsulation of OpenGL code in C ++ classes

I'm currently starting an SDL / OpenGL-based project based on the code for this article . At the moment, I am trying to find the best way to encapsulate the OpenGL code of the example. My main function is as follows: int main(int argc, char *...
asked by 13.08.2015 / 19:18
1
answer

"HEAP CORRUPTION DETECTED" [closed]

Can anyone help me here? problem in the destructor. (UP) I think I found the problem, I'll comment on the code: If someone can give me some good practice tips on this code, please! Kript::Kript(const char* novoTexto) { texto_size = s...
asked by 05.05.2015 / 11:48
0
answers

Screen Capture, decrease bitmap file size

One of the functions of the project I'm working on captures the screen of the user, however the bitmap file is getting very large, from 6MB to 8MB, it is bad to be able to send via socket or in future to make a stream by frame, someone could hel...
asked by 10.02.2015 / 18:55
0
answers

How to render graphics in Qt applications? [closed]

I'm developing a small application to read a serial port. I would like to know how to generate a graph that is updated in real time with two variables, one x (time), and another y (value_serial_id), in C ++ with Qt. Here's an example of what y...
asked by 31.01.2015 / 00:30
1
answer

What should be returned in the WndProc function in C ++?

Hello. See the code below: LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { if (message == WM_CREATE) { return(?); } else if (message == WM_COMMAND) { return(?); } else if (message =...
asked by 26.11.2014 / 03:06