hai,
i want to hide task bar from my program, in c# user32.dll was used to hide the taskbar,
iam using user32.dll in my program as follows
import java.io.*;
public class NativeMFCMsg{
static {
try {
//System.loadLibrary("user32");
System.load("C:\\WINDOWS\\system32\\user32.dll");
//
System.out.println("Library user32 Loaded");
}catch(Exception e){
e.printStackTrace();
}
}
public native static int FindWindow(String lpClassName, String lpWindowName);
public native static void ShowWindow(long hwnd ,long nCmdShow);
public static void main(String[] args){
try
{
NativeMFCMsg nm=new NativeMFCMsg();
System.load("C:\\WINDOWS\\system32\\user32.dll");
int n=nm.FindWindow("Shell_TrayWnd","");
nm.ShowWindow(n,0);
}
catch(Exception ex)
{
ex.printStackTrace();
System.out.println("Error " + "\n" + ex.toString());
System.exit(1);
}
}
}
iam geeting error at runtime
Library user32 Loaded
Exception in thread "main" java.lang.UnsatisfiedLinkError: NativeMFCMsg.FindWind
ow(Ljava/lang/String;Ljava/lang/String;)I
at NativeMFCMsg.FindWindow(Native Method)
at NativeMFCMsg.main(NativeMFCMsg.java:29)
i doknow how to do this please help me...