|
|
Simple piece of history. Chris told us off on Friday for flaming without thinking about the person asking the question. I have taken a few minutes to carefully consider your posting.
This is not a question. You have come in and asked for code without trying anything. The only thing worse would have been to add URGENT!!!!
You will get no help here.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
hi,
i have to make a java program that can read the drive information and display it.
i did some search and found that GetDriveInfo() could be used, but there is no example about it for java.
please help.
|
|
|
|
|
You asked this question on codeguru[^]
Do you think you will receive a different answer here?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Anybody help me?
selvarani R
|
|
|
|
|
Reposts are bad. The hamster's get angry and kick the dog.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|
Simple piece of history. Chris told us off on Friday for flaming without thinking about the person asking the question. I have taken a few minutes to carefully consider your posting.
This is not a question. You have come in and asked for code without trying anything. The only thing worse would have been to add URGENT!!!!
You will get no help here.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
You can download the free fingerprint verification SDK from www.neurotechnology.com
<sdk>\samples\Java has java coding
If u r using NetBeans, attach the Nffv.jar to the current package, then try to run "NffvApplication.java" in <sdk>\samples\Java\NffvJavaSample\src\NffvSample
Also set the classpath to <sdk>\bin\Win32_x86
|
|
|
|
|
Considering the ageof the thread and the fact I don't care, FOAD
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
|
|
|
|
|
I have a VC Dll which is being called from my java application using JNI. I would like to know if it is possible to execute it as a thread.
Thanks in advance
|
|
|
|
|
You can create a thread(I mean Java thread) to execute the native function. As I know, there is no such a parameter or option to execute a native function call in a new thread defaultly.
new Thread(new Runnable(){
public void run(){
}
}).start();
|
|
|
|
|
Thank you. Will check the suggested method.
|
|
|
|
|
I have a VC all which is being from my java application using JNI. I would like to know if it is possible to execute it as a thread.
Thanks in advance
|
|
|
|
|
public class Program
{
public static void Main(string[] args)
{
try
{
if (args.Length != 3)
{
ShowUsage();
return;
}
MailMessage mmMessage = new MailMessage();
mmMessage.To.Add(new MailAddress(args[2] as string));
mmMessage.From = new MailAddress(args[1] as string);
mmMessage.Subject = "TestMail";
mmMessage.Body = "This is a test";
SmtpClient sc = new SmtpClient(args[0] as string);
sc.Send(mmMessage);
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
finally
{
Console.WriteLine();
Console.Write("Press a key >");
Console.ReadKey();
}
}
private static void ShowUsage()
{
Console.WriteLine("Usage");
Console.WriteLine("TestMail [SmtpServer] [FromAddress] [ToAddress]");
}
}
Regards,
|
|
|
|
|
I don't have a conversion of the 'MailMessage' or 'MailAddress' types, or 'Console.ReadKey', but I have a conversion that should help a bit:
public class Program
{
public static void main(String[] args)
{
try
{
if (args.length != 3)
{
ShowUsage();
return;
}
MailMessage mmMessage = new MailMessage();
mmMessage.To.add(new MailAddress((String)((args[2] instanceof String) ? args[2] : null)));
mmMessage.From = new MailAddress((String)((args[1] instanceof String) ? args[1] : null));
mmMessage.Subject = "TestMail";
mmMessage.Body = "This is a test";
SmtpClient sc = new SmtpClient((String)((args[0] instanceof String) ? args[0] : null));
sc.Send(mmMessage);
}
catch (Throwable ex)
{
System.out.println(ex);
}
finally
{
System.out.println();
System.out.print("Press a key >");
Console.ReadKey();
}
}
private static void ShowUsage()
{
System.out.println("Usage");
System.out.println("TestMail [SmtpServer] [FromAddress] [ToAddress]");
}
}
David Anton
http://www.tangiblesoftwaresolutions.com
Convert VB to C#, C++, or Java
Convert C# to VB, C++, or Java
Convert C++ to C#, VB, or Java
Convert Java to C#, C++, or VB
|
|
|
|
|
Hello,
This is a noob question but I wish to know how to connect to a Webservice that is created by ASP.net from NETBEANS 6.5. How can this be done?
|
|
|
|
|
hi all,
i m calling a vc++ exe from in java code using the Runtime.exec() function.
it gives the error
Debug Assertion Failed!
program: mantra.exe
File: fgets.c
Line: 60
Expression: str !=NULL
When the exe is run directly by dbl clicking it runs fine.
anybody help !!!!
don.
|
|
|
|
|
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class cmdExec {
public String run(String cmdLine) {
String line;
String output = "";
try {
Process p = Runtime.getRuntime().exec(cmdLine);
BufferedReader input = new BufferedReader
(new InputStreamReader(p.getInputStream()));
while ((line = input.readLine()) != null) {
output += (line + '\n');
}
input.close();
}
catch (Exception ex) {
ex.printStackTrace();
}
return output;
}
}
dunno if that will help at all - but it ws useful for me when I couldnt run a prog from the cmd line
|
|
|
|
|
thanks for instant reply sir,
but my problem is its giving the error when i call the exe. I used the same type of code ie. exec() function. If i call some small exe it works, but when i call this one (its a huge exe with lots of supporting files) it fails. The error is debug assertion fail.
should i post this in MFC forum ?
don
|
|
|
|
|
I am not sure if this will help. But it worth a try. Please using aother overload of exec method:
exec(String command, String[] envp, File dir)
specify a correct dir parameter.
|
|
|
|
|
Thanks a lot deepnighttwo.
that worked. m happy. that had gven me many sleepless nights.
|
|
|
|
|
|
Please read carefully the eleven commandments [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hey Doofus!
No one here is going to do your homework for you. If you are so stupid that you can't even make a start at this then tell your teacher you want out!
As for
rajisweety wrote: rajesh.saimani@gmail.com
This will be picked up by every web-trawler looking for e-mails. Enjoy the spam!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|