Milo Minderbinder
How in heaven's name do I write a JNI interface dll which instantiates a windowed activex, in a way which doesn't show any windows, dialogs or other GUIs but does handle the messages generated by the control?
I've done the JNI bit including the callbacks into the jvm in the message handlers, but I can't find a way of creating the activex object which exposes the message handlers without creating it in something like a CDialog. This would be fine, except for the missing parent window (can't get hWnds from jvm pointers) which I need to create the (modeless) dialog. The dll is derived from CWinApp.
I feel like I've stuffed my cheeks with crab apples and am paying good money to be beaten about the head with a shoe.
It begs the question: why am I doing this?

<< Home