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...
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.
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...
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.
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...
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
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)...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.