Hey there,
I'd like to create a list, of the running processes, using
comboBox control to store the process names in. Unfortunately though, I've bumped into an error I can't seem to be able to fix by myself.
The idea is to add items to the comboBox (real time) while looping through the running processes.
---
An analog for the ease of understanding:
while(Process32Next(...))
{
comboBox1->Items->Add("NAME OF PROCESS IS SUPPOSED TO COME HERE");
}
However:
PROCESSENTRY32 proc;
...
proc.szExeFile // is of type '
wchar', while the Add function accepts '
System::String ^'. Obviously type-casting won't help, it involves something more advanced I don't know of.
Please note, I lack of C++ experience (and mainly OOP, which I am trying to get the hang of), so I am kind of clueless at this point.
Of course I had searched before opening the topic and found out about a function that does exactly the opposite thing:
http://pastebin.com/f5d6256ee
Thank's in advance!