Click here to Skip to main content
15,896,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is it a good practice to use continue Pin
H.Brydon12-Apr-13 11:48
professionalH.Brydon12-Apr-13 11:48 
GeneralRe: Is it a good practice to use continue Pin
shailesh9108212-Apr-13 22:27
shailesh9108212-Apr-13 22:27 
AnswerRe: Is it a good practice to use continue Pin
Stefan_Lang18-Apr-13 5:13
Stefan_Lang18-Apr-13 5:13 
QuestionBindToObject fails - DirectShow remote graph access Pin
Vaclav_11-Apr-13 8:27
Vaclav_11-Apr-13 8:27 
QuestionRe: BindToObject fails - DirectShow remote graph access Pin
Richard MacCutchan11-Apr-13 21:47
mveRichard MacCutchan11-Apr-13 21:47 
AnswerRe: BindToObject fails - DirectShow remote graph access Pin
Vaclav_12-Apr-13 4:32
Vaclav_12-Apr-13 4:32 
GeneralRe: BindToObject fails - DirectShow remote graph access Pin
Richard MacCutchan12-Apr-13 4:58
mveRichard MacCutchan12-Apr-13 4:58 
QuestionGetLastInputInfo getting system wide idle info Pin
Donguy197611-Apr-13 6:52
Donguy197611-Apr-13 6:52 
AnswerRe: GetLastInputInfo getting system wide idle info Pin
jeron111-Apr-13 7:31
jeron111-Apr-13 7:31 
Question[VC++ and XAML] Keydown event bug for metro app programming Pin
Member 997974310-Apr-13 19:35
professionalMember 997974310-Apr-13 19:35 
GeneralRe: [VC++ and XAML] Keydown event bug for metro app programming Pin
enhzflep10-Apr-13 21:15
enhzflep10-Apr-13 21:15 
AnswerRe: [VC++ and XAML] Keydown event bug for metro app programming Pin
dusty_dex11-Apr-13 0:49
dusty_dex11-Apr-13 0:49 
Question"Creating variable" at runtime - message decoding Pin
HellMaster[cz]10-Apr-13 19:03
HellMaster[cz]10-Apr-13 19:03 
AnswerRe: "Creating variable" at runtime - message decoding Pin
Richard MacCutchan10-Apr-13 21:41
mveRichard MacCutchan10-Apr-13 21:41 
GeneralRe: "Creating variable" at runtime - message decoding Pin
HellMaster[cz]10-Apr-13 22:10
HellMaster[cz]10-Apr-13 22:10 
GeneralRe: "Creating variable" at runtime - message decoding Pin
Richard MacCutchan10-Apr-13 22:34
mveRichard MacCutchan10-Apr-13 22:34 
GeneralRe: "Creating variable" at runtime - message decoding Pin
HellMaster[cz]10-Apr-13 23:15
HellMaster[cz]10-Apr-13 23:15 
GeneralRe: "Creating variable" at runtime - message decoding Pin
Richard MacCutchan10-Apr-13 23:22
mveRichard MacCutchan10-Apr-13 23:22 
GeneralRe: "Creating variable" at runtime - message decoding Pin
HellMaster[cz]10-Apr-13 23:27
HellMaster[cz]10-Apr-13 23:27 
GeneralRe: "Creating variable" at runtime - message decoding Pin
Jonathan Davies11-Apr-13 0:17
Jonathan Davies11-Apr-13 0:17 
AnswerRe: "Creating variable" at runtime - message decoding Pin
Jonathan Davies10-Apr-13 22:47
Jonathan Davies10-Apr-13 22:47 
GeneralRe: "Creating variable" at runtime - message decoding Pin
HellMaster[cz]10-Apr-13 23:24
HellMaster[cz]10-Apr-13 23:24 
Hi Jonathan,

you are right. But insted of handling CANbus messages I'm handling LINbus messages. The frames are really known and are specified in a file called LIN description file *.ldf (the format of file is defined in the specification). But how do I create structs from this file at runtime to use it for decoding a message? Or what would be the best approach?

Basically I would be able to define some struct like:

struct
{
bit0 :1
bit1 :1
bit2 :1
bit3 :1
.
.
.
bit64 :1
}

and then assign all 8 bytes to this struct and decode it bit-by-bit. But seems to me to be still clumsy and slow. Or this is just the only one solution.
Maybe the solution is really clear and simple, but I'm missing something.
GeneralRe: "Creating variable" at runtime - message decoding Pin
Jonathan Davies11-Apr-13 0:11
Jonathan Davies11-Apr-13 0:11 
AnswerRe: "Creating variable" at runtime - message decoding Pin
Erudite_Eric12-Apr-13 0:55
Erudite_Eric12-Apr-13 0:55 
Questioncrop window region and save as image (win32) Pin
Member 916988710-Apr-13 18:55
Member 916988710-Apr-13 18:55 

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.