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.
Hi.
I'm witting because you asked me to help you.
Sadly i don't code in VB6.
If you can give the code to .net (i show it's not very long), i'll try to help.
Or i'll try to convert it if i have time but i'm a busy man
Thanks for offering to help with my problem. I managed to get the company to buy a copy of v s 2008 ad would still like to try and tackle this problem.
Now I have .net, if you can still help it would be great.