Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to reset the Combo Box to previous selection [modified] Pin
msr_codeproject26-Oct-10 19:36
msr_codeproject26-Oct-10 19:36 
AnswerRe: How to reset the Combo Box to previous selection Pin
CPallini26-Oct-10 21:50
mveCPallini26-Oct-10 21:50 
GeneralRe: How to reset the Combo Box to previous selection Pin
msr_codeproject26-Oct-10 22:09
msr_codeproject26-Oct-10 22:09 
GeneralRe: How to reset the Combo Box to previous selection Pin
CPallini26-Oct-10 22:18
mveCPallini26-Oct-10 22:18 
QuestionError Heap in allocate modeless . Pin
HTT9026-Oct-10 7:32
HTT9026-Oct-10 7:32 
QuestionRe: Error Heap in allocate modeless . Pin
David Crow26-Oct-10 7:51
David Crow26-Oct-10 7:51 
AnswerRe: Error Heap in allocate modeless . Pin
CPallini26-Oct-10 9:30
mveCPallini26-Oct-10 9:30 
GeneralRe: Error Heap in allocate modeless . Pin
HTT9026-Oct-10 16:21
HTT9026-Oct-10 16:21 
GeneralRe: Error Heap in allocate modeless . Pin
CPallini26-Oct-10 21:21
mveCPallini26-Oct-10 21:21 
GeneralRe: Error Heap in allocate modeless . Pin
HTT9026-Oct-10 22:03
HTT9026-Oct-10 22:03 
GeneralRe: Error Heap in allocate modeless . Pin
CPallini26-Oct-10 22:17
mveCPallini26-Oct-10 22:17 
GeneralRe: Error Heap in allocate modeless . Pin
HTT9026-Oct-10 22:42
HTT9026-Oct-10 22:42 
Questionchar *> string conversion , env[] Pin
ALLERSLIT26-Oct-10 7:12
ALLERSLIT26-Oct-10 7:12 
Hey,
Iam reading this book and Iam writing my own program aside.
Iam currently reading about some functions related to linux.

#include <stdio.h>
#include <iostream>

using namespace std;

int main(int argc,char *env[])
{
int i=0;
cout << env[i] << endl;
return 0;
}


This is the program, now how would I actually put the output of env[i] into a string?

In my own program Iam playing around with conversions and string editing and stuff, now I need to convert the output of env[i] into a string though, not sure how to do that.
Thankfull for any help, greetins Smile | :)
QuestionRe: char *> string conversion , env[] Pin
David Crow26-Oct-10 7:22
David Crow26-Oct-10 7:22 
AnswerRe: char *> string conversion , env[] Pin
ALLERSLIT26-Oct-10 7:38
ALLERSLIT26-Oct-10 7:38 
AnswerRe: char *> string conversion , env[] Pin
David Crow26-Oct-10 7:46
David Crow26-Oct-10 7:46 
GeneralRe: char *> string conversion , env[] Pin
ALLERSLIT26-Oct-10 7:50
ALLERSLIT26-Oct-10 7:50 
QuestionRe: char *> string conversion , env[] Pin
David Crow26-Oct-10 7:53
David Crow26-Oct-10 7:53 
AnswerRe: char *> string conversion , env[] Pin
ALLERSLIT26-Oct-10 8:16
ALLERSLIT26-Oct-10 8:16 
QuestionRe: char *> string conversion , env[] Pin
David Crow26-Oct-10 8:20
David Crow26-Oct-10 8:20 
GeneralRe: char *> string conversion , env[] Pin
CPallini26-Oct-10 9:28
mveCPallini26-Oct-10 9:28 
GeneralRe: char *> string conversion , env[] Pin
CPallini26-Oct-10 7:50
mveCPallini26-Oct-10 7:50 
GeneralRe: char *> string conversion , env[] Pin
Richard MacCutchan26-Oct-10 10:28
mveRichard MacCutchan26-Oct-10 10:28 
QuestionHow to unregister a windows service? Pin
Aseem Sharma26-Oct-10 6:48
Aseem Sharma26-Oct-10 6:48 
QuestionCross referencing resource ID between source code and resource file ? Pin
Maximilien26-Oct-10 4:15
Maximilien26-Oct-10 4:15 

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.