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

C / C++ / MFC

 
GeneralRe: Reading uncompressed AVI file frame by frame into raw memory buffer? Pin
Kiran Satish23-Jul-15 6:12
Kiran Satish23-Jul-15 6:12 
GeneralRe: Reading uncompressed AVI file frame by frame into raw memory buffer? Pin
Daniel Pfeffer23-Jul-15 6:41
professionalDaniel Pfeffer23-Jul-15 6:41 
GeneralRe: Reading uncompressed AVI file frame by frame into raw memory buffer? Pin
Kiran Satish23-Jul-15 14:42
Kiran Satish23-Jul-15 14:42 
AnswerAssigning data to int array using pointers Pin
Vaclav_22-Jul-15 14:13
Vaclav_22-Jul-15 14:13 
GeneralRe: Assigning data to int array using pointers Pin
Richard Andrew x6422-Jul-15 15:30
professionalRichard Andrew x6422-Jul-15 15:30 
GeneralRe: Assigning data to int array using pointers Pin
Vaclav_23-Jul-15 3:45
Vaclav_23-Jul-15 3:45 
GeneralRe: Assigning data to int array using pointers Pin
Richard MacCutchan22-Jul-15 21:33
mveRichard MacCutchan22-Jul-15 21:33 
GeneralRe: Assigning data to int array using pointers Pin
Vaclav_23-Jul-15 4:38
Vaclav_23-Jul-15 4:38 
I have modified the 3 position in the int array to ASCII representation and it worked.
I do not understand why it does not work with int 0 thru 9 in 3rd position.
I have included the database read and that is totally bogus when it fails.

I still do not understand what the sizeof(iRecordIndex) is telling me.

Modifying the iRecordIndex ( adding to it ) does not have any effects.
The record has been initialized - this is first time I am using it and it contains 5 ints and rest of it is all zeroes.
The iRecordIndex is 4 during this test.

PS I had the end test in for loop wrong, but the 3rd index value was still printing wrong on LCD.


<pre lang="c++"></pre>

//iRecord[iRecordIndex]
//iRecordIndex += 3;
int iField[32] = {}; // will need to reinitialize

int *pCarrier[sizeof(iRecordIndex)]; // ponter to field
for (i = 0; i != sizeof(iRecordIndex)+ 1 ; i++)
{
pCarrier[i] = &iRecord[i]; // assign data to pointer
lcd_i2c.setCursor(0, 0);
lcd_i2c.print("Index " );
lcd_i2c.print(i);
//lcd_i2c.print(pCarrier );
lcd_i2c.setCursor(0, 1);
lcd_i2c.print((char) iRecord[i] );
lcd_i2c.setCursor(0, 2);
lcd_i2c.print(iRecord[i] );
lcd_i2c.print(" ");

lcd_i2c.print(*pCarrier[i] );
delay(2*DELAY);
}


lcd_i2c.clear();
lcd_i2c.print("Database " );
lcd_i2c.setCursor(0, 1);
for (i = 0; i != sizeof(iRecordIndex) + 1 ; i++)
{
lcd_i2c.print((int)*pCarrier[i] );
delay(DELAY);
}
GeneralRe: Assigning data to int array using pointers Pin
Richard Andrew x6423-Jul-15 5:17
professionalRichard Andrew x6423-Jul-15 5:17 
GeneralRe: Assigning data to int array using pointers Pin
Vaclav_23-Jul-15 6:37
Vaclav_23-Jul-15 6:37 
GeneralRe: Assigning data to int array using pointers Pin
Arthur V. Ratz13-Aug-15 19:41
professionalArthur V. Ratz13-Aug-15 19:41 
Questionhow to use d following sha1 zip file Pin
Member 1185569722-Jul-15 7:07
Member 1185569722-Jul-15 7:07 
AnswerRe: how to use d following sha1 zip file Pin
jeron122-Jul-15 7:58
jeron122-Jul-15 7:58 
Question[SOLVED] VC++ 2013 Ultimate IDE is very slow Pin
AmbiguousName22-Jul-15 1:12
AmbiguousName22-Jul-15 1:12 
AnswerRe: VC++ 2013 Ultimate IDE is very slow Pin
CPallini22-Jul-15 1:40
mveCPallini22-Jul-15 1:40 
AnswerRe: VC++ 2013 Ultimate IDE is very slow Pin
Richard MacCutchan22-Jul-15 2:01
mveRichard MacCutchan22-Jul-15 2:01 
GeneralRe: VC++ 2013 Ultimate IDE is very slow Pin
AmbiguousName22-Jul-15 2:52
AmbiguousName22-Jul-15 2:52 
GeneralRe: VC++ 2013 Ultimate IDE is very slow Pin
Wes Aday22-Jul-15 3:01
professionalWes Aday22-Jul-15 3:01 
QuestionPsola python implementation Pin
BatPi20-Jul-15 20:46
professionalBatPi20-Jul-15 20:46 
AnswerRe: Psola python implementation Pin
David Crow21-Jul-15 1:57
David Crow21-Jul-15 1:57 
QuestionRe: Psola python implementation Pin
CPallini21-Jul-15 1:59
mveCPallini21-Jul-15 1:59 
QuestionActivating a Window Pin
Member 1143293519-Jul-15 15:42
Member 1143293519-Jul-15 15:42 
AnswerRe: Activating a Window Pin
Richard MacCutchan19-Jul-15 21:48
mveRichard MacCutchan19-Jul-15 21:48 
QuestionIs it possible to get Vb control information (properties) using .Net remoting Pin
Member 1108564716-Jul-15 20:45
Member 1108564716-Jul-15 20:45 
QuestionRe: Is it possible to get Vb control information (properties) using .Net remoting Pin
Richard MacCutchan17-Jul-15 3:27
mveRichard MacCutchan17-Jul-15 3:27 

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.