J'ai un tableau de chaînes comme ceci:std :: string à LPOLESTR
using std::string;
string myArray[] = { string("abc"), string("foo"), string("muh") };
Maintenant, je veux utiliser cette fonction:
HRESULT Init(T* begin, T* end, IUnknown* pUnk, CComEnumFlags flags = AtlFlagNoCopy);
T est dans mon cas LPOLESTR. J'ai donc besoin de convertir le tableau de std :: string en LPOLESTR respectivement j'ai besoin d'un LPOLESTR * pour commencer et terminer ce tableau. Comment cela est-il fait?
Thx à l'avance
Cela fonctionne! THX! – Michbeckable