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

C / C++ / MFC

 
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 
AnswerRe: crop window region and save as image (win32) Pin
Richard MacCutchan10-Apr-13 21:48
mveRichard MacCutchan10-Apr-13 21:48 
QuestionHow to use GetLastInputInfo? Pin
Donguy197610-Apr-13 15:58
Donguy197610-Apr-13 15:58 
AnswerRe: How to use GetLastInputInfo? Pin
Randor 10-Apr-13 16:16
professional Randor 10-Apr-13 16:16 
GeneralRe: How to use GetLastInputInfo? Pin
Donguy197611-Apr-13 6:50
Donguy197611-Apr-13 6:50 
QuestionError for GetLastInputInfo Pin
Donguy197610-Apr-13 11:36
Donguy197610-Apr-13 11:36 
AnswerRe: Error for GetLastInputInfo Pin
jeron110-Apr-13 11:58
jeron110-Apr-13 11:58 
AnswerRe: Error for GetLastInputInfo Pin
Randor 10-Apr-13 12:51
professional Randor 10-Apr-13 12:51 
GeneralRe: Error for GetLastInputInfo Pin
Donguy197610-Apr-13 15:57
Donguy197610-Apr-13 15:57 
QuestionMake a form transparent to mouse depending mouse event? Pin
thanh_bkhn9-Apr-13 17:01
professionalthanh_bkhn9-Apr-13 17:01 
AnswerRe: Make a form transparent to mouse depending mouse event? Pin
pasztorpisti9-Apr-13 22:14
pasztorpisti9-Apr-13 22:14 
GeneralRe: Make a form transparent to mouse depending mouse event? Pin
thanh_bkhn11-Apr-13 17:51
professionalthanh_bkhn11-Apr-13 17:51 
GeneralRe: Make a form transparent to mouse depending mouse event? Pin
pasztorpisti11-Apr-13 21:14
pasztorpisti11-Apr-13 21:14 
GeneralRe: Make a form transparent to mouse depending mouse event? Pin
thanh_bkhn14-Apr-13 16:35
professionalthanh_bkhn14-Apr-13 16:35 
AnswerRe: Make a form transparent to mouse depending mouse event? Pin
thanh_bkhn25-Apr-13 23:40
professionalthanh_bkhn25-Apr-13 23:40 

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.