Questions tagged as 'c++'

1
answer

How to use an unmanaged DLL in Microsoft Bot Framework?

I want to make a bot for facebook using the Microsoft Bot Framework (C #) and also use a tool called ChatScript, which is written in C ++. I turned chatscript into a DLL and called it in a console application in C #, which worked. When I t...
asked by 06.11.2016 / 22:13
0
answers

Call function from c # from within a c ++ dll

Situation: I have a project in 3 layers: one for data, one for graphical interface in C # and another in C ++. The c ++ layer is made using the clr support (/ em> Common Language Runtime Support (/ clr)). But I use it as wrapp...
asked by 07.11.2016 / 20:12
1
answer

Error in function remove c ++

Good evening guys, I'm not getting the remove function to work. Find the number but do not delete the value of the vector. #include <cstdlib> #include <iostream> #include <string.h> using namespace std; #define MAX 100 type...
asked by 23.09.2016 / 06:58
3
answers

Problem with type in function with variable parameters in C

I'm having trouble solving a problem in a function that receives variable parameters. I have a function that adds a variable number of numbers, its first parameter is the number of numbers to be added, and the others are the numbers themselves,...
asked by 18.09.2016 / 19:36
1
answer

glBindTexture does not apply texture in GL_QUADS

Problem: glBindTexture does not apply texture to "GL_QUADS" when using OPENGL in C ++. My experience in c ++, and especially in OPENGL is limited, but I relied on in this code . I made a few modifications to make it compatible with my projec...
asked by 26.09.2016 / 02:37
1
answer

Make operator overload by separating statement (.h) from definition (.cpp)

I'm trying to separate the class implementation definition into separate files, however I'm getting undefined reference in ; operator. What I've tried: Change the order of objects at link time: only generates an undefined reference i...
asked by 29.09.2016 / 18:41
1
answer

I am trying to run a program with countdown, but in counter it is not decreasing

#include "stdafx.h" #include <windows.h> #include <string> #include <iostream> using namespace std; int main() { int counter, number_1, number_2; string resposta, resposta_2, responder, responder_2, resp = "lol";...
asked by 25.08.2016 / 07:32
1
answer

What is the use of * in the expression "Foo * foo = new Foo" in C ++? [duplicate]

I was analyzing this question made in SOEN. There you are teaching to instantiate a particular class. I was able to understand more or less how it works, because when I use my example, it is giving error when compiling. class Pessoa {...
asked by 05.01.2016 / 15:50
0
answers

Link timer to a button

Hello, I'm starting to program in C ++ now and I'm developing a college project, it's a periodic table. We think of using a button for each element (118 in total). My goal is to animate the button so that when the mouse goes over it double in si...
asked by 10.09.2016 / 18:35
0
answers

Create a standalone .exe of a game in Visual Studio

I need to launch a game but I want to create a standalone .exe, because when VS finishes the compilation it creates the .exe but together are the dll of the game, I wanted it to be only the .exe in order to distribute. I know he'll be heavier fo...
asked by 02.09.2016 / 05:16