M
Michael Kremser
Hi NG!
In a managed C++ class, I have a function that expects a System::String
argument that specifies a file name. Now I want to use that filename for
CreateFile, but I don't know how to convert a System::String to a
LPCTSTR. (Yes, I know that I could use System::IO::StreamReader - I want
to do it that way anyway, just for testing purpose).
Can anyone give me a hint how to do this?
Thanks in advance!
Best regards,
Michael
In a managed C++ class, I have a function that expects a System::String
argument that specifies a file name. Now I want to use that filename for
CreateFile, but I don't know how to convert a System::String to a
LPCTSTR. (Yes, I know that I could use System::IO::StreamReader - I want
to do it that way anyway, just for testing purpose).
Can anyone give me a hint how to do this?
Thanks in advance!
Best regards,
Michael