Thanks, this is the way it works. But now, I have another problem. I�m
calling a function in an API, that have the next signature:
void function1(out std::string* version);
If I debug and see the value in the Watch window, I see the next version
returned value:
version
_Bx
[+] _Buf
[+] _Ptr <- The function return the value here
When I call version.c_str(), I obtain a pointer to the buf, that is like
a char[], but not to the ptr where the function copies the data.
But if I call the same code from Visual Studio 6 with the same api with
C++, not MC++, I see the next version returned value:
version
[+] _Ptr
And the _Ptr holds the data I need.
Then, it looks that the type std::string is a lot different bettwen VS6
and VS7. STL versions are different? How can I use the previous version?
I had searched the docs deeply, but no results. Please help.
Thanks a lot.
-----Mensaje original-----
De: dotnet discussion [mailto:[EMAIL PROTECTED]] En nombre de
Tomas Restrepo
Enviado el: jueves, 25 de abril de 2002 14:12
Para: [EMAIL PROTECTED]
Asunto: Re: [DOTNET] MC++: string to System::String
Miguel,
> Sorry if you misunderstood me, but i�m not converting a LPCSTR, i�m
converting a
> std::string, from <string>.
Then just do
new String(myStdString.c_str());
--
Tomas Restrepo
[EMAIL PROTECTED]
You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.