Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Add Window procedure to picture control Pin
Victor Nijegorodov26-Jan-21 23:32
Victor Nijegorodov26-Jan-21 23:32 
GeneralRe: Add Window procedure to picture control Pin
Gopi Nath27-Jan-21 0:51
Gopi Nath27-Jan-21 0:51 
QuestionBattleship game in C Pin
Julien JG725-Jan-21 9:28
Julien JG725-Jan-21 9:28 
AnswerRe: Battleship game in C Pin
Maximilien25-Jan-21 10:18
Maximilien25-Jan-21 10:18 
AnswerRe: Battleship game in C Pin
Richard MacCutchan25-Jan-21 21:47
mveRichard MacCutchan25-Jan-21 21:47 
QuestionRe: Battleship game in C Pin
David Crow26-Jan-21 4:16
David Crow26-Jan-21 4:16 
Questiontypical NASM usage Pin
Calin Negru23-Jan-21 23:29
Calin Negru23-Jan-21 23:29 
GeneralRe: typical NASM usage Pin
Richard MacCutchan24-Jan-21 0:55
mveRichard MacCutchan24-Jan-21 0:55 
AnswerRe: typical NASM usage Pin
harold aptroot24-Jan-21 17:27
harold aptroot24-Jan-21 17:27 
GeneralRe: typical NASM usage Pin
Calin Negru24-Jan-21 20:23
Calin Negru24-Jan-21 20:23 
Questiondicom error Pin
sureshpondicherry21-Jan-21 7:46
sureshpondicherry21-Jan-21 7:46 
AnswerRe: dicom error Pin
Richard MacCutchan21-Jan-21 22:02
mveRichard MacCutchan21-Jan-21 22:02 
GeneralRe: dicom error Pin
sureshpondicherry25-Jan-21 5:05
sureshpondicherry25-Jan-21 5:05 
Questionswedish file read Pin
Member 1474115220-Jan-21 8:54
Member 1474115220-Jan-21 8:54 
AnswerRe: swedish file read Pin
trønderen20-Jan-21 9:11
trønderen20-Jan-21 9:11 
AnswerRe: swedish file read Pin
Richard MacCutchan20-Jan-21 21:11
mveRichard MacCutchan20-Jan-21 21:11 
AnswerRe: swedish file read Pin
CPallini21-Jan-21 0:25
mveCPallini21-Jan-21 0:25 
AnswerRe: swedish file read Pin
Gerry Schmitz21-Jan-21 4:55
mveGerry Schmitz21-Jan-21 4:55 
QuestionState Machine to C code and back Pin
NelsonGoncalves14-Jan-21 0:30
NelsonGoncalves14-Jan-21 0:30 
AnswerRe: State Machine to C code and back Pin
Richard Andrew x6418-Jan-21 12:11
professionalRichard Andrew x6418-Jan-21 12:11 
GeneralRe: State Machine to C code and back Pin
NelsonGoncalves18-Jan-21 23:09
NelsonGoncalves18-Jan-21 23:09 
AnswerRe: State Machine to C code and back Pin
trønderen20-Jan-21 9:29
trønderen20-Jan-21 9:29 
Hoping for some program to translate a C program (in the sense "an arbitrary C program") into a state machine is naively optimistic.

Even if that C program was initially generated from a state machine model, so you could hope to recognize code key patterns allowing you to identify code fragments handling specific state transitions etc., most programmers feel the freedom to not give a sh*t about FSM principles, so they toss the code all over the place, making it impossible to recognize the pieces.

What you can do is to provide a framework for editing the FSM as a FSM, and let the developer specify the actions of each individual transition within that framework. Then, the framework can lay out the code for each transition (as well as the common logic for the state transitions themselves).

This is actually one of my current pet projects. Maybe I will write a CP article about it some day. It is far from ready yet, but if you would like to discuss it directly with me, send me an email. Maybe that could help pushing my hobby project forward Smile | :)
GeneralRe: State Machine to C code and back Pin
NelsonGoncalves21-Jan-21 21:17
NelsonGoncalves21-Jan-21 21:17 
GeneralRe: State Machine to C code and back Pin
kalberts21-Jan-21 23:31
kalberts21-Jan-21 23:31 
GeneralRe: State Machine to C code and back Pin
Greg Utas22-Jan-21 1:30
professionalGreg Utas22-Jan-21 1:30 

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.