Is there any particular "way" to clean up? I have a program with a command button, a commondialog control and a bit of code to open a cart chunk on a wave file. It has all of the varaibles DIM'ed properly and the file is closed once the routine reads data out of the file and assigns them to...
Here's a new twist to this... I'm using thread222-1043122 exactly as it is posted here. On any of the forms that are NOT the startup form, I can hook and unhook to my hearts content and have no problem. On the main form of the project, if I unhook directly in the Form_QueryUnload event, and...
Before everyone gets too confused, I made a mistake in which code example I am using... it is here: thread222-1043122
I suppose that global subclassing may be the way to go, since I still can't seem to get this to work on multiple forms/objects. I think where I'm running into trouble is that...
I think maybe you can check the "uptime" of the PC... Only other thing I can think of is to ping the computer and track the time between pings. I don't think Windoz even has a performance counter for the link uptime.
I did actually discover my problem, and as usual, it takes devising a hoop to jump through to fix it. I discovered that if I create a subclass for two separate forms, I have to keep both the form handles (hWnd's) and LocalPrevWndProc handles in separate variables and then ONLY unhook the...
Using the example in thread222-902639 or many other examples on this site, I seem to have a problem with my VB6 IDE closing when I exit my program that uses the following type of code to create a WM_MOUSEWHEEL hook:
LocalPrevWndProc = SetWindowLong(LocalHwnd, GWL_WNDPROC, AddressOf WindowProc)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.