Type: Posts; User: sma
Search took 0.03 seconds.
March 20th, 2014, 07:27 PM
I am developing a program which uses windows sockets to obtain data from a server using the Modbus protocol. The server provides information in groups called menus. Each menu is displayed via a...
March 24th, 2011, 05:53 PM
Resolved, the OnCommandUI handler was holding the control disabled, as the data contained within the control list was being updated at other points in the app.
March 24th, 2011, 05:48 PM
Both ReplaceButton calls return 1 indicating the replacement of the first item with the specified identifier.
March 24th, 2011, 01:12 AM
The attached image show the two ComboboxButtons I have on my app CMFCToolbartoolbar.
The first combo box functions correctly but the second does not operate with the drop down list element only...
March 22nd, 2011, 04:54 AM
It is extremely difficult to create a complete RTF rendering engine as the syntax if these files have many variations.
I have attached a copy of the 2002 specification so you can see how RTF is...
March 21st, 2011, 05:51 PM
The code I have does not complete templates as such, it is a set of classes designed to provide the necassary representation of my application data which is either a series of tables or formatted...
March 21st, 2011, 04:48 AM
You have several options depending on the application frame work you have used:
RTF - quite simple to implement if you use RichEdit control as this will read and write RTF directly however the...
March 8th, 2011, 05:10 AM
The attached files were never intended to replace those in your project. They were provided as an example that worked for you to check your code against.
Place a break point in your code and...
March 8th, 2011, 04:10 AM
You need to remove the semi colon from the while statement.
while (running == true);
The semi colon indicates the effective end of the while loop in this case.
March 8th, 2011, 03:55 AM
Is this to do with your previous post regarding the setting of controls using a text file if it is the code I attached to my last response reads the file and retreives the required data just fine.
March 7th, 2011, 07:17 PM
Have had a look at your code and created a small project to prove your code.
I have atteched the dialog code for your reference it seems to work when I change the file (diasabled and enabled...
March 7th, 2011, 05:03 AM
Can you step through the code buy inserting a break point in the function that process the text file and confirm it is reading the data properly from the file and selecting the correct control.
March 7th, 2011, 04:39 AM
Do the controls update when the button pressed?
The only way to cause the updating would be when the file edit is complete to send a message to the dialog. This message could be a user defined...
March 7th, 2011, 04:10 AM
I have down loaded your code.
Looking at the IODlg.CPP code there is a function to respond to the Description Select button - CIODlg::OnDescSelect() is this the area of concern?
March 7th, 2011, 03:19 AM
The example provided shows methods you can use to achieve what you want.
Haven't you developed the code to read the file you containing the data describing the controls?
The live updting of the...
March 6th, 2011, 10:50 PM
Attached is a very simple dialog based application that dynamically changes the text on some buttons.
Click on each button and see what happens.
The buttons are intially set in the Oninitdialog...
March 6th, 2011, 10:32 PM
I will generate a very simple dialog based app in Visual Studio 6.0 and attach it to my next post.
This may take a couple of hours as I am busy at this point in time.
March 6th, 2011, 10:05 PM
From your attached code:
You have a dialog based application.
What you need to do is provide your own OnInitDialog function depending on which version and IDE you are using you should be able...
March 6th, 2011, 09:18 PM
You do not need to change your RC file.
Look for examples of changing button text or static text dynamically in code guru which may make you understanding a bit clearer.
Can you paste a bit of...
March 3rd, 2011, 03:34 AM
From your file I have selected IDC_OUT_0 = IN Conveyor
1. Read the value for this control from the file.
2.Create a pointer of appropriate type and set using GetDlgItem(IDC_OUT_0)); IDC_OUT_0...
March 2nd, 2011, 10:44 PM
The problem was caused by the calling of the lines:
In the OnInitialUpdate() handler for the view I was switching...
March 2nd, 2011, 07:34 PM
I have a SDI application that is displaying a strange behaviour.
I open a document and then close it by selecting the new file button from the tool bar.
The app correctly closes the open...
March 1st, 2011, 07:48 PM
I do not have an example however it is quite straight forward.
The only thing you need to decide is how you are going to store the configuration.
Once you have this you can then look ate the...
March 1st, 2011, 07:32 PM
Thanks for the feedback, it is the approach I have taken as the complexities between the generated reports resulted in an extremely complex piece of code.
I have implement multiple view classes...
February 28th, 2011, 12:24 AM
Yes you can by using the OnInitDialog method to read the data from your text file and then set the caption/text for each of the controls.
If you need to do this once the dialog is visible then you...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.