error C2039: 'GetTempFileNameA' : is not a member of 'System::IO::Path'

N

Nishant S

You can #undef GetTempFileName before this line. If you want to set its
value back, use #pragma push_macro/pop_macro

pragma push_macro("GetTempFileName ")
#undef GetTempFileName
System::String* outFile = System::IO::path::GetTempFileName();
pragma pop_macro("GetTempFileName ")
 
B

Bragadiru

Thank you very much.

Nishant S said:
You can #undef GetTempFileName before this line. If you want to set its
value back, use #pragma push_macro/pop_macro

pragma push_macro("GetTempFileName ")
#undef GetTempFileName
System::String* outFile = System::IO::path::GetTempFileName();
pragma pop_macro("GetTempFileName ")

--
Regards,
Nish [VC++ MVP]



Bragadiru said:
I tried to use :
System::String* outFile = System::IO::path::GetTempFileName();

but I get this compile error:

error C2039: 'GetTempFileNameA' : is not a member of 'System::IO::path'

I found this is a known bug
(http://support.microsoft.com/default.aspx?scid=kb;en-us;167730), fixed in
VC++ 2003.

There is a workaround in VC++ 2002 ? An example would be great.

Thnx for any advice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top