Questions tagged as 'c++'

0
answers

(Media Foundation) MediaEngineClassFactory does not start MediaEngine

I'm trying to play a video for a DirectX texture via Media Foundation by searching I did not find much about it except for this example of # later test and adapt to other situations (instead of playing direct audio, processing audio,...
asked by 26.10.2017 / 17:20
1
answer

Link library boost with cmake?

I'm trying to use c ++ boost library. Reading a tutorial on their website, I came across this and do not know how to do it. It is said that I have to include #include <boost/test/unit_test.hpp> and make a link with this lib: libunit...
asked by 19.11.2017 / 18:36
0
answers

Problems with Opencv in Qt creator

The program does not have any errors in the build, but when I run the code it has the following message:    libopencv_core.so.3.4: can not open shared object file: No such file or directory The .pro file looks like this: QT += c...
asked by 28.12.2017 / 17:03
1
answer

Difference calling a function in DllMain by CreateThread or calling directly

What's the difference in calling a function in the following ways: The first way to create a thread. Example: DWORD WINAPI Metodo1(LPVOID) { // Meu código aqui... return NULL; } int WINAPI DllMain(HMODULE hModule, DWORD dwReaso...
asked by 04.10.2017 / 20:41
0
answers

Doubts related to an anti-cheat system [closed]

I could not find a better way to describe the title of the topic, if it is not good enough, I ask that moderation edit it for me. I have some questions regarding an effective anti-cheat gaming system. Yes, I know the best anti cheat comes dir...
asked by 08.09.2017 / 02:34
1
answer

Insert elements into vector of C ++ lists

I'm not able to insert elements into a list vector. The program prints the variable amount_of_vertices and then a run-time error occurs. #include <iostream> #include <list> #include <vector> #include <stdio.h> using nam...
asked by 23.07.2017 / 20:47
0
answers

Problem with SFML in Code Blocks Windows 32 bit

I installed SFML in CodeBlocks using the instructions here link Then I compiled the example code from there, which should display a window with a green circle: #include <SFML/Graphics.hpp> int main() { sf::RenderWind...
asked by 14.07.2016 / 01:09
1
answer

How to reuse a pthreads?

I'm using pthread.h and using the following functions: // // Cria A thread // thread_argsPP[contthreadsPP] = contthreadsPP; pthread_create(&threadsPP[contthreadsPP], NULL, ReceivePinPad, (void *) &thread_argsPP[cont...
asked by 21.07.2016 / 15:13
1
answer

Is there any substitute for _outp, removed in Visual C ++ 2015?

I'm migrating a project in MFC from Visual Studio 2010 to 2015. In this process I discovered that _outp, among other commands, have been permanently removed. In the MSDN (_outp, _outpw, _outpd) report that "These functions are deprecat...
asked by 19.06.2016 / 22:29
1
answer

Multiples Cmake in a project

I'm developing an application in C ++, where I need to use a library I've developed before with CMake. But I do not want to call the binary directly because each platform will have to have a binary separately, and it's annoying to have to compil...
asked by 24.04.2016 / 07:29