Questions tagged as 'c++'

0
answers

expected type-specifier before error c ++

I get an error compiling that I do not understand, I'm implementing the Langton ant using inheritance and polymorphism, by creating a pointer to a class that defines a type of ant with special characteristics. Estos son los errores que me sale...
asked by 11.03.2018 / 21:33
0
answers

How to save a variable by keyboard from a dialog box in MFC DLL?

Cordial greetings colleagues, it turns out that I am developing an MFC Dll C ++, which contains a script with certain functions and I have a dialog box created, since I need that from this dialog box, the user can by keyboard enter values to a v...
asked by 15.03.2018 / 21:04
0
answers

How do I charge a ComboBox from an ini? in C ++

How do I charge a ComboBox from an ini in c ++? I have this example to fill a different one: AnsiString RutaBase = Sysutils::ExtractFilePath(Dir); UnicodeString usDescripcion=""; int i=0; AnsiString RutaIni=RutaBase+"Anexo.ini";...
asked by 03.03.2018 / 00:03
1
answer

Illegal hardware instruction / Illegal instruction: 4 when running some programs in C ++ from macOS

I have been having this problem for a few days and I can not find a solution. When doing programs in C ++, when wanting to run them in macOS (Macbook Air early 2015) I skipped "Illegal instruction: 4 from 'bash' and" Illegal hardware instruction...
asked by 28.02.2018 / 20:09
0
answers

How to create inputbox in MFC DLL C ++?

Cordial greeting colleagues, it turns out that I am developing an MFC DLL that will read an application, what I need to know is, if it is possible to generate inputbox in MFC DLL C ++, so that the user by keyboard will enter the value to a certa...
asked by 09.03.2018 / 13:56
0
answers

read and parse a large txt file in C ++

I have a text file of about 14k lines . It has this kind of format & Apple_01.png Momentos_Hu: 0.166941 0.000099 0.000077 0.000007 -0.000000 -0.000000 -0.000000 Descriptores_de_Fourier: 88416.051043 837.762710 1396.600494 3180.998153 1...
asked by 12.03.2018 / 22:31
1
answer

how to specify the path of a .dll in c ++ to import it in c #

[DllImport("Cannabis.dll", CharSet = CharSet.Ansi)] internal static extern void Entrenado_Casificador_SVM(string imagePath); for example: what path does Cannabis.dll have? How to change it?     
asked by 19.02.2018 / 17:22
2
answers

Access the attributes of a class from one method of another

I'm starting with C ++, I'd like to know how to use the attributes of one class in another, for example, the attribute CostoBase should use it in the method PrecioVenta() , try to create a variable in the class Venta and equa...
asked by 28.04.2018 / 23:06
0
answers

Error: std: out_of_range

The program consists of entering a word and filling an array with each letter of the word. However, this error does occur: #include<iostream> #include<string> using namespace std; int const TAM_MAX=5; typedef enum{A,B,C,D,E}tL...
asked by 26.01.2018 / 17:22
0
answers

any alternative to ilmerge but for c ++?

In the previous question do not explain what I'm looking for is some way to use my libraries as an embedded resource instead of references like when you use ilmerge but for c ++ - that is, for example I have several dependencies in native C ++ a...
asked by 13.01.2018 / 23:04