Question : Move DC role from Exchange Server

I am in the process of breaking out our Domain Controller and Exchange server onto two separate boxes and was wondering if I have to be careful to migrate exchange before I am able to move the FISMO roles?  I know that I cannot demote the DC with Exchange installed, I simply want to move the roles to another DC and make it the primary.  Anyone know if I will have an issue wtih this?

Answer : Move DC role from Exchange Server

Although I was able to reproduce the problem by violating one of your basic principles - "I've verifyed over and over again that the hpp is included only once". I know from experience that headers have a way of creeping in unexpectedly. You didn't mention whether you checked header dependencies, so that could be an issue. By any chance, is the file that includes your header also a header file; and if so, then is that header file called in multiple locations?

The solution for me was to declare the formatDate function in the header and move the body to its own .cpp file. (You can add it to an existing .cpp file if you wish.) I think you should do this to see what happens.

The error says formatDate is defined in Sandbox. If Sandbox.cpp is the file that has the main() that you posted, then no problem. If not, then do you see formatDate there?

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
// header file - revised
namespace mxf
{
	namespace date
	{
		std::string formatDate(std::string formatStr);
	}
}

// mxf_date.cpp new file - added to project
#include <string>
#include "mxf_date.h"
std::string mxf::date::formatDate(std::string formatStr)
{
	return "abc";
}
Random Solutions  
 
programming4us programming4us