Click here to Skip to main content
16,015,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Starting - Restarting Pin
Sameer Maggon26-May-02 19:52
Sameer Maggon26-May-02 19:52 
GeneralRe: Application Starting - Restarting Pin
Nish Nishant26-May-02 19:59
sitebuilderNish Nishant26-May-02 19:59 
QuestionIDispatch* ? Pin
Abin26-May-02 19:30
Abin26-May-02 19:30 
GeneralAdding Buttons To Title Bar Pin
Joel Matthias26-May-02 19:05
Joel Matthias26-May-02 19:05 
GeneralRe: Adding Buttons To Title Bar Pin
Shog926-May-02 19:19
sitebuilderShog926-May-02 19:19 
GeneralRe: Adding Buttons To Title Bar Pin
aldeba27-May-02 6:36
aldeba27-May-02 6:36 
Generalwin32 API Pin
26-May-02 19:00
suss26-May-02 19:00 
Generallocating memory- easy(char[]) Pin
SilverShalkin26-May-02 17:42
SilverShalkin26-May-02 17:42 
if you declare the amount of info that you want to store in a char like...

char ID[10];

that would mean that id has 10 slots + \0; right?

now, if i would want to print out all the info from char ID... wouldnt i just..

cout << ID;?
and if you wrote:
cout << ID[2];

you would get the third memory slot, right?
why cant i set M_ID = ID? M_ID is [10] and so is ID.

bool ID::SetID(char ID[10])
{
M_ID = ID
return true;
}

i get an error when i put this in, and the only way i get rid of it is if i make:

ID[]; and within the [] i would have to have a number. but i want all of ID = M_ID.., what do i do? what do i put in the []?

also... if there is a good tutorial that teaches how to compare data, and all the little detail of do what im trying to do, please make note of it.

Thanks!

~SilverShalkin

Rose | [Rose]

ps... I started this message like 1-2 hours ago, and kept jumping back to my code and trying new things... so if the message is unclear about my mainpoint "question" just tell me, and i will refrase it in a more understandable way Smile | :)
GeneralRe: locating memory- easy(char[]) Pin
Michael Dunn26-May-02 18:18
sitebuilderMichael Dunn26-May-02 18:18 
GeneralRe: locating memory- easy(char[]) Pin
SilverShalkin26-May-02 18:16
SilverShalkin26-May-02 18:16 
GeneralRe: locating memory- easy(char[]) Pin
Alexandru Savescu26-May-02 21:53
Alexandru Savescu26-May-02 21:53 
GeneralCOM and MFC Pin
Chen Jiadong26-May-02 15:42
Chen Jiadong26-May-02 15:42 
GeneralRe: COM and MFC Pin
Michael Dunn26-May-02 18:14
sitebuilderMichael Dunn26-May-02 18:14 
GeneralRe: COM and MFC Pin
Chen Jiadong26-May-02 19:01
Chen Jiadong26-May-02 19:01 
GeneralRe: COM and MFC Pin
Michael Dunn26-May-02 19:33
sitebuilderMichael Dunn26-May-02 19:33 
GeneralRe: COM and MFC Pin
Chen Jiadong26-May-02 20:34
Chen Jiadong26-May-02 20:34 
Generalmenu item help->Help Topics... Pin
lucy26-May-02 15:09
lucy26-May-02 15:09 
GeneralEdit Box Question Pin
DanYELL26-May-02 14:09
DanYELL26-May-02 14:09 
GeneralRe: Edit Box Question Pin
Nish Nishant26-May-02 14:24
sitebuilderNish Nishant26-May-02 14:24 
GeneralRe: Edit Box Question Pin
Shog926-May-02 14:33
sitebuilderShog926-May-02 14:33 
GeneralRe: Edit Box Question Pin
Nish Nishant26-May-02 14:54
sitebuilderNish Nishant26-May-02 14:54 
GeneralRe: Edit Box Question Pin
Shog926-May-02 16:02
sitebuilderShog926-May-02 16:02 
GeneralRe: Edit Box Question Pin
Shog926-May-02 16:04
sitebuilderShog926-May-02 16:04 
GeneralRe: Edit Box Question Pin
DanYELL27-May-02 3:14
DanYELL27-May-02 3:14 
GeneralRe: Edit Box Question Pin
Shog927-May-02 8:05
sitebuilderShog927-May-02 8: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.