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

Discussion in 'Linux & BSD' started by @n!e, Aug 3, 2003.

  1. @n!e

    @n!e Guest

    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. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    That sounds like it's a function using Windows API to create a window or something. Are you sure it would work under X?