Transfer c# code into c++ (Microsoft c++) version
I need to translate this code into c++ (microsoft c++ ATL/MFC)project.

                var ticks = System.DateTime.Now.Ticks;
                byte[] c = BitConverter.GetBytes(ticks);
                byte[] buffer = new byte[c.Length];
                for (int i = 0; i < buffer.Length; i++)
                buffer[i] = (byte)c[i];

1. What is corresponding call in c++ for System.dateTime.Now.Ticks?

2. What is corresponding Bitconverter in c++.

Thank you!


EDITED:

CANNOT USE BOOST IN THIS PROJECT.
THANK YOU.
Transfer c# code into c++ (Microsoft c++) version
===

I need to translate this code into c++ (microsoft c++ ATL/MFC)project.

                var ticks = System.DateTime.Now.Ticks;
                byte[] c = BitConverter.GetBytes(ticks);
                byte[] buffer = new byte[c.Length];
                for (int i = 0; i < buffer.Length; i++)
                buffer[i] = (byte)c[i];

1. What is corresponding call in c++ for System.dateTime.Now.Ticks?

2. What is corresponding Bitconverter in c++.

Thank you!


EDITED:

CANNOT USE BOOST IN THIS PROJECT.
THANK YOU.