I am Java programmer who is pretty inexperienced when it comes to windows programming. I am trying to create a DLL that calls some native Windows code written by a third party. I can then call this DLL from my Java code via Java Native Interface.
The problem is, the functions I have to call from the DLL I am writing require that I pass an object of type HWND. In Visual C++ 6, I can get an HWND object if I am creating a Windows Application, but I need to create a Windows DLL, not an Application.
So, how can I create an object of type HWND inside a DLL? The only reason I have to pass the HWND object is because the native code uses a Windows Timer that it gets from the HWND obejct, so it doesn't have to be a sophisticated HWND object, just one that can supply a Windows Timer.