Click here to Skip to main content
15,892,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Visual C++ Drag and Drop and get filename and complete path Pin
Nelek15-Dec-09 20:51
protectorNelek15-Dec-09 20:51 
QuestionSpacebar: Animating a Circle to move across the screen, instead of jumping Pin
Chidori-chan12-Dec-09 21:30
Chidori-chan12-Dec-09 21:30 
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 
I took a look at the MSDN page[^] and think it should be something like this
CFieldExchange fieldX;
LPCTSTR pszName = "ColName";
LPSTR prgStrVals[nRows];
long prgLengths[nRows];
for (int i = 0; i < nRows; ++i)
{
    prgStrVals[i] = (LPSTR)new char[256];
}
int nMaxLength = 256;

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

The prgStrVals and prgLengths fields are arrays that will be filled by the function, so you need to pre-allocate enough for the number of rows you are transferring. Each entry in prgStrVals is a pointer to a buffer that will hold the data for the appropriate row, so each of these buffers must be long enough to hold the longest data item. The maximum length of the items to be stored is indicated by the nMaxLength field.

[edit]Added the link to the MSDN entry[/edit]
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 
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 

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.