Click here to Skip to main content
14,266,228 members

C / C++ / MFC

 
GeneralRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Maximilien19-Dec-18 6:46
memberMaximilien19-Dec-18 6:46 
GeneralRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Richard MacCutchan19-Dec-18 21:56
protectorRichard MacCutchan19-Dec-18 21:56 
GeneralRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Maximilien20-Dec-18 2:04
memberMaximilien20-Dec-18 2:04 
GeneralRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Maximilien20-Dec-18 5:16
memberMaximilien20-Dec-18 5:16 
GeneralRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Richard MacCutchan20-Dec-18 6:06
protectorRichard MacCutchan20-Dec-18 6:06 
AnswerRe: PostMessage fails with ERROR_NOT_ENOUGH_QUOTA Pin
Randor 19-Dec-18 14:32
professional Randor 19-Dec-18 14:32 
QuestionMacro analysis - help wanted Pin
Vaclav_18-Dec-18 3:43
memberVaclav_18-Dec-18 3:43 
AnswerRe: Macro analysis - help wanted Pin
leon de boer18-Dec-18 6:03
memberleon de boer18-Dec-18 6:03 
What is to know it is obvious what it is and does .. it writes an SPI block command field index 1 (rx_buf), to the SPI driver.

I would also warn you that macro uses sizeof struct spi_ioc_transfer and it can not be used raw in a C++ program .. it will fail dramatically.

This is mandatory if you wish to use that header in C++ as that is a linux C base file.
extern "C" {
   #include <linux/spi/spidev.h>
}

The alternative is to change the header file, you did this dance earlier.

This is one of those things when you start mixing C++ and C, C is it's own language and is not 100% compatible with C++ which has gone it's own way with some syntax. They are getting less and less compatible and so the general recommendation is compile C files with a C compiler and bring them in at the link stage. Other than that take a lot of care with C header files.
In vino veritas


modified 18-Dec-18 12:19pm.

GeneralRe: Macro analysis - help wanted Pin
Vaclav_18-Dec-18 6:44
memberVaclav_18-Dec-18 6:44 
GeneralRe: Macro analysis - help wanted Pin
leon de boer18-Dec-18 7:47
memberleon de boer18-Dec-18 7:47 
GeneralRe: Macro analysis - help wanted Pin
Vaclav_18-Dec-18 13:30
memberVaclav_18-Dec-18 13:30 
SuggestionRe: Macro analysis - help wanted Pin
David Crow18-Dec-18 10:04
memberDavid Crow18-Dec-18 10:04 
GeneralRe: Macro analysis - help wanted Pin
Vaclav_18-Dec-18 13:32
memberVaclav_18-Dec-18 13:32 
QuestionPlacing the dialog bar Pin
manoharbalu17-Dec-18 23:12
membermanoharbalu17-Dec-18 23:12 
AnswerRe: Placing the dialog bar Pin
Richard MacCutchan17-Dec-18 23:48
protectorRichard MacCutchan17-Dec-18 23:48 
GeneralRe: Placing the dialog bar Pin
manoharbalu18-Dec-18 1:42
membermanoharbalu18-Dec-18 1:42 
GeneralRe: Placing the dialog bar Pin
Richard MacCutchan18-Dec-18 1:54
protectorRichard MacCutchan18-Dec-18 1:54 
GeneralRe: Placing the dialog bar Pin
manoharbalu18-Dec-18 1:59
membermanoharbalu18-Dec-18 1:59 
QuestionRe: Placing the dialog bar Pin
David Crow18-Dec-18 4:19
memberDavid Crow18-Dec-18 4:19 
GeneralRe: Placing the dialog bar Pin
Richard MacCutchan18-Dec-18 4:49
protectorRichard MacCutchan18-Dec-18 4:49 
GeneralRe: Placing the dialog bar Pin
Richard MacCutchan18-Dec-18 6:28
protectorRichard MacCutchan18-Dec-18 6:28 
GeneralRe: Placing the dialog bar Pin
manoharbalu18-Dec-18 22:55
membermanoharbalu18-Dec-18 22:55 
GeneralRe: Placing the dialog bar Pin
speedbump9919-Dec-18 0:18
memberspeedbump9919-Dec-18 0:18 
GeneralRe: Placing the dialog bar Pin
speedbump9919-Dec-18 1:44
memberspeedbump9919-Dec-18 1:44 
GeneralRe: Placing the dialog bar Pin
manoharbalu20-Dec-18 2:01
membermanoharbalu20-Dec-18 2:01 

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.