Click here to Skip to main content
16,004,974 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 8:52
Brent Lamborn13-Mar-03 8:52 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 9:03
Gary Kirkham13-Mar-03 9:03 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 9:13
Brent Lamborn13-Mar-03 9:13 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 9:08
Gary Kirkham13-Mar-03 9:08 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 11:06
Brent Lamborn13-Mar-03 11:06 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 11:10
Gary Kirkham13-Mar-03 11:10 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 11:19
Brent Lamborn13-Mar-03 11:19 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham13-Mar-03 11:40
Gary Kirkham13-Mar-03 11:40 
Should work... Run it in debug mode and check each value set by this call

student() wrote:
double* dblLabels = GetLabelVals();

make sure each value in dblLabels is set properly.

I ran the following on my machine at it worked perfectly

CStringArray strLabels;
strLabels.SetSize(26);

double arr[] = { 0 , 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
                 11, 12, 13, 14, 15, 16, 17, 18, 18, 20,
                 21, 22, 23, 26, 25 };


for (int i = 1; i < 26; i++)
{
    strLabels[i].Format("%.2f\n", arr[i]);
    AfxMessageBox(strLabels[i]);
}


Other than that I don't know what to tell you

Gary Kirkham

A working Program is one that has only unobserved bugs

I thought I wanted a career, turns out I just wanted paychecks
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn13-Mar-03 17:19
Brent Lamborn13-Mar-03 17:19 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham14-Mar-03 2:09
Gary Kirkham14-Mar-03 2:09 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham14-Mar-03 2:33
Gary Kirkham14-Mar-03 2:33 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Gary Kirkham14-Mar-03 2:35
Gary Kirkham14-Mar-03 2:35 
GeneralRe: Doubles to Strings for Edit Box Output Pin
Brent Lamborn15-Mar-03 10:37
Brent Lamborn15-Mar-03 10:37 
GeneralRe: Doubles to Strings for Edit Box Output Pin
TomKat14-Mar-03 15:07
TomKat14-Mar-03 15:07 
GeneralProxy Authentication (again) Pin
thowra13-Mar-03 5:07
thowra13-Mar-03 5:07 
GeneralRe: Proxy Authentication (again) Pin
thowra21-Mar-03 22:38
thowra21-Mar-03 22:38 
Generallittle question by a Win32 starter Pin
indiocolifa13-Mar-03 5:05
sussindiocolifa13-Mar-03 5:05 
GeneralRe: little question by a Win32 starter Pin
Maximilien13-Mar-03 5:20
Maximilien13-Mar-03 5:20 
QuestionMarching Ants? Pin
luedi13-Mar-03 4:37
luedi13-Mar-03 4:37 
Generalvirtual function for a CToolbar derived class Pin
ns13-Mar-03 4:17
ns13-Mar-03 4:17 
GeneralRe: virtual function for a CToolbar derived class Pin
Joseph Dempsey13-Mar-03 7:48
Joseph Dempsey13-Mar-03 7:48 
Generalthanks!! Pin
ns13-Mar-03 8:01
ns13-Mar-03 8:01 
GeneralPlace region outside dialog Pin
AWebDude13-Mar-03 4:14
AWebDude13-Mar-03 4:14 
GeneralRe: Place region outside dialog Pin
Joseph Dempsey13-Mar-03 7:56
Joseph Dempsey13-Mar-03 7:56 
GeneralRe: Place region outside dialog Pin
AWebDude13-Mar-03 8:06
AWebDude13-Mar-03 8:06 

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.