calling method in java through rundll32
Hey guys, pretty stuck here could use a bit of input, tis much appreciated.
I have a system in which in another language (flash) and whenever a user inputs something in textbox a want to fire an event in my java program,
heres how i'm trying to do it at the moment
1. when the system first loads it calls the native DLL to provide it to a reference to the JVM and the listener object
2. an input is received from flash and it calls rundll32.exe , running the dll with some arguements
3. a function in the dll picks up the arguements, loads the refrences to the JVM and the listener object from file and calls a method on that object
At the moment most of it is working, but when i try to execute "rundll32 myDll,myEntryPoint <args>" i just get an error
the strange thing is, at the end of my init code in my dll (called by java) i call the input received function, it reads the location of the JVM and jobject from file fine and calls the method.
So i suppose the question im asking is... is what im trying to do actually possible? or is there another way to do it that would not cause me so many problems?
Anyway, thanks in advance.
ee