Click here to Skip to main content
14,768,455 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: swedish file read Pin
Richard MacCutchan20-Jan-21 22:11
mveRichard MacCutchan20-Jan-21 22:11 
AnswerRe: swedish file read Pin
CPallini21-Jan-21 1:25
mveCPallini21-Jan-21 1:25 
AnswerRe: swedish file read Pin
Gerry Schmitz21-Jan-21 5:55
mveGerry Schmitz21-Jan-21 5:55 
QuestionState Machine to C code and back Pin
NelsonGoncalves14-Jan-21 1:30
MemberNelsonGoncalves14-Jan-21 1:30 
AnswerRe: State Machine to C code and back Pin
Richard Andrew x6418-Jan-21 13:11
professionalRichard Andrew x6418-Jan-21 13:11 
GeneralRe: State Machine to C code and back Pin
NelsonGoncalves19-Jan-21 0:09
MemberNelsonGoncalves19-Jan-21 0:09 
AnswerRe: State Machine to C code and back Pin
trønderen20-Jan-21 10:29
Membertrønderen20-Jan-21 10:29 
GeneralRe: State Machine to C code and back Pin
NelsonGoncalves21-Jan-21 22:17
MemberNelsonGoncalves21-Jan-21 22:17 
Quote:
Hoping for some program to translate a C program (in the sense "an arbitrary C program") into a state machine is naively optimistic.


100% agree with you. I meant that the tool/framework could generate the FSM some code itself had generated. It should be easier, although not trivial at all.

Quote:
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).


That seems something more reasonable to do. My worries in this case is switching between the FSM view and the source code view. It should be easy to edit an FSM, generate the source code and then let the programmer add custom code to actions. But how to you proceed when the user wants to edit the FSM ? What happens to the custom logic that was added ?

Quote:
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


Will do Thumbs Up | :thumbsup:
GeneralRe: State Machine to C code and back Pin
Member 798912222-Jan-21 0:31
MemberMember 798912222-Jan-21 0:31 
GeneralRe: State Machine to C code and back Pin
Greg Utas22-Jan-21 2:30
mvaGreg Utas22-Jan-21 2:30 
QuestionC++ template function returning "vector" ? Pin
Member 1496877112-Jan-21 12:59
MemberMember 1496877112-Jan-21 12:59 
AnswerRe: C++ template function returning "vector" ? Pin
Greg Utas12-Jan-21 13:24
mvaGreg Utas12-Jan-21 13:24 
AnswerRe: C++ template function returning "vector" ? Pin
CPallini12-Jan-21 22:20
mveCPallini12-Jan-21 22:20 
GeneralRe: C++ template function returning "vector" ? Pin
Member 1496877113-Jan-21 5:57
MemberMember 1496877113-Jan-21 5:57 
GeneralRe: C++ template function returning "vector" ? Pin
Richard MacCutchan13-Jan-21 6:40
mveRichard MacCutchan13-Jan-21 6:40 
GeneralRe: C++ template function returning "vector" ? Pin
CPallini13-Jan-21 8:05
mveCPallini13-Jan-21 8:05 
QuestionCCombox Pin
JM225111-Jan-21 21:19
MemberJM225111-Jan-21 21:19 
AnswerRe: CCombox Pin
Richard MacCutchan11-Jan-21 23:41
mveRichard MacCutchan11-Jan-21 23:41 
QuestionCMFCRibbonComboBox Pin
Member 1325158811-Jan-21 17:31
MemberMember 1325158811-Jan-21 17:31 
AnswerRe: CMFCRibbonComboBox Pin
Richard MacCutchan11-Jan-21 23:39
mveRichard MacCutchan11-Jan-21 23:39 
GeneralRe: CMFCRibbonComboBox Pin
Member 1325158812-Jan-21 10:18
MemberMember 1325158812-Jan-21 10:18 
GeneralRe: CMFCRibbonComboBox Pin
Victor Nijegorodov12-Jan-21 11:12
MemberVictor Nijegorodov12-Jan-21 11:12 
GeneralRe: CMFCRibbonComboBox Pin
Member 1325158812-Jan-21 17:23
MemberMember 1325158812-Jan-21 17:23 
GeneralRe: CMFCRibbonComboBox Pin
Victor Nijegorodov12-Jan-21 22:07
MemberVictor Nijegorodov12-Jan-21 22:07 
GeneralRe: CMFCRibbonComboBox Pin
Richard MacCutchan12-Jan-21 22:24
mveRichard MacCutchan12-Jan-21 22:24 

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.