PDA

View Full Version : Trace DLL



mdmackillop
06-15-2006, 03:29 AM
I seem to have some conflicting programs on my PC. I have macro which includes the line Application.ActivePrinter = "Network", and this causes the code to hang. I've rerecorded this as a single line macro so there are no other interfering items. Is it possible to find out which DLL this is trying to use, as I suspect the original has been overwritten by a newer application (which I cannot remove).
Regards
MD

fumei
06-15-2006, 04:39 AM
Good one MD. I have NO idea how you would pinpoint a specific DLL for that instruction. I hope you find out! I mean it is not really doing anything - I mean no real action so to speak. It is simply making a setting by defining the Active printer.

So - are you saying making ANY active printer definition, changing the active printer to ANY printer causes a hang? Are you getting an error - or does it just hang?

What happens when you:Debug.Print Err.LastDllError

mdmackillop
06-15-2006, 04:56 AM
Hi Gerry,
It just hangs, no error messages.
BTW, I can change printers "manually". It's running the code that causes the problem.

fumei
06-15-2006, 05:08 AM
Oh dear. Uh...I am at a total loss.