harinath_2007 56 Posting Whiz

I would like to play a video using c/c++ program..

what libraries should i include??

can anyone tell the code....

harinath_2007 56 Posting Whiz

hi..
i am using windows 7 (32 bit) ultimate.

where can i get turbo c++ for windows 7??

what should i use for compiling and running c/c++ programming in windows 7

harinath_2007 56 Posting Whiz

hi..
can u give me the code for keylogger???

Ezzaral commented: No, this is Code On Demand. -3
harinath_2007 56 Posting Whiz

hey.
i want to send a mail from my java application.

the code below works fine except that it results in authentication error in runtime..

here is the code..

import java.util.Properties;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.Message.RecipientType;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

public class SendMail {

    private String from;
    private String to;
    private String subject;
    private String text;

    public SendMail(String from, String to, String subject, String text){
        this.from = from;
        this.to = to;
        this.subject = subject;
        this.text = text;
    }

    public void send(){

        Properties props = new Properties();
        props.put("mail.smtp.host", "smtp.gmail.com");
        props.put("mail.smtp.port", "25");

        Session mailSession = Session.getDefaultInstance(props);
        Message simpleMessage = new MimeMessage(mailSession);

        InternetAddress fromAddress = null;
        InternetAddress toAddress = null;
        try {
            fromAddress = new InternetAddress(from);
            toAddress = new InternetAddress(to);
        } catch (AddressException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        try {
            simpleMessage.setFrom(fromAddress);
            simpleMessage.setRecipient(RecipientType.TO, toAddress);
            simpleMessage.setSubject(subject);
            simpleMessage.setText(text);

            Transport.send(simpleMessage);          
        } catch (MessagingException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }       
    }
}

and the MAIN PROGRAM is as follows..

public class SendMailTest {

    public static void main(String[] args) {

        String from = "abc@gmail.com";
        String to = "xyz@gmail.com";
        String subject = "Test";
        String message = "A test message";

        SendMail sendMail = new SendMail(from, to, subject, message);
        sendMail.send();
    }
}
harinath_2007 56 Posting Whiz

Hi..

i am getting authentication error while sending mail from my java application..

my java application makes use of SMTP server..

how to solve this..????

harinath_2007 56 Posting Whiz

Is there any good C++ editor for Windows 7 ????
Generally turbo c++ takes 100% CPU processing in windows 7
so i am in search of a good and advanced c++ editing tool for windows 7
Is there any????

harinath_2007 56 Posting Whiz

Hi...
How can i develop a keylogger using java??

The problem is that we should only implement KeyListener interface to a window or
frame..
but how can we make use of KeyListener event without windows of frame????

harinath_2007 56 Posting Whiz

Doesn't it come with your normal Java package from Sun??? Its API doesn't say that you need to download it separately.

The javax.speech package doesn't comes with sun API.. we should download it manually...

harinath_2007 56 Posting Whiz

hai..my name is harinath.

i cant find javax.speech package anywhere ..
how can i get javax.speech package???????