Click here to Skip to main content
15,904,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConverting %SystemRoot% to directory Pin
RYU^^15-Jun-05 19:41
RYU^^15-Jun-05 19:41 
GeneralRe: Converting %SystemRoot% to directory Pin
RYU^^15-Jun-05 21:05
RYU^^15-Jun-05 21:05 
Generalconnection to ODBC Pin
Anonymous15-Jun-05 19:33
Anonymous15-Jun-05 19:33 
GeneralRe: connection to ODBC Pin
David Crow16-Jun-05 3:50
David Crow16-Jun-05 3:50 
GeneralLost keys when using CHtmlView class Pin
sangdeuk15-Jun-05 19:11
sangdeuk15-Jun-05 19:11 
GeneralRe: Lost keys when using CHtmlView class Pin
Steve Thresher16-Jun-05 2:28
Steve Thresher16-Jun-05 2:28 
GeneralRe: Lost keys when using CHtmlView class Pin
sangdeuk16-Jun-05 21:24
sangdeuk16-Jun-05 21:24 
GeneralGetTempPath(...) API help... Pin
RYU^^15-Jun-05 18:15
RYU^^15-Jun-05 18:15 
Hi Master,

I need to get the environment Temporary Path (TMP/TEMP). I look at the API function and it gaves me two options:
1. using GetEnvironmentVariable(...)
2. using GetTempPath(...)

However, both of this function will return the TMP/TEMP value of User Variables instead of System Variables.

How do I retrieve both User Variables and System Variables TEMP value?

Thanks for any help in advance...

Cheers Smile | :)

PS. To get the environment variables:
   - Right Click on "My Computer"
   - Click on "Advanced" Tab
   - Click on "Environment Variable"
   - You will see that TMP/TEMP belong to two sections (User Variables and System Variables).

GeneralRe: GetTempPath(...) API help... Pin
Nilesh K.15-Jun-05 18:37
Nilesh K.15-Jun-05 18:37 
GeneralRe: GetTempPath(...) API help... Pin
RYU^^15-Jun-05 19:02
RYU^^15-Jun-05 19:02 
GeneralRe: GetTempPath(...) API help... Pin
Nilesh K.15-Jun-05 19:07
Nilesh K.15-Jun-05 19:07 
GeneralRe: GetTempPath(...) API help... Pin
David Crow16-Jun-05 3:59
David Crow16-Jun-05 3:59 
GeneralMAC address Pin
ask_you15-Jun-05 18:05
ask_you15-Jun-05 18:05 
GeneralRe: MAC address Pin
Nilesh K.15-Jun-05 18:44
Nilesh K.15-Jun-05 18:44 
GeneralRe: MAC address Pin
geo_m15-Jun-05 18:48
geo_m15-Jun-05 18:48 
GeneralDrawText Function problem Pin
Sudhir Mangla15-Jun-05 17:53
professionalSudhir Mangla15-Jun-05 17:53 
GeneralRe: DrawText Function problem Pin
User 58385216-Jun-05 2:19
User 58385216-Jun-05 2:19 
GeneralIcon on TabCtrl Pin
LiYS15-Jun-05 17:45
LiYS15-Jun-05 17:45 
GeneralMFC app failure to boot up in Windows XP Pin
D_code_writer15-Jun-05 17:26
D_code_writer15-Jun-05 17:26 
GeneralRe: MFC app failure to boot up in Windows XP Pin
Blake Miller16-Jun-05 5:26
Blake Miller16-Jun-05 5:26 
GeneralShow WS_CHILD Dialog as modal dialog (popup) Pin
AnTri15-Jun-05 12:50
AnTri15-Jun-05 12:50 
GeneralMFC Overview Pin
E Dyot15-Jun-05 9:52
E Dyot15-Jun-05 9:52 
GeneralRe: MFC Overview Pin
David Crow15-Jun-05 10:17
David Crow15-Jun-05 10:17 
GeneralRe: MFC Overview Pin
PJ Arends15-Jun-05 10:30
professionalPJ Arends15-Jun-05 10:30 
GeneralRe: MFC Overview Pin
E Dyot15-Jun-05 13:17
E Dyot15-Jun-05 13:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.