This is my first post and I've read many threads and tried many things to get this to work, sadly with no joy
Basically I have an application which is hosted in another application and would like to stop the host application from closing with a lock/unlock button on my application.
I have built a subclassing activeX dll in vb6 using various code snippets and stuff which is attached here with source code and test app.
Basically it works by getting handle under mouse, then getting parent handle and subclassing to stop a window being closed. It can also be used to display system messages received by the subclassed handle. It works fine when referenced in another vb app and used to subclass that application. and when registered and referenced in our application all the functions work but subclassing the app doesn't work.
I have read that you can't subclass an external app without your own app running in the same memory space. If my application can load an activeX dll can i just make part of my dll or it's code run in the same memory space as its host? how do i do it??
I'd like to be able to stop any application/form closing without having to use an external dll. And if possible I'd like it to be done in vb6 as this is all I have to work with.
any help would be appreciated.
Last edited by ernster; Apr 9th, 2008 at 05:04 AM.