Click here to Skip to main content
14,602,858 members

C / C++ / MFC

 
GeneralRe: Newbie Question: C vs C++ Pin
markkuk20-Dec-03 12:08
Membermarkkuk20-Dec-03 12:08 
GeneralRe: Newbie Question: C vs C++ Pin
John R. Shaw20-Dec-03 16:19
MemberJohn R. Shaw20-Dec-03 16:19 
GeneralRe: Newbie Question: C vs C++ Pin
Anonymous20-Dec-03 18:25
MemberAnonymous20-Dec-03 18:25 
GeneralRe: Newbie Question: C vs C++ Pin
ZoogieZork20-Dec-03 19:50
MemberZoogieZork20-Dec-03 19:50 
GeneralRe: Newbie Question: C vs C++ Pin
John M. Drescher21-Dec-03 7:32
MemberJohn M. Drescher21-Dec-03 7:32 
GeneralRe: Newbie Question: C vs C++ Pin
tguzella22-Dec-03 5:00
Membertguzella22-Dec-03 5:00 
GeneralRe: Newbie Question: C vs C++ Pin
John M. Drescher22-Dec-03 6:33
MemberJohn M. Drescher22-Dec-03 6:33 
Generalgetting Program Files path Pin
Amit Dey20-Dec-03 7:21
MemberAmit Dey20-Dec-03 7:21 
how do I get the path to what on my system is C:\Program Files?

I'm looking up the value of %PROGRAMFILES% currently but this might not be defined on every system.

<br />
TCHAR szPath[MAX_PATH + 1];<br />
ExpandEnvironmentStrings("%PROGRAMFILES%",szPath,MAX_PATH);<br />


any alternatives? Do I have to lookup some reg key?

Thanks.


Hush,hush...
thought I heard you call my name now.

Kula Shaker.

Amit Dey

Latest articles at CP -
Writing Word addins
Office addin


GeneralRe: getting Program Files path Pin
Michael Dunn20-Dec-03 7:36
sitebuilderMichael Dunn20-Dec-03 7:36 
GeneralRe: getting Program Files path Pin
Code4Food20-Dec-03 12:31
MemberCode4Food20-Dec-03 12:31 
GeneralRe: getting Program Files path Pin
John M. Drescher21-Dec-03 4:34
MemberJohn M. Drescher21-Dec-03 4:34 
GeneralDisplaying international strings Pin
Hyien20-Dec-03 7:06
MemberHyien20-Dec-03 7:06 
GeneralRe: Displaying international strings Pin
John R. Shaw20-Dec-03 16:34
MemberJohn R. Shaw20-Dec-03 16:34 
GeneralOwner draw combo box showing big size Pin
abcdefhgijklmnopq20-Dec-03 7:05
Memberabcdefhgijklmnopq20-Dec-03 7:05 
Generalmatlab C++ , help ~! Pin
Vincent Sim20-Dec-03 7:05
MemberVincent Sim20-Dec-03 7:05 
GeneralChanging the Look and Feel of the Window Pin
AzfarKhan20-Dec-03 6:37
MemberAzfarKhan20-Dec-03 6:37 
GeneralRe: Changing the Look and Feel of the Window Pin
Jörgen Sigvardsson20-Dec-03 6:39
MemberJörgen Sigvardsson20-Dec-03 6:39 
GeneralKeyDown message Pin
Atlence20-Dec-03 3:30
MemberAtlence20-Dec-03 3:30 
GeneralRe: KeyDown message Pin
Brad Bruce20-Dec-03 3:57
MemberBrad Bruce20-Dec-03 3:57 
GeneralRe: KeyDown message Pin
Atlence20-Dec-03 4:22
MemberAtlence20-Dec-03 4:22 
GeneralSound Application Pin
M.Joshi20-Dec-03 2:41
MemberM.Joshi20-Dec-03 2:41 
GeneralRe: Sound Application Pin
Jörgen Sigvardsson20-Dec-03 6:40
MemberJörgen Sigvardsson20-Dec-03 6:40 
QuestionSaving a file that has been received form another PC? Pin
Semnanian20-Dec-03 2:37
MemberSemnanian20-Dec-03 2:37 
AnswerRe: Saving a file that has been received form another PC? Pin
Monty220-Dec-03 2:42
MemberMonty220-Dec-03 2:42 
AnswerRe: Saving a file that has been received form another PC? Pin
valikac20-Dec-03 6:01
Membervalikac20-Dec-03 6:01 

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.