• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

how to create .dll using c++ on linux(mandrake)??

@

@n!e

Guest
#1
hi,
i'm currently need to rebuild a existing .dll file.
The client.dll is a file which i dowload together with my other codes for a chat application written in java. Belows are the information bout the .dll:

"The client.dll has only one function, which calls
FlashWindow(HWND,true)

This is made through a JNI call, do the following steps to do that,
1. Compile all the classes in the source zip.
2. javah -jni FlashWindowListener ( you can find that class in ChatDialog.java)
3. You will now have a FlashwindowListener.h which has a method prototype
JNIEXPORT void JNICALL Java_FlashwindowListener_flashWindow(JNIEnv *, jobject, jint)
4. Provide a FlashwindowListener.cpp which has the function definition like below,
JNIEXPORT void JNICALL Java_FlashwindowListener_flashWindow(JNIEnv *env, jobject obj, jint hwnd)
{
FlashWindow((HWND)hwnd,TRUE);
}


Can anyone of u tell me in a more simply way on how to do it??
And how to use gcc command on linux?? What components i need in order to use the linux c++ compiler??
soli for the length & thanks in advance.
:eek:
 
#2
That sounds like it's a function using Windows API to create a window or something. Are you sure it would work under X?
 

Members online

No members online now.

Latest posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,015
Latest member
evaiwhitis