mercredi 1 février 2017

How can i get internet date with C++?

Hello guys i have seen a lot posts around the web everyone giving different answers i know there is a lot of ways but i still cant find any good one working for me i am using visual studio 2012 for C++ . Can any one please write me a small working snippet code to get the date & time from the web like in this post:

How to check the real date through an internet connection

A guy gives an answer on the post above but no code also the code in this post down here looks great but its in c# have no idea were to start from!!!!

http://ift.tt/2krOKPe

The only thing that nobody is writing a small working snippet code in c++

I am sorry if i wasn't clear before

the idea of my pseudo code would be this :

 INTERNETDATE date;
    if((date.wYear==2010)&&(date.wMonth==9)&&(date.wDay<30))
    {
      // do what ever program should do
    }
    else 
    {
      // close the program and exit for license expire
    }

i really don't need any license manager we are not talking of a code that would value a lot its just for safety to prevent normal good people to keep staying good.

I hope i am more clear now!!! let me know and thanks in advance




Aucun commentaire:

Enregistrer un commentaire