Click here to Skip to main content
15,915,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Compiler for DOS Pin
Mike Nordell30-Jun-02 3:39
Mike Nordell30-Jun-02 3:39 
GeneralRe: C++ Compiler for DOS Pin
Dominik Reichl30-Jun-02 3:43
Dominik Reichl30-Jun-02 3:43 
GeneralRe: C++ Compiler for DOS Pin
Alexandru Savescu30-Jun-02 22:25
Alexandru Savescu30-Jun-02 22:25 
GeneralRe: C++ Compiler for DOS Pin
#realJSOP1-Jul-02 5:18
professional#realJSOP1-Jul-02 5:18 
GeneralBitmap question ! Pin
Hadi Rezaee29-Jun-02 21:28
Hadi Rezaee29-Jun-02 21:28 
GeneralRe: Bitmap question ! Pin
Mike Nordell29-Jun-02 23:42
Mike Nordell29-Jun-02 23:42 
Questionwho knows format of jpg and gif files? Pin
includeh1029-Jun-02 16:18
includeh1029-Jun-02 16:18 
AnswerRe: who knows format of jpg and gif files? Pin
Jason Henderson29-Jun-02 17:28
Jason Henderson29-Jun-02 17:28 
AnswerRe: who knows format of jpg and gif files? Pin
Christian Graus29-Jun-02 18:20
protectorChristian Graus29-Jun-02 18:20 
AnswerRe: who knows format of jpg and gif files? Pin
Roger Allen1-Jul-02 0:50
Roger Allen1-Jul-02 0:50 
QuestionCBitmapButton?? Pin
turbo19529-Jun-02 16:14
turbo19529-Jun-02 16:14 
AnswerRe: CBitmapButton?? Pin
Christian Graus29-Jun-02 18:20
protectorChristian Graus29-Jun-02 18:20 
GeneralPlatform SDK downloads Pin
aldeba29-Jun-02 15:49
aldeba29-Jun-02 15:49 
GeneralRe: Platform SDK downloads Pin
Ancient Dragon29-Jun-02 16:23
Ancient Dragon29-Jun-02 16:23 
GeneralRe: Platform SDK downloads Pin
aldeba30-Jun-02 0:33
aldeba30-Jun-02 0:33 
QuestionIDE Line numbers? Pin
29-Jun-02 12:20
suss29-Jun-02 12:20 
AnswerRe: IDE Line numbers? Pin
Ancient Dragon29-Jun-02 13:03
Ancient Dragon29-Jun-02 13:03 
AnswerRe: IDE Line numbers? Pin
Michael Dunn29-Jun-02 15:16
sitebuilderMichael Dunn29-Jun-02 15:16 
GeneralDirect3D and MDI windows Pin
29-Jun-02 11:28
suss29-Jun-02 11:28 
GeneralRe: Direct3D and MDI windows Pin
Mike Nordell29-Jun-02 23:47
Mike Nordell29-Jun-02 23:47 
Questionhow to add toolbar on a Dialog Pin
Speedy29-Jun-02 10:47
Speedy29-Jun-02 10:47 
AnswerRe: how to add toolbar on a Dialog Pin
Steve L.29-Jun-02 13:08
Steve L.29-Jun-02 13:08 
GeneralCString Basics Pin
29-Jun-02 10:36
suss29-Jun-02 10:36 
Hello, I'll admit i'm new to C++ and visual studio. Most of my programming experience comes from c# and php.

That said, I know basic C++, C, that kind of stuff, and am trying to learn to use visual C++.

So what I set out to do is make a simple dialog application that would take a input from a Edit control, change it into it's ASCII value, and replace the message with its ASCII value in the edit box.

Here is how I planed on doing it:

Take input-- UpdateData(FALSE); //get the data into the variable
Create byte array to store the chars in. (unsure)
Cycle through the bytes (for loop)
Extract the ASCII values and put them into a int array (no idea, can I
cast in visual C++, ie: (int) byte)
Somehow cycle through the int array and put them into a Cstring (unsure)

then UpdateData(TRUE) and put it back up...

So my questions:
1) Am I going about this in an ok way
2) Could I have a example of how you would put a CString into a byte array (I keep getting annoying errors about various stuff).
3) How can i get the ASCII value of a byte and put it into a int variable?
4) How can I cycle through a int array and put the values into a Cstring

Another annoying thing to me is that when i try and do

CString str;
str = "hello"
int lengh;
lengh = str.GetLengh();

I get a error that 'GetLengh' is not a member of 'CString', though according to MSDN it is.


Thanks for the help!

GeneralRe: CString Basics Pin
Nish Nishant29-Jun-02 11:24
sitebuilderNish Nishant29-Jun-02 11:24 
GeneralRe: CString Basics Pin
29-Jun-02 12:05
suss29-Jun-02 12: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.