Why do you keep ignoring everything? Keep it managed!
There is a very simple function somewhere in the framework that does what you want!
No need for messy conversion and interop between native.
After just a minute at msdn, I find this:
It's the same function in managed that you're trying to use native.
No I am not ignoring... It is just because I really dont know about all alternatives that really could work so I just get a bit confused.
I did found this one too but the problem is for me how to combine or if it even was possible with browseFolderDialog as the example is so small.
I do find it quite difficult but now I will really try to keep it managed because it feels much more clean.
I will go for this one... Thanks again...
Since it's managed, it accepts system::string^, which is exactly what folderBrowserDialog1->SelectedPath is, as well. No problems! No messy conversion. Just plain, easy code.
Yes you are right. Sometimes I am to stubborn to fix things that I should do in another way. Bad side. But I kept learning about LPCSTR and LPWSTR last 10 hours :-P. I will really try to keep things clean.