Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. coldneut

    Linking to a MC Visual C++ Library

    I have an urgent need to use some process control hardware which has the drivers written in MS Visual C++. They have provided a sample program with all of the function calls I need which compiles fine with my Borland C++ Builder Professional Vers 6. However in the linker stage I get unresolved...
  2. coldneut

    Graphics linkage problem.

    HtH: I tried the HDC pDC = GetDC(hWnd); and get the compiler error: 'GetDC' : function does not take 1 parameters If I use 0 parameters it builds the .exe but when I try to draw lines nothing happens.
  3. coldneut

    Graphics linkage problem.

    I have a picture object in a dialog which I need to modify at run time in response to user input using LineTo/MoveTo. I have been spinning my wheels trying to attain the proper linkage to the bitmapped picture's ID property and my tires are getting bald. Can anyone out there give me an example...
  4. coldneut

    Global Common Update Retardation

    John: My computer has one Pentium II. The problem seems to have corrected itself. I've changed so many things that I am at a loss as to what fixed it. I think I will let well enough alone and hope it doesn't reappear. Thanks for all your help.
  5. coldneut

    Global Common Update Retardation

    I tried the ::A=1 and there was no difference. I am thinking along the lines of the thread being suspended while the dialog is executing. I tried to add SetThreadExecutionState(ES_SYSTEM_REQUIRED | ES_CONTINUOUS) to the thread and got an error starting program: "linked to missing export...
  6. coldneut

    Global Common Update Retardation

    I don't understand your question. I am settind A=1 in one of the dialog's event handlers. Afterward I view the result using AfxMessageBox.
  7. coldneut

    Global Common Update Retardation

    The dialog is not opened from the thread. The thread is run outside of any class so as not to be hampered by anything else.
  8. coldneut

    Global Common Update Retardation

    John: The problem is that B remains 0 while A is 1 as I go in and out of the event that sets A to 1. B only changes if I completely exit the dialog and then come back in. Joe
  9. coldneut

    Global Common Update Retardation

    John: Thanks for your response. What I am doing is creating a thread with a subroutine at the top of a program so as not to be a part of a class. I am using AfxBeginThread(comCode, (LPVOID) ThreadIdx). The thread (comcode) works something like this: int A, B; UINT comCode(LPVOID ThreadIdx)...
  10. coldneut

    Global Common Update Retardation

    After several days of complete frustration over why my code wasn't working I finally realized the problem. I am using some global common variables to exchange data among different classes. When I enter a new class module (such as a dialog) I pick up the global variable current values OK. I...
  11. coldneut

    RADIO BOX CONTROL

    How can I programmatically change attributes on dialog controls? For instance enabling/disabling an edit box or radio button.

Part and Inventory Search

Back
Top