Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

braune

@braune
About
Posts
10
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Awesome programming jobs
    B braune

    My name is Eric and I have an awesome contract programming job. I write software for a pre-production oil and gas tool manufacturing company using VC++ 6.0 and VB.net 2005. It is a small company that employs 12-15 people. We manufacture our own tool from board level up and I write all the software to get the data from the tools. These tools use a combination of interfaces; USB, Serial and Parallel. I work hand-in-hand with the engineers who design the boards, so I have a great say in the lay out of memory and the firmware commands that are stored on the tool itself. I have just finished a Real-Time monitoring system that allows the user to sit in their truck and watch the gauges in real-time using RF transmitters. The awesome part of my job is that I work as much or as little as I want. I live 600 miles from the office and spend 1 to 1 1/2 weeks at the office and 2 1/2 to 3 weeks working from home. All my transportation to and from the office is paid for and when I am at the office I stay with very good friends of mine. The pay is very good with paid stat holidays, and the stress level is very manageable, which is more than I can say for some contract jobs I have had. Being it is contract programming, I do not get paid any vacation time, I just put in more hours while I am working from the office and less when I am working from home. No I will not tell you who I am working for, this is my job for as long as it lasts. Stop drooling.

    modified on Tuesday, November 11, 2008 11:49 AM

    The Lounge

  • Get all controls on a form
    B braune

    Another thought is, can I just use the variable to reference the control? ie. sLabelName[i].text, GetDlgItemText(sControlName[i], sTemp); Eric

    C / C++ / MFC

  • Get all controls on a form
    B braune

    Its not quite that simply. I have multiple customers who have different requirements. Here is what I am doing: I have created an external file that I read in when the program starts. The external file contains a list of the fields that are required and the minimum length of each. When I read the file in I set all the labels for these fields to RED, so the user knows they are required fields. I set the labels using the following: if ((sLabelName[i]=="IDC_STATIC_COMPANY")&&(iLabelRequired[i]==1)) m_stCOMPANY.SetTextColor(LIGHTRED); if ((sLabelName[i]=="IDC_STATIC_WELLNAME")&&(iLabelRequired[i]==1)) m_stWELLNAME.SetTextColor(LIGHTRED); I would rather cycle through all the labels on the form, rather than putting them in statically. When the user selects a button I do much the same to test, except using the editbox controls to correct if required and the minimum length. Hope this info helps. Eric

    C / C++ / MFC

  • Get all controls on a form
    B braune

    I want to do the check when the user clcks a button to perform an operation. The first item of business for this operation would be to field validation, ie. make sure the required fields have entries and they are of a minimum length. Eric

    C / C++ / MFC

  • Get all controls on a form
    B braune

    I want to cycle through the edit boxes on my screen, without have to put in all the IDC_??? names. Here is a sample of what I am doing: if ((sLabelName[i]=="IDC_STATIC_COMPANY")&&(iLabelRequired[i]==1)) { GetDlgItemText(IDC_COMPANY, sTemp); if (sTemp.GetLength()

    C / C++ / MFC

  • Get all controls on a form
    B braune

    Is there an easy way to cycle through all the controls on a form. I want to be able to determine if an entry has been made in a certain control (edit box) that is a required field. These required fields can change by user. Eric

    C / C++ / MFC

  • Update text on one form from another form
    B braune

    Maybe I am not explaining this correctly or do not not understand your solution. I will try to explain with example: When I click on a button in my main form (CUsbDlg) it run the following: void CUsbDlg::OnFormatBlock0() { CUsbIo cUsb; //Setup the usb communication (load the bix file) if(!cUsb.CommunicationSetup()) The problem is that I need cUsb to update a Static text box on the CUsbDlg form. There are items that happen within the CommunicationSetup that may take some time. I need to let the user know where we are in the process. Eric

    C / C++ / MFC c++ tools question announcement

  • Update text on one form from another form
    B braune

    How did you arrive with m_pForm2? I am using Dialog instead of Form, would that make a difference? I can not seem to get my control variables to show up. Eric

    C / C++ / MFC c++ tools question announcement

  • Update text on one form from another form
    B braune

    I have a program that displays a dialog box with a series of buttons and a text box for messages. When I select one of the buttons it creates an instance of a module that interfaces to some USB tools. Sometimes the work done by this interface module can take sometime to complete and I would like the interface module to update the text box on the dialog box. Is there an easy way to do this? I am using VC++ 6.0. Eric

    C / C++ / MFC c++ tools question announcement

  • Timer Event
    B braune

    :confused:I have a USB tool that I gets out of sync with the USB handle and locks up my system. Is there a way to set a timer event prior to the execution of the action that sometimes hangs. This way, if it hangs for a give period of time, in the timer event I could abort the commands and reset the tool. Eric

    C / C++ / MFC
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups