cannot register the AcFocusCtrl16.dll

cannot register the AcFocusCtrl16.dll

Anonymous
Not applicable
902 Views
4 Replies
Message 1 of 5

cannot register the AcFocusCtrl16.dll

Anonymous
Not applicable

I posted this on the Autocad 2012 forum but realize it should be here instead.

 

So i have managed to get my VBA apps working up to version 2010 (with the help of the AcFocusCtrl).  I just upgraded to AutoCAD 2012. For some reason I cannot get the ACFocusCtrl on my VBA userform.  When I try to drag it onto the userform, I get an error "Class Not Registered".  Can anyone help me out as to how I can load that control?  It has helped me before with the silly modal issues over the last few years.  PS: I cannot abandon VBA yet. I have to try and get this fixed!.

 

I reinstalled the VBA (64 bit) add-on but still have no luck.  I am having a focus problem but cannot get the acFocusCtrl to load and that is what fixed my issues when i was running 2010.

 

Please help!

0 Likes
903 Views
4 Replies
Replies (4)
Message 2 of 5

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

was your 2010-AutoCAD also running on 64bit-OS? My first idea was that you have 64bit and the DLL is written for 32bit. And to get one obstacle more into the conflicts, AutoCAD-VBA is running based on 32bit, but out-of-process and so I'm not sure if the controlling of the focus will work in that constellation. Well, all I wrote is only valid, when your 2010 was running in 32bit-base and now you changed with 2012 to 64bit.

I would first try to search for Win-API's (functions) that puts focus to specific window-handles.

And one more idea would be, to use REGSVR32 to register the DLL, maybe it comes up with a message that helps for what to do now.

 

HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 5

ludesroc
Advocate
Advocate

We have the same problem. Have you been able to fix it?

 

Ludesroc
0 Likes
Message 4 of 5

Anonymous
Not applicable

Hi,

I have the same problem here. Any idea how to fix this? I just want to put AcFocusCtrl on Form but cannot do it as I am still getting message that "class not registered". Unfortunately I did not find any answer on the Internet.

 

Please advice,

Peter

0 Likes
Message 5 of 5

Anonymous
Not applicable
For everyone - you just need to install SERVICE PACK 1.
0 Likes