Visual Basic Editor Reference Control Error

Visual Basic Editor Reference Control Error

Anonymous
Not applicable
496 Views
5 Replies
Message 1 of 6

Visual Basic Editor Reference Control Error

Anonymous
Not applicable
From the VBE I am trying to add the Microsoft Common Dialog Control from the Standard Toolbox but receive the following error message when opening program "The control could not be created because it is not properly licensed." Is this a licensing problem with AutoCAD or with Microsoft?
0 Likes
497 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
You're almost there.  Use regsvr32 to
"register" your comdlg32 (or whatever) file and things will be a lot
rosier.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
From
the VBE I am trying to add the Microsoft Common Dialog Control from the
Standard Toolbox but receive the following error message when opening program
"The control could not be created because it is not properly licensed." Is
this a licensing problem with AutoCAD or with
Microsoft?
0 Likes
Message 3 of 6

Anonymous
Not applicable
Windows comes with the runtime version of the Common Dialog Control. You
need a developer version. You can get it with any of their standalone
development languages.

Here's a link to a replacement that uses the API and requires no license:

http://code.acadx.com/downloads/004.htm

--
There are 10 kinds of people:
Those who understand binary and those who don't
http://www.acadx.com
http://vbxtender.sourceforge.net
0 Likes
Message 4 of 6

Anonymous
Not applicable
MS does not license the common dialog control for
use in vbA. I don't know if there is a 'workaround' for getting the actual
control to work, however there are tons of API based modules (common
dialog replacements) out there. It should not be too hard for you to find and
use one of them.

 

Regards,

  Jacob Dinardi


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
From
the VBE I am trying to add the Microsoft Common Dialog Control from the
Standard Toolbox but receive the following error message when opening program
"The control could not be created because it is not properly licensed." Is
this a licensing problem with AutoCAD or with
Microsoft?
0 Likes
Message 5 of 6

Anonymous
Not applicable
Thanks for the fix. Did as suggested used regsvr.exe from dos prompt and ran on comdlg32.ocx, received message successfully registered. Unfortunately received same error message when trying to add control dialog box to VBE userform. Still not rosy here.
0 Likes
Message 6 of 6

Anonymous
Not applicable
I believe that you must have VB in order to have a design-time development version of the control. Even then, you don't have a license to use that control in a VBA host environment.

Joe
--
0 Likes