Click here to Skip to main content
15,890,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStore array into buffer Pin
Ivoryping16-Jan-04 20:37
Ivoryping16-Jan-04 20:37 
Generalcode Pin
shanmuk16-Jan-04 19:20
shanmuk16-Jan-04 19:20 
GeneralRe: code Pin
User 665817-Jan-04 0:54
User 665817-Jan-04 0:54 
GeneralQ/A Visual C++ Program Wanted Pin
Michael Hinton16-Jan-04 19:10
Michael Hinton16-Jan-04 19:10 
Generalabout the CompltionPort Pin
maomc197816-Jan-04 18:54
maomc197816-Jan-04 18:54 
GeneralRe: about the CompltionPort Pin
l a u r e n17-Jan-04 7:57
l a u r e n17-Jan-04 7:57 
GeneralRe: about the CompltionPort Pin
maomc197817-Jan-04 15:59
maomc197817-Jan-04 15:59 
GeneralFinding Windows Directory Pin
shultas16-Jan-04 18:27
shultas16-Jan-04 18:27 
Hey all.

Just wondering, what would be the best way to find out what the user's windows directory is? (e.g, sometimes its c:\winnt, other times c:\windows, or whatever other ideas the user decides to come up with).

I want to be able to call (HH.EXE) which resides in the users system directory to launch my HtmlHelp files. I realize that I can simply call the .CHM file with shellexecute and that will launch it as long as the file type has been defined. But I want to be on the safe side in case that file type is not defined.

I preferably do not want to have to get the windows directory by accessing the environment variable "windir", but if that is the best way about it, I guess it'll suffice! If so, can someone tell me how to go about accessing this environment variable ... or if there is a better way, enlighten me?

Thanks

Shultas
GeneralRe: Finding Windows Directory Pin
Garth J Lancaster16-Jan-04 18:56
professionalGarth J Lancaster16-Jan-04 18:56 
GeneralReply #2 ... (hmmm) Pin
Garth J Lancaster16-Jan-04 19:02
professionalGarth J Lancaster16-Jan-04 19:02 
GeneralRe: Finding Windows Directory Pin
Brian D16-Jan-04 21:51
Brian D16-Jan-04 21:51 
GeneralTotal noob question Pin
georgiek5016-Jan-04 14:33
georgiek5016-Jan-04 14:33 
GeneralRe: Total noob question Pin
Michael Dunn16-Jan-04 14:45
sitebuilderMichael Dunn16-Jan-04 14:45 
GeneralRe: Total noob question Pin
georgiek5017-Jan-04 5:46
georgiek5017-Jan-04 5:46 
GeneralRe: Total noob question Pin
Michael Dunn17-Jan-04 6:20
sitebuilderMichael Dunn17-Jan-04 6:20 
GeneralRe: Total noob question Pin
georgiek5017-Jan-04 7:48
georgiek5017-Jan-04 7:48 
GeneralRe: Total noob question Pin
Andrew Walker16-Jan-04 19:13
Andrew Walker16-Jan-04 19:13 
Generalproblem with sending packet from client to server Pin
chirag_chauhan16-Jan-04 14:04
chirag_chauhan16-Jan-04 14:04 
GeneralRe: problem with sending packet from client to server Pin
valikac17-Jan-04 14:42
valikac17-Jan-04 14:42 
Generalfrom Jet to MSDE Pin
halblonious16-Jan-04 12:34
halblonious16-Jan-04 12:34 
GeneralRe: from Jet to MSDE Pin
l a u r e n16-Jan-04 14:05
l a u r e n16-Jan-04 14:05 
GeneralRe: from Jet to MSDE Pin
Roger Wright16-Jan-04 16:56
professionalRoger Wright16-Jan-04 16:56 
GeneralRe: from Jet to MSDE Pin
Jeremy Falcon17-Jan-04 5:23
professionalJeremy Falcon17-Jan-04 5:23 
QuestionHow to use setwindowpos with MDI Pin
vancouver77716-Jan-04 11:34
vancouver77716-Jan-04 11:34 
AnswerRe: How to use setwindowpos with MDI Pin
vancouver77719-Jan-04 6:25
vancouver77719-Jan-04 6:25 

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.