Click here to Skip to main content
15,794,978 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: initial a string why this new string has strange character at begin Pin
Perry Holman27-Apr-09 23:23
Perry Holman27-Apr-09 23:23 
QuestionRe: initial a string why this new string has strange character at begin Pin
CPallini27-Apr-09 23:31
mveCPallini27-Apr-09 23:31 
QuestionFelxGrid "help me" [modified] Pin
Benjamin Bruno27-Apr-09 21:54
Benjamin Bruno27-Apr-09 21:54 
AnswerRe: FelxGrid "help me" Pin
Code-o-mat28-Apr-09 0:02
Code-o-mat28-Apr-09 0:02 
QuestionHow to Read a User/System Environment Variable Using c++ Pin
Mogaambo27-Apr-09 21:50
Mogaambo27-Apr-09 21:50 
AnswerRe: How to Read a User/System Environment Variable Using c++ Pin
Murugesan G27-Apr-09 22:07
Murugesan G27-Apr-09 22:07 
GeneralRe: How to Read a User/System Environment Variable Using c++ Pin
Stephen Hewitt28-Apr-09 1:11
Stephen Hewitt28-Apr-09 1:11 
AnswerRe: How to Read a User/System Environment Variable Using c++ Pin
Michael Schubert27-Apr-09 22:13
Michael Schubert27-Apr-09 22:13 
One minute of googling turned up this code:
#include <stdio.h>
#include <stdlib.h>
extern char**_environ;
 
int main(int argc, char *argv[], char *envp[])
{
  char **next = _environ;
  
  while (*next) 
  {
    printf("%s\n", *next);
    next++;
  }
  return 0;
}</stdlib.h></stdio.h>


If you want to get the value of a specific variable you can use GetEnvironmentVariable()
GeneralRe: How to Read a User/System Environment Variable Using c++ Pin
Mogaambo27-Apr-09 23:22
Mogaambo27-Apr-09 23:22 
AnswerRe: How to Read a User/System Environment Variable Using c++ Pin
V K 227-Apr-09 22:43
V K 227-Apr-09 22:43 
GeneralRe: How to Read a User/System Environment Variable Using c++ Pin
Michael Schubert27-Apr-09 22:50
Michael Schubert27-Apr-09 22:50 
QuestionHow to clean up an object of CMapStringtoString Pin
V K 227-Apr-09 21:40
V K 227-Apr-09 21:40 
AnswerRe: How to clean up an object of CMapStringtoString Pin
Rajkumar R27-Apr-09 22:30
Rajkumar R27-Apr-09 22:30 
QuestionWinCe Screen shot of windows Pin
vijaywithu27-Apr-09 21:29
vijaywithu27-Apr-09 21:29 
AnswerRe: WinCe Screen shot of windows Pin
V K 227-Apr-09 21:47
V K 227-Apr-09 21:47 
AnswerRe: WinCe Screen shot of windows Pin
Rajkumar R27-Apr-09 21:50
Rajkumar R27-Apr-09 21:50 
QuestionHow to add images in visual C++ Library Files Pin
Sakthi.Gs :-)27-Apr-09 21:04
Sakthi.Gs :-)27-Apr-09 21:04 
AnswerRe: How to add images in visual C++ Library Files Pin
KarstenK27-Apr-09 23:50
mveKarstenK27-Apr-09 23:50 
QuestionHow to get the handles of all the windows opened in wince? Pin
ujjawal kumar27-Apr-09 19:59
ujjawal kumar27-Apr-09 19:59 
AnswerRe: How to get the handles of all the windows opened in wince? Pin
Rajkumar R27-Apr-09 20:43
Rajkumar R27-Apr-09 20:43 
GeneralRe: How to get the handles of all the windows opened in wince? Pin
ujjawal kumar27-Apr-09 22:07
ujjawal kumar27-Apr-09 22:07 
GeneralRe: How to get the handles of all the windows opened in wince? Pin
Rajkumar R28-Apr-09 1:52
Rajkumar R28-Apr-09 1:52 
Questionsscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
xzing27-Apr-09 14:37
xzing27-Apr-09 14:37 
AnswerRe: sscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
Stuart Dootson27-Apr-09 14:49
professionalStuart Dootson27-Apr-09 14:49 
AnswerRe: sscanf: cannot convert parameter 1 'LPTSTR' to 'const char *' Pin
CPallini27-Apr-09 23:05
mveCPallini27-Apr-09 23:05 

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.