M
Mike Copeland
The code below compiles and works in VS2010, but I'm forced to
compile it with an older version (VS6.0). It doesn't compile (Error
C2552 and C2078). I Googled the error and see that there are solutions
that involve code that doesn't work in VS6.0. Is there another way to
do this sort of thing? TIA
#define EDITS 36
struct Replacements // Street Address cleanup values
{
string oValue[EDITS]; // old/original value
string nValue[EDITS]; // new/replacement value
} extern changeValues;
Replacements changeValues =
{{" AVENUE", " STREET","N.W.", "S.W.", "N.E.", "S.W.",
" SOUTH ", " NORTH "," WEST "," EAST ", " RD.", " ROAD",
" ST.", " AVE.", " BLVD."," PKWY.", " LANE", " LN.",
" UNIT ", " SUITE "," N. ", " S. ", " E. ", " W. ",
" # ", " DRIVE", " DR.", " PARKWAY"," PLACE"," PL.",
" TERRACE", " TER", " COURT"," CIRCLE", " TRAIL"," BOULEVARD"},
{" AVE", " ST", "NW", "SW", "NE", "SW",
" S ", " N ", " W ", " E ", " RD", " RD",
" ST", " AVE", " BLVD", " PKWY", " LN", " LN",
" #", " # ", " N ", " S ", " E ", " W ",
" #", " DR", " DR", " PKWY", " PL", " PL",
" TERR", " TERR", " CT", " CIR", " TRL", "BLVD"}};
compile it with an older version (VS6.0). It doesn't compile (Error
C2552 and C2078). I Googled the error and see that there are solutions
that involve code that doesn't work in VS6.0. Is there another way to
do this sort of thing? TIA
#define EDITS 36
struct Replacements // Street Address cleanup values
{
string oValue[EDITS]; // old/original value
string nValue[EDITS]; // new/replacement value
} extern changeValues;
Replacements changeValues =
{{" AVENUE", " STREET","N.W.", "S.W.", "N.E.", "S.W.",
" SOUTH ", " NORTH "," WEST "," EAST ", " RD.", " ROAD",
" ST.", " AVE.", " BLVD."," PKWY.", " LANE", " LN.",
" UNIT ", " SUITE "," N. ", " S. ", " E. ", " W. ",
" # ", " DRIVE", " DR.", " PARKWAY"," PLACE"," PL.",
" TERRACE", " TER", " COURT"," CIRCLE", " TRAIL"," BOULEVARD"},
{" AVE", " ST", "NW", "SW", "NE", "SW",
" S ", " N ", " W ", " E ", " RD", " RD",
" ST", " AVE", " BLVD", " PKWY", " LN", " LN",
" #", " # ", " N ", " S ", " E ", " W ",
" #", " DR", " DR", " PKWY", " PL", " PL",
" TERR", " TERR", " CT", " CIR", " TRL", "BLVD"}};