Click here to Skip to main content
15,920,627 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: prohibit some character on edit box VC 6.0[solved] Pin
David Crow26-Sep-09 17:40
David Crow26-Sep-09 17:40 
QuestionVC or Turbo C 2.0 & Partition when empty OS Pin
tuan111125-Sep-09 18:10
tuan111125-Sep-09 18:10 
AnswerRe: VC or Turbo C 2.0 & Partition when empty OS Pin
Richard MacCutchan25-Sep-09 23:47
mveRichard MacCutchan25-Sep-09 23:47 
AnswerRe: VC or Turbo C 2.0 & Partition when empty OS Pin
CPallini26-Sep-09 11:29
mveCPallini26-Sep-09 11:29 
QuestionHandling DNA sequence data as text Pin
Er1cS25-Sep-09 12:18
Er1cS25-Sep-09 12:18 
AnswerRe: Handling DNA sequence data as text Pin
«_Superman_»25-Sep-09 16:38
professional«_Superman_»25-Sep-09 16:38 
GeneralRe: Handling DNA sequence data as text Pin
Er1cS25-Sep-09 18:22
Er1cS25-Sep-09 18:22 
Questionimport GUI MFC dll Pin
MrKBA25-Sep-09 11:08
MrKBA25-Sep-09 11:08 
AnswerRe: import GUI MFC dll Pin
Richard Andrew x6425-Sep-09 12:44
professionalRichard Andrew x6425-Sep-09 12:44 
GeneralRe: import GUI MFC dll Pin
MrKBA26-Sep-09 1:52
MrKBA26-Sep-09 1:52 
GeneralRe: import GUI MFC dll Pin
Richard Andrew x6426-Sep-09 5:57
professionalRichard Andrew x6426-Sep-09 5:57 
QuestionUp-Down control Pin
dipuks25-Sep-09 8:58
dipuks25-Sep-09 8:58 
QuestionRe: Up-Down control Pin
David Crow25-Sep-09 9:08
David Crow25-Sep-09 9:08 
AnswerRe: Up-Down control Pin
dipuks25-Sep-09 9:25
dipuks25-Sep-09 9:25 
QuestionRe: Up-Down control Pin
David Crow25-Sep-09 9:28
David Crow25-Sep-09 9:28 
AnswerRe: Up-Down control Pin
dipuks25-Sep-09 9:37
dipuks25-Sep-09 9:37 
QuestionRe: Up-Down control Pin
David Crow25-Sep-09 9:41
David Crow25-Sep-09 9:41 
AnswerRe: Up-Down control Pin
dipuks25-Sep-09 9:48
dipuks25-Sep-09 9:48 
AnswerRe: Up-Down control Pin
Rolf Kristensen26-Sep-09 7:39
Rolf Kristensen26-Sep-09 7:39 
QuestionRules for what you can/can't do inside DOC class serialization(loading) routine Pin
al250025-Sep-09 6:27
al250025-Sep-09 6:27 
AnswerRe: Rules for what you can/can't do inside DOC class serialization(loading) routine Pin
Iain Clarke, Warrior Programmer25-Sep-09 21:21
Iain Clarke, Warrior Programmer25-Sep-09 21:21 
QuestionFunction does not return String as wanted Pin
Tomicmanka25-Sep-09 6:26
Tomicmanka25-Sep-09 6:26 
AnswerRe: Function does not return String as wanted Pin
markkuk25-Sep-09 7:05
markkuk25-Sep-09 7:05 
QuestionRe: Function does not return String as wanted Pin
David Crow25-Sep-09 7:51
David Crow25-Sep-09 7:51 
AnswerRe: Function does not return String as wanted Pin
Tomicmanka25-Sep-09 8:47
Tomicmanka25-Sep-09 8:47 
Sorry mate, The text "free (pstrText);" was part of a larger program.

As I said I am very new (I have benn working on C++ for the last one week) so just bear with me.

I just want to know how to write a c++ function that accepts a string as parameter and return a string back to the main() function.

At this moment in time I want to convert a lowercase Surname to uppercase using a C++ function.

char* conv_str_to_upper (char* str_io)
{
int stringlength = strlen(str_io);

for (int i=0; i
str_io[i] = std::toupper(str_io[i]);
}
return (str_io);
}

The code above may be wrong, I just want to know how it can be done.

Thanks

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.