Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 10:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Crazy Created Time Source Code C++

Discussion on Crazy Created Time Source Code C++ within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 11
Received Thanks: 0
Crazy Created Time Source Code C++

/* Declarasi */
static time_t TimeValue;
static tm* timeinfo;
char ChekCrazyTime[999999];

/* Source Code */
void CPanel_Detect_Day_Validator()
{
time_t current_time;
time (&current_time);
current_tm = localtime (&current_time);
sprintf( ChekCrazyWaktu, " [ %d:%02d:%02d ]",current_tm->tm_mon+1,current_tm->tm_mday,current_tm->tm_year-100+2000);
}

/* Aktivikasions */

CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)CPanel_Detect_Day_Validato r, NULL, NULL, NULL);


By : KilluaCrazy << Gery Slanjoy >>
slanjoy is offline  
Old 11/05/2012, 15:05   #2

 
マルコ's Avatar
 
elite*gold: 1329
Join Date: Jun 2009
Posts: 1,873
Received Thanks: 960
just... what????
pls describe this thingy there. And use code tags.
マルコ is offline  
Old 11/05/2012, 17:33   #3
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Ok.

Btw:
Code:
static time_t TimeValue;
static tm* timeinfo;
char ChekCrazyTime[999999]; // Try to avoid global variables | any reason for the array size ?

void CPanel_Detect_Day_Validator() //DWORD WINAPI instead of void (read msdn about that)
{
time_t current_time;
time (&current_time);
current_tm = localtime (&current_time);
sprintf( ChekCrazyWaktu, " [ %d:%02d:%02d ]",current_tm->tm_mon+1,current_tm->tm_mday,current_tm->tm_year-100+2000);
}

/* Aktivikasions */

CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)CPanel_Detect_Day_Validato r, NULL, NULL, NULL); //small mistake with the blank
.SkyneT. is offline  
Old 11/05/2012, 18:25   #4
 
elite*gold: 5
Join Date: Sep 2006
Posts: 385
Received Thanks: 218
That's (bad) C.
In C++ it should look like this:



See:
Nightblizard is offline  
Thanks
1 User
Old 11/06/2012, 15:31   #5
 
Farmär's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 8
Received Thanks: 5
Very unnecessary..
Farmär is offline  
Reply


Similar Threads Similar Threads
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code
02/13/2011 - AutoIt - 6 Replies
Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein. Funktionsweise: 1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken 2. in meinem Programm auf "Code generieren" klicken 3. In euer Scite gehen und einfügen Hier ist der Source Code vom Programm:



All times are GMT +1. The time now is 10:51.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.