Answer the question
In order to leave comments, you need to log in
Why are the addresses different (c++)?
When upgrading a project from VS2010 to VS2012, I encountered the following issue:
wchar_t var1[MAX_PATH];
wchar_t* tmpChar = var1;
config.hpp
static wchar_t var1[MAX_PATH];
main.cpp
int main() {
wchar_t* tmpChar = var1;
return 0;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question