How to use comdlg32.ocx in AutoCAD 2016

How to use comdlg32.ocx in AutoCAD 2016

truewaytw
Enthusiast Enthusiast
1,838 Views
7 Replies
Message 1 of 8

How to use comdlg32.ocx in AutoCAD 2016

truewaytw
Enthusiast
Enthusiast

hi,

i reference the comdlg32.ocx for c:\windows\syswow64 , but cannot put it into my userform , how can fix the trouble ?

 

bruce

 

 

0 Likes
Accepted solutions (1)
1,839 Views
7 Replies
Replies (7)
Message 2 of 8

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

32bit OCX can only be used by 32bit applications.

 

If your operating system is based on 64bit then your AutoCAD and so VBA is running on 64bit.
You'll have to replace that controls by other ones supported on 64bit .

 

- 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 8

truewaytw
Enthusiast
Enthusiast

Hi alfred,

 

have any element do you know can be run in 64bits os like comdlg32.ocx ?

 

bruce

0 Likes
Message 4 of 8

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

>> have any element do you know can be run in 64bits os like comdlg32.ocx ?

Sorry, didn't need any, but there are some valuable suggestions in this search I guess, >>>click<<<

 

- 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 5 of 8

truewaytw
Enthusiast
Enthusiast

Hi Alfred,

 

       thanks.

 

bruce

0 Likes
Message 6 of 8

Anonymous
Not applicable

Hi @Alfred.NESWADBA

 

you wrote "32bit OCX can only be used by 32bit applications."

 

but while trying to answer to >>this post<<  I happend to meet >>This SO post<< which seem to say the opposite!

 

actually I succeeded at running "comdlg32.dll" in my full 64 environment (W7 SP1 64 bit & Autocad 2014)

 

am I correctly addressing the issue?

0 Likes
Message 7 of 8

norman.yuan
Mentor
Mentor

comdlg32.ocx and comdlg32.dll are not the same thing: the latter is Windows API. As the link you rfrerred to, it can be used in 64-bit process with proper P/Invok; while the former is the ActiveX UI wrapper to comdlg.dll, which is 32-bit, thus cannot be used in 64-bit VBA (since Acad2014).

Norman Yuan

Drive CAD With Code

EESignature

Message 8 of 8

Anonymous
Not applicable

I made a mess

thank you for catching that

0 Likes