Link to home
Start Free TrialLog in
Avatar of oliverUK
oliverUK

asked on

getting the value from a Cstring Array

My Code:-

CString ItimeStringTable[] =
{
     25MS,  50MS,  500MS,
     200MS,     300MS, 400MS,
     500MS,     600MS, 700MS,
     800MS, 900MS,     1S,            
};    

CString ArrayElement = ItimeStringTable[1];
TRACE("Element value is %s\n",ArrayElement);

Debug Output :-

Element value is 

How do I get the value in variable "ArrayElement" to be 50MS?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mayank S
Oliver,

Man, how did that compile?

Mayank.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tinchos
tinchos

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split points between AlexFM & Salte

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer