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

C / C++ / MFC

 
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 
GeneralRe: "Creating variable" at runtime - message decoding Pin
Jonathan Davies11-Apr-13 0:11
Jonathan Davies11-Apr-13 0:11 
Hi,
I read LINbus is the cheaper alternatic to CANbus used by various car manufacturers, so I doubt it would get there without being easy to interface to.

You can design a system, module, program etc if you know what the messages and interactions are: it's inputs and outputs and the behaviour expected. If you don't know such things, you're in trouble: by that design rule anyway. So I'd check, are these messages really as randomly organized as you think? It could be there are only three of four possibilities, not ten or fifty.

Is there someone writing the code to send these messages that doesn't understand the LINbus spec? I was put off by someones CANbus coding when they said 'it's too complicated, you wouldn't understand'. Their code failed, I got a copy of the CANbus spec, read it, understood it, and we produced a great system.

You can't be the first to have done this. Get in touch with manufacturers of the kit you're using to try and het their demo code and base what you're doing on that. Much easier than starting from scratch.

Or try using Unions, pre-define them for the possible message formats then apply the correct one based on the ID.
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 
Questionhow to create a graph in c++? Pin
Member 99757719-Apr-13 4:48
Member 99757719-Apr-13 4: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.