I have created an application core in C ++, I have compiled it in a static library in Visual Studio. I am in the process of writing a GUI for this, I am using MFC to do this. I came to know how to press a button to execute some of the main sections of my application core (i.e. the button to start and stop). Although the core class should always have a sample of data from each other or two in an external source. After each sample the GUI should populate some areas. I can not find a place in my MFC objects like CDAlog, which I can constantly see if my class has captured the data. Then if he has put that data into some text box
A friend has suggested that I will make a thread on OnInit () routine which will take care of this, but this solution is not really working for me.
Is there no place where I am given a statement that the program is called till the end?
or
if (coreapp.dataSampleReady ()) {// coreapp.dataItem1 () / TextBox1 // Coreapp.dataItem2 () // etc. Set progress bar. Data Reset DataSampleReady}
You mentioned "every other or two" while Another answer suggested "about using timer in the use of an event driven paradigm" dialog, and if you had a timer fire, sampling data from your external source indicated you how to map event handlers to the button. , So a natural extension for you to map the handler on the timer Nshn should.
Comments
Post a Comment