It sents me this letter back:
>> This message was created automatically by mail delivery >> software.
>> A message that you sent could not be delivered to one or >> more of its
>> recipients. This is a permanent error. The following
>> address(es) failed:
>> filipski@excite.com
>> SMTP...
>> Means you're trying to make plotview.cpp a program in it's
>> own right.
>> You need to compile both Plot.cpp and PlotView.cpp, then link
>> BOTH object files to make it work.
I've done it. No result. :-(((
>> Does plotview include the plot.h file ?
>> Have you tried to rebuild your project ? (Clears out old
>> references sometimes)
Yes to both.
>> My guess is you have
>> int nn = 0;
>> In the plot.h file
>> What you should have in the plot.h file is
>> extern int nn;
>> And ONLY in plot.cpp
>>...
I'm defining global variables zz and nn in Plot.h, modyfying them in plot.cpp and using in The PlotView.cpp. And when compiling it shows that:
>> The PlotView.obj : error LNK2005: "int nn" (?nn@@3HA)
>> already defined in Plot.obj
>> The PlotView.obj : error LNK2005: "int...
>> Are you sure you don't mean (S == nChar)?]
Good idea! I'll try it.
>> Wow, this is so bad...
Yeh that is bad. I can't get the solve at the second forum!
What's the code? I don't need to change its value, just to get it!
I'm from Russia :-)
Explanations.
onChar is a generated function so I can't change the header.
I am needing to get the value of nChar because it has the code of button just pressed. It compiles okay,but when I try to check the value so:
if (S=nChar)...
it always contains '8' (I can see it in the debugger) and the...
nChar. When I try to change the value it writes "Cannot convert from char[2](It's about nChar)to "Unsigned int" (it is value)"
I'm from Russia :-)
But how can I get the value from it? It returns 56 all the time! Here's the header:
void CTwsView::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
I'm from Russia :-)
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.