unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2006, 07:25 AM
zero_tolerance zero_tolerance is offline
Senior Member
 
Join Date: Dec 2006
Posts: 289
Default Displaying the time and date

By RoverTurbo

How to display the time and date in Direct3D.

Code:
#include <time.h>

CHAR TimeAndDate[MAX_PATH];
time_t TimeValue;


HRESULT WINAPI EndScene_Detour(LPDIRECT3DDEVICE9 Device_Interface)
{
  TimeValue = time(NULL);
  strftime(TimeAndDate, MAX_PATH, "[ %a - %b %d - %i:%m %p ]", localtime(&TimeValue));

  return EndScene_Pointer(Device_Interface);
} 
Printing the TimeAndDate variable will give you the time and date in the format of [ Mon - Nov 07 - 01:05 PM ]
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
date, displaying, time

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 08:14 AM.