Message 1 of 3
ATL ObjectArx works from Acad VBA but not from VB
Not applicable
07-31-2002
07:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm trying to create a ATL (COM Application) and I'm confused here.
First scenario:
I created a ATL project, added an ATL Object & added a method to it,
then I added the ObjectArx code and it loaded fine in AutoCAD Map and the
AcadTest module run successfully from AutoCAD Map.
I wrote a simple module in AutoCAD Map VBA to communicate with the ATL
Object I created and it worked fine.
The problem is when I copied the same code in VBA under Excel, it gave
me an error when creating the Object "Set sTest = New MyAtlObject.MyMethod"
it gave me the following error: "Automation Error. The specified module
could not be found"
The second scenario:
I created an ObjectArx project from VC++ and added an ATL Object from
the ObjectArx Toolbar, and created a method.
I end up with the same problem.
I even made a reg file for the application with no luck. Also when I try to
run the "Register Control" from the VC++ "Tolls" menu, it gives me the
following error: "The specified module could not be found".
Can anyone tell me what's wrong here as this is driving me nuts. Your help
will be deeply appreciated.
Best regards
Wael Bakr
I'm trying to create a ATL (COM Application) and I'm confused here.
First scenario:
I created a ATL project, added an ATL Object & added a method to it,
then I added the ObjectArx code and it loaded fine in AutoCAD Map and the
AcadTest module run successfully from AutoCAD Map.
I wrote a simple module in AutoCAD Map VBA to communicate with the ATL
Object I created and it worked fine.
The problem is when I copied the same code in VBA under Excel, it gave
me an error when creating the Object "Set sTest = New MyAtlObject.MyMethod"
it gave me the following error: "Automation Error. The specified module
could not be found"
The second scenario:
I created an ObjectArx project from VC++ and added an ATL Object from
the ObjectArx Toolbar, and created a method.
I end up with the same problem.
I even made a reg file for the application with no luck. Also when I try to
run the "Register Control" from the VC++ "Tolls" menu, it gives me the
following error: "The specified module could not be found".
Can anyone tell me what's wrong here as this is driving me nuts. Your help
will be deeply appreciated.
Best regards
Wael Bakr