Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to use message queue in windows Pin
Albert Holguin1-Dec-14 3:59
professionalAlbert Holguin1-Dec-14 3:59 
QuestionImageHlp.h and DbgHelp.h in the same program Pin
Richard Andrew x6428-Nov-14 8:33
professionalRichard Andrew x6428-Nov-14 8:33 
AnswerRe: ImageHlp.h and DbgHelp.h in the same program Pin
CPallini29-Nov-14 0:04
mveCPallini29-Nov-14 0:04 
QuestionDllMain safety Pin
Richard Andrew x6425-Nov-14 11:09
professionalRichard Andrew x6425-Nov-14 11:09 
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 

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.