P
P
Persotr272019-06-10 01:49:47
C++ / C#
Persotr27, 2019-06-10 01:49:47

How to add std::string to comboBox.Items in c++ WinForms?

How to add std::string to comboBox.Items in c++? WinForms
Writes: it is impossible to call a function with the given list of arguments, argument types: (std::string)
How can I add it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SerJook, 2019-06-10
@Persotr27

combobox->Items->Add(gcnew String(str.c_str()));

N
Nikita Yudin, 2019-06-10
@NikitaNike

comboBox.Items.Add(str);

A
Anton, 2017-07-15
@JackShcherbakov

Because I chose only those pictures that were in the document at the time of the call. The new picture was added later, so it was not included in this selection - well, it was not deleted, respectively.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question