Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Spacebar: Animating a Circle to move across the screen, instead of jumping Pin
Cedric Moonen12-Dec-09 22:16
Cedric Moonen12-Dec-09 22:16 
GeneralRe: Spacebar: Animating a Circle to move across the screen, instead of jumping Pin
Chidori-chan13-Dec-09 8:32
Chidori-chan13-Dec-09 8:32 
QuestionUsing RFX_Text_Bulk Pin
Larry Mills Sr12-Dec-09 13:35
Larry Mills Sr12-Dec-09 13:35 
AnswerRe: Using RFX_Text_Bulk Pin
Richard MacCutchan12-Dec-09 23:12
mveRichard MacCutchan12-Dec-09 23:12 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr13-Dec-09 3:02
Larry Mills Sr13-Dec-09 3:02 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 3:18
mveRichard MacCutchan13-Dec-09 3:18 
GeneralRe: Using RFX_Text_Bulk [modified] Pin
Larry Mills Sr13-Dec-09 4:28
Larry Mills Sr13-Dec-09 4:28 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 4:50
mveRichard MacCutchan13-Dec-09 4:50 
Larry Mills Sr wrote:
Please excuse my ignorance


No excuse needed, you are merely trying to learn.

I think the following should do it:

CFieldExchange fieldX;       // this will probably be defined elsewhere
LPCTSTR pszName = "Recipe";  // column name [ or should it be "m_Instructions" ? ]
int nRows = ?;               // set this to the number of rows in the data source
int nMaxLength = 1024;       // max length of each row of data returned
LPSTR prgStrVals[nRows];     // the rows of data will be stored in these fields
long prgLengths[nRows];      // the length of the data stored in prgStrVals goes in these fields
// initialise the strings for storing the data
for (int i = 0; i < nRows; ++i)
{
    prgStrVals[i] = (LPSTR)new char[nMaxLength];
}

RFX_Text_Bulk(&fieldX, pszName, &prgStrVals, &prgLengths, nMaxLength);

pszName is the name of the column in the data source; I'm not sure which that should be, but you will. The array prgStrVals needs to be lare enough to accept all the rows of data from the source (I guess there is some way of finding this value) and each entry is a pointer to a buffer of at least 1024 characters, as set in the for loop. On return if successful each entry in prgStrVals should contain the text from the corresponding row, and each entry in prgLengths should contain the length of that data.
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr13-Dec-09 6:18
Larry Mills Sr13-Dec-09 6:18 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 6:47
mveRichard MacCutchan13-Dec-09 6:47 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr13-Dec-09 9:20
Larry Mills Sr13-Dec-09 9:20 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 9:48
mveRichard MacCutchan13-Dec-09 9:48 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan13-Dec-09 23:19
mveRichard MacCutchan13-Dec-09 23:19 
GeneralRe: Using RFX_Text_Bulk Pin
Larry Mills Sr14-Dec-09 0:56
Larry Mills Sr14-Dec-09 0:56 
GeneralRe: Using RFX_Text_Bulk Pin
Richard MacCutchan14-Dec-09 4:48
mveRichard MacCutchan14-Dec-09 4:48 
QuestionSDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
sharion12-Dec-09 7:36
sharion12-Dec-09 7:36 
AnswerRe: SDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
Cedric Moonen12-Dec-09 22:18
Cedric Moonen12-Dec-09 22:18 
GeneralRe: SDI app executes CFrameWnd::OnCreate throwing Invalid Address specified to RtlValidateHeap Pin
sharion13-Dec-09 5:48
sharion13-Dec-09 5:48 
QuestionI can't get MAC by GetAdaptersAddresses [modified] Pin
DavidBrother12-Dec-09 4:57
DavidBrother12-Dec-09 4:57 
AnswerRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 5:27
DavidBrother12-Dec-09 5:27 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
Richard MacCutchan12-Dec-09 6:06
mveRichard MacCutchan12-Dec-09 6:06 
AnswerRe: I can't get MAC by GetAdaptersAddresses Pin
Richard MacCutchan12-Dec-09 6:11
mveRichard MacCutchan12-Dec-09 6:11 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 16:34
DavidBrother12-Dec-09 16:34 
GeneralRe: I can't get MAC by GetAdaptersAddresses Pin
DavidBrother12-Dec-09 17:29
DavidBrother12-Dec-09 17:29 
QuestionTAPI send data Pin
cmos12-Dec-09 2:12
cmos12-Dec-09 2:12 

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.