can GetTempPath be called in a COM dll which will be used in a web service

תשובה can GetTempPath be called in a COM dll which will be used in a web service

  • שבת 05 מאי 2012 07:56
     
     

    I'm developing a C++ COM dll which will be used by a web service. Somewhere in my code, I need to get windows temp path and generate some temp file there. I decided to use GetTempPath function to retrieve the path, but in the help page of this function it is mentioned that it applies to desktop apps only. I'm not sure whether I can use the function or not and if I should not use it, what's the alternative way for me to get windows temp folder path?

    Regards,

    Hamidreza Ghader

כל התגובות

  • שבת 05 מאי 2012 10:03
     
     תשובה

    yes, you can use it.

    "Desktop apps" means it's not intended for WinRT applications in Windows 8.

    As usual, the Requirements section gives more hints as to what OS supports each API.

    • סומן כתשובה על-ידי Hamidreza G שבת 05 מאי 2012 10:41
    •