VBA Routine doesn't work on a 64 bit Vista machine

VBA Routine doesn't work on a 64 bit Vista machine

Anonymous
Not applicable
514 Views
3 Replies
Message 1 of 4

VBA Routine doesn't work on a 64 bit Vista machine

Anonymous
Not applicable
Group,
I am not a programmer. I have a routine that I am posting that allows me to change the Title Bar on my 32 bit XP machine but fails with the error message listed in the jpg in the attached zip file when I try to use it on my Vista 64 bit machine and a 2010 beta version of AutoCAD.

Could anyone tell me how to change and recompile it (or do it for me for a small fee), so that I may use it on my Vista 64 bit station. There is a dvb and lsp file in the zip file too.

Many thanks!

Reid Addis
0 Likes
515 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
sheesh... that looks like my code. But im running 32-bit VBA on XP.

First look , seems like the .Hwnd property isnt available. Try this: go into the code, erase the ".Hwnd" at the end of "Application", then retype a dot "." at the end of the word Application.... when the intellisense pops up, see if HWnd is even listed.

Short of that, you might try "ThisDrawing.Application.Hwnd", or even search the help to see if there is an HWnd propert available.

if there isnt, Im *guessing* you can still use the API "FindWindow" call to find the acad window...
0 Likes
Message 3 of 4

Anonymous
Not applicable
I'm not sure who wrote the code originally as I received it second hand, but I can accomodate a small fee if we can get it to work.
I won't have a chance to try this until tonight but thanks.

BTW you guys ALL better get 64 bit OS machines and test your code.

Reid
0 Likes
Message 4 of 4

Anonymous
Not applicable
There is an hwnd32 option after you type in the . (period) which allows the routine to run and actually temporarily changes the titlebar when you run the associated lisp routine, but as soon as you click anywhere inside the ACA application, the titlebar goes back to normal.

So no ideas anyone?
0 Likes