Trying to use Path::GetTempPath() causes error

  • Thread starter Thread starter AngryJ
  • Start date Start date
A

AngryJ

Guest
I have a managed c++/CLI project and am working in VS2019. When I enter the line:

String^ TempPath = System::IO::Path::GetTempPath();

I get the errors

"class "System::IO::Path" has no member "GetTempPathA"" and

"Error C2039 'GetTempPathA': is not a member of 'System::IO::Path'".

What is expanding my method call, and why is VS2019 'expanding' it to a method that doesn't exist?

Continue reading...
 
Back
Top