Click here to Skip to main content
15,887,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DllMain safety Pin
«_Superman_»25-Nov-14 18:51
professional«_Superman_»25-Nov-14 18:51 
GeneralRe: DllMain safety Pin
Richard Andrew x6428-Nov-14 8:30
professionalRichard Andrew x6428-Nov-14 8:30 
Questionc++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037225-Nov-14 9:46
Member 1123037225-Nov-14 9:46 
SuggestionRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
David Crow25-Nov-14 16:30
David Crow25-Nov-14 16:30 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037226-Nov-14 1:15
Member 1123037226-Nov-14 1:15 
AnswerRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Richard MacCutchan25-Nov-14 22:17
mveRichard MacCutchan25-Nov-14 22:17 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037226-Nov-14 1:13
Member 1123037226-Nov-14 1:13 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Richard MacCutchan26-Nov-14 2:46
mveRichard MacCutchan26-Nov-14 2:46 
My first suggestion would be: "don't write compound statements like that". As you can see they are almost impossible to figure out when they go wrong. Use interim values so you can check each stage of the code, like:
C#
string dataReturn = dbdataset->Columns["DataReturn"]; // assuming this item is a string value
double doubleValue = System::Convert::ToDouble(dataReturn); // convert to double, but check for errors
double squareRoot = sqrt(doubleValue);
lblvol->Text = Convert::ToString(squareRoot);

Easier and clearer, and simple to step through with the debugger when errors occur.
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037226-Nov-14 3:17
Member 1123037226-Nov-14 3:17 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Richard MacCutchan26-Nov-14 3:20
mveRichard MacCutchan26-Nov-14 3:20 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037226-Nov-14 3:44
Member 1123037226-Nov-14 3:44 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Richard MacCutchan26-Nov-14 4:11
mveRichard MacCutchan26-Nov-14 4:11 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037226-Nov-14 9:06
Member 1123037226-Nov-14 9:06 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Richard MacCutchan26-Nov-14 9:50
mveRichard MacCutchan26-Nov-14 9:50 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037226-Nov-14 23:23
Member 1123037226-Nov-14 23:23 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Richard MacCutchan27-Nov-14 0:02
mveRichard MacCutchan27-Nov-14 0:02 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037227-Nov-14 1:19
Member 1123037227-Nov-14 1:19 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Richard MacCutchan27-Nov-14 1:33
mveRichard MacCutchan27-Nov-14 1:33 
GeneralRe: c++ Windows Form app: How to grant public access to DataTable object? Pin
Member 1123037227-Nov-14 2:12
Member 1123037227-Nov-14 2:12 
QuestionFormat int in C Pin
Member 1056002225-Nov-14 4:47
Member 1056002225-Nov-14 4:47 
AnswerRe: Format int in C Pin
Albert Holguin25-Nov-14 5:01
professionalAlbert Holguin25-Nov-14 5:01 
QuestionRe: Format int in C Pin
David Crow25-Nov-14 16:34
David Crow25-Nov-14 16:34 
AnswerRe: Format int in C Pin
Kornfeld Eliyahu Peter25-Nov-14 22:49
professionalKornfeld Eliyahu Peter25-Nov-14 22:49 
GeneralPerform operations on c++ DataTable Pin
Member 1123037223-Nov-14 12:27
Member 1123037223-Nov-14 12:27 
GeneralRe: Perform operations on c++ DataTable Pin
PIEBALDconsult23-Nov-14 12:36
mvePIEBALDconsult23-Nov-14 12:36 

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.