In the structure, define a new variable, the results of the time always said I compile the new definition of the variable is not defined

Category: C/C++ -> C++ Author: lionaiying Date: 2010-04-18 07:10:05
2010-04-18 07:10:05
I stdafx.H in a header file already has the structure in (for example, is struct a {}) added a new variable UINT COUNT; Then MYDLG.CPP to call a * aa ; aa-> COUNT, compile time, I define the variable is not the structure, I have clearly defined this variable, and with this variable in a structure where the other variables can be invoked before, only This new variable is added to say is not defined, this is how things would go,
there is a problem, the original program I copied from my house to a friend's computer at a friend's computer and compile the changes in the error e
rror C2039: 'sock': is not a member of 'server_link', there is the below error message, so I went to see STDAFX. H file to define a new variable structure, as
H: \ Production \ vc + + \ stdafx.h (59): see declaration of 'server_link'
above directory is the directory where files are stored in the house, but I was at a friend's house to use the D drive, and he did not H disk, how to ask this here? reason is not here? how to solve
Thank help
2010-04-18 07:28:56
rebuild look
2010-04-18 08:05:36
1. Variables to be added to the body structure, and then generate, include the header file yet?
2. variables do not, do not know delete and re-add?
2010-04-18 08:14:40
han ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ I do not know the so-called ~ ~ ~

paste code eloquent ~ ~
2010-04-18 08:19:24
is to look at large wrong, hehe ~ ~
2010-04-18 08:24:19
stuck in this step, Jia
2010-04-18 08:41:23
variables I added in a structure inside, and in the compilation overlays on the left tree line view, you can see the structure variable names defined below, the header file also contains the previously defined variables are easy to use, but not with the new definition, the new definition is added to the old Variables below, did not declare private, and public,
variables I deleted, also re-added, no effect
I guess the problem is in
H: \ Production \ vc + + \ stdafx. h (59): see declaration of 'server_link'
this line, this STDAFX.H location of the file, is working in my home directory, copying a friend's hard drive obviously on the D drive, but the compiler allows me to see the stdafx.h file H-disk structure definition, I guess there is a file storage specific location of these code files, and I copy it from a friend's house after house , storage directory has changed, so there is a problem to me at all file Search "H: \ Production \ vc + + \ stdafx.h" did not find, I do not know why, so I trial country H: \ \ Production \ \ vc + + \ \ stdafx.h, each with
2010-04-18 08:46:10

issue is resolved, close stickers, thank you friends
2010-04-18 08:51:02
I want to be your type of structure pointer is not allocated space? It is impossible to clean and renumbering.