Click to See Complete Forum and Search --> : how to create .dll using c++ on linux(mandrake)??


@n!e
08-03-2003, 04:16 PM
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.
:confused:

bwkaz
08-06-2003, 07:34 PM
You can't make a .dll on Linux. If this is related to your earlier question (a couple weeks ago, at least) about your chat program, then do as a couple of people suggested then -- find a different chat program.

You also don't have window handles (hWnd's), so even making a .so (with that code in it) wouldn't work.