Thread: is it possible?

  1. #1
    Registered User
    Join Date
    Oct 2003

    is it possible?

    hi, everyone,
    i have one circuit image, when i click the button "show" it will show the image, when i click"calculate" the program will caculate the value of components of the circuit, but it cannot update the value of component on the image, is it possible to do that with MFC?Thank you.

  2. #2
    Master of the Universe! velius's Avatar
    Join Date
    Sep 2003
    How would the program know what the value of the components are? If it is the same picture I guess that would not matter, but that would not be very useful. So I guess that would mean you would not be able to do that.
    While you're breakin' down my back n'
    I been rackin' out my brain
    It don't matter how we make it
    'Cause it always ends the same
    You can push it for more mileage
    But your flaps r' wearin' thin
    And I could sleep on it 'til mornin'
    But this nightmare never ends
    Don't forget to call my lawyers
    With ridiculous demands
    An you can take the pity so far
    But it's more than I can stand
    'Cause this couchtrip's gettin' older
    Tell me how long has it been
    'Cause 5 years is forever
    An you haven't grown up yet
    -- You Could Be Mine - Guns N' Roses

  3. #3
    train spotter
    Join Date
    Aug 2001
    near a computer
    >>it possible to do that with MFC?

    Sure. Not easy but possible.

    It will require a new image if you want the changes to persist. (be there next time you open the image)

    Easier is to write text over the top of the image. (ie a rectangle of the background colour to cover the old value then print your new one)
    This will disappear after the program stops and have to be redrawn. Will have to be careful not to draw over the components.

    >>when i click"calculate" the program will caculate the value of components of the circuit,

    I presume you will have the values stored somewhere else. That is have an image and a file containing the list of components on the image.

    Otherwise your are into image procesing. ie getting the PC to recognise each components 'picture' .
    If you have to ask, forget it.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed