LoadLibrary issues ?
Hi all, I am new to java. Please pardon me if this question is a newb question.
Currently, I am using JNI to interface with MFC (dll), we call it A.dll. I have another dll (COM dll) that the MFC (i.e. A.dll) interfaces with. Lets call this COM dll B.dll. B.dll have have the ability to event raise to A.dll. I have tested it by calling A.dll from an VB executable and the event raise succeed. However, when I use loadlibrary, the events seemed to be block or not even raised at the b.dll level. Please note that I had used the same dll throughout.
Thanks in advance for the advice.
[600 byte] By [
JNoobiea] at [2007-11-27 3:20:44]

Thanks Pundeer. I had implmented the natvie methods in my java app. Declare it as public native ...blah blah. I had also compiled the mfc header file using -java -jni etc. Maybe a slight overview of things to make things clearer.
I have Java app->MFC dll->COM dll. I manage to call API from Java to MFC to COM. Meaning using native methods declared in java to call MFC methods which is actually a wrapper on COM dll. The Java to COM path is established and working fine. However, the opposite path from the COM to java isn't working very well. Existingly my COM will raise receive and event but it doesn't get raised in my MFC. I had traced the problem to be on the Java portion because the exact MFC dll was loaded with a VB exe and the event receive was working fine. However, when I tried to call it from Java, the event don't get received at my MFC end. Umm.. sorry for the confusing words. Please feel free to shoot me with questions for more clarity.Or if there are some constraints involved in loadlibrary such as event raising from COM to MFC when it involves multiple chain loading of components, please let me know too. Thanks a lot for all the help.