Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer9-Oct-16 23:11
leon de boer9-Oct-16 23:11 
AnswerRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer9-Oct-16 21:42
leon de boer9-Oct-16 21:42 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Richard MacCutchan9-Oct-16 21:49
mveRichard MacCutchan9-Oct-16 21:49 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer9-Oct-16 23:23
leon de boer9-Oct-16 23:23 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Richard MacCutchan9-Oct-16 23:25
mveRichard MacCutchan9-Oct-16 23:25 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Vaclav_10-Oct-16 4:17
Vaclav_10-Oct-16 4:17 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer10-Oct-16 4:32
leon de boer10-Oct-16 4:32 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Vaclav_10-Oct-16 13:20
Vaclav_10-Oct-16 13:20 
The original code has ISR collecting the (video ) data and when it detects end of frame another function does the actual video output to the LCD.
I put the ISR code in one class and the output to LCD in another class.
Now both classes inherited from Print class so I can do code debugging etc.
There are other hardware inheritances - USB , SPI but that is all working.

That is how the compound inheritance came to be, and that is basically working.

The issue is the link between the ISR and LCD class.
I was hoping for another upper layer of class to be the controlling class, but that seems to be convoluted way to do it.
I think I have a better grasp on using function pointers and will try to just call from one class to another using pointers.

BTW the hardware interrupt is continuous and there are some checks in the actual interrupt handler and ISR functions making sure it is running and getting correct data / USB packages.

Thanks to the group I think I got the basics, now it is just a matter of organizing the puzzle.
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer10-Oct-16 17:02
leon de boer10-Oct-16 17:02 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Vaclav_11-Oct-16 7:01
Vaclav_11-Oct-16 7:01 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer11-Oct-16 17:26
leon de boer11-Oct-16 17:26 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Vaclav_12-Oct-16 14:42
Vaclav_12-Oct-16 14:42 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer12-Oct-16 17:09
leon de boer12-Oct-16 17:09 
QuestionMore basic C++ questions - may I ask? Pin
Vaclav_8-Oct-16 15:24
Vaclav_8-Oct-16 15:24 
AnswerRe: More basic C++ questions - may I ask? Pin
Midi_Mick8-Oct-16 15:52
professionalMidi_Mick8-Oct-16 15:52 
AnswerRe: More basic C++ questions - may I ask? Pin
Richard MacCutchan8-Oct-16 20:37
mveRichard MacCutchan8-Oct-16 20:37 
GeneralRe: More basic C++ questions - may I ask? Pin
Vaclav_9-Oct-16 6:20
Vaclav_9-Oct-16 6:20 
GeneralRe: More basic C++ questions - may I ask? Pin
Richard MacCutchan9-Oct-16 6:27
mveRichard MacCutchan9-Oct-16 6:27 
GeneralRe: More basic C++ questions - may I ask? Pin
Graham Breach9-Oct-16 21:46
Graham Breach9-Oct-16 21:46 
GeneralRe: More basic C++ questions - may I ask? Pin
Richard MacCutchan9-Oct-16 23:00
mveRichard MacCutchan9-Oct-16 23:00 
AnswerRe: More basic C++ questions - may I ask? Pin
Ratul Thakur10-Oct-16 21:42
Ratul Thakur10-Oct-16 21:42 
GeneralRe: More basic C++ questions - may I ask? Pin
David Crow11-Oct-16 6:23
David Crow11-Oct-16 6:23 
QuestionHow to initialize a CString array in MSVS C++ 2015 Pin
Member 94114717-Oct-16 8:36
Member 94114717-Oct-16 8:36 
AnswerRe: How to initialize a CString array in MSVS C++ 2015 Pin
jeron17-Oct-16 10:15
jeron17-Oct-16 10:15 
GeneralRe: How to initialize a CString array in MSVS C++ 2015 Pin
Member 941147111-Oct-16 8:48
Member 941147111-Oct-16 8:48 

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.