Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow can fix number of lines in multiline edit box? Pin
Le@rner9-Nov-10 22:16
Le@rner9-Nov-10 22:16 
AnswerRe: how can fix number of lines in multiline edit box? Pin
Code-o-mat9-Nov-10 23:00
Code-o-mat9-Nov-10 23:00 
AnswerRe: how can fix number of lines in multiline edit box? Pin
Adam Roderick J10-Nov-10 2:31
Adam Roderick J10-Nov-10 2:31 
GeneralRe: how can fix number of lines in multiline edit box? Pin
Le@rner10-Nov-10 17:43
Le@rner10-Nov-10 17:43 
Questionconverting decimal to whole number Pin
rezen859-Nov-10 21:11
rezen859-Nov-10 21:11 
AnswerRe: converting decimal to whole number Pin
Cedric Moonen9-Nov-10 21:25
Cedric Moonen9-Nov-10 21:25 
GeneralRe: converting decimal to whole number Pin
rezen859-Nov-10 22:18
rezen859-Nov-10 22:18 
QuestionPopulating Array Difficulty Pin
Mike Certini9-Nov-10 19:30
Mike Certini9-Nov-10 19:30 
I have built a program utilizing ADO to pull data from an Access Database. I am having problems taking this data which is formated as a _variant_t data type to a floating point array in C++. The following is the initial format of the array and the process that is attempting to populate this array. Can someone help me with a good source to learn about these conversions? Secondly, can someone help me with the proper code for the array so that it can be populated? At the bottom is the error message I am getting.

const int arraySize = 5000;
_variant_t OpenArr[arraySize];

ADODB::_RecordsetPtr recOpen = NULL;

while(!recOpen->EOFile)
{
record++;
Open = pOpenField->Value;
Open.ChangeType(VT_R4);
printf("Data_Open: %4.5f\n", Open.fltVal);
printf("Record: %d\n", record);
OpenArr[record]=recOpen->GetRows(-1,0);
recOpen->MoveNext( );
}

Data_Open: 1.41283
Record: 1
Error
Code = 800a0d5d
Code meaning = U
Source = ADODB.Recordset
Description = Application uses a value of the wrong type for the current operation.
QuestionRe: Populating Array Difficulty Pin
David Crow10-Nov-10 3:19
David Crow10-Nov-10 3:19 
AnswerRe: Populating Array Difficulty Pin
Mike Certini10-Nov-10 4:37
Mike Certini10-Nov-10 4:37 
GeneralRe: Populating Array Difficulty Pin
David Crow10-Nov-10 5:28
David Crow10-Nov-10 5:28 
QuestionSetup Issue Pin
ShilpiP9-Nov-10 19:01
ShilpiP9-Nov-10 19:01 
Questionbutton click not working Pin
Subrat Patnaik9-Nov-10 17:16
Subrat Patnaik9-Nov-10 17:16 
AnswerRe: button click not working Pin
Cool_Dev9-Nov-10 23:10
Cool_Dev9-Nov-10 23:10 
AnswerRe: button click not working Pin
David Crow10-Nov-10 3:10
David Crow10-Nov-10 3:10 
QuestionControl Panel EXE Updation Pin
Anil Kumar.Arvapalli9-Nov-10 16:23
Anil Kumar.Arvapalli9-Nov-10 16:23 
AnswerRe: Control Panel EXE Updation Pin
«_Superman_»9-Nov-10 16:32
professional«_Superman_»9-Nov-10 16:32 
QuestionRogue OnTimer Pin
Kyudos9-Nov-10 11:07
Kyudos9-Nov-10 11:07 
QuestionRe: Rogue OnTimer Pin
«_Superman_»9-Nov-10 15:33
professional«_Superman_»9-Nov-10 15:33 
AnswerRe: Rogue OnTimer Pin
Kyudos9-Nov-10 16:11
Kyudos9-Nov-10 16:11 
GeneralRe: Rogue OnTimer Pin
«_Superman_»9-Nov-10 16:21
professional«_Superman_»9-Nov-10 16:21 
GeneralRe: Rogue OnTimer Pin
Kyudos9-Nov-10 16:26
Kyudos9-Nov-10 16:26 
GeneralRe: Rogue OnTimer Pin
«_Superman_»9-Nov-10 16:29
professional«_Superman_»9-Nov-10 16:29 
QuestionPeform actions online Pin
DanYELL9-Nov-10 9:52
DanYELL9-Nov-10 9:52 
GeneralRe: Peform actions online Pin
David Crow9-Nov-10 10:00
David Crow9-Nov-10 10:00 

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.