DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

OLE Automation, WIN10, Visual Studio 2019, Reference DcadExp25x64.tlb

Started by bpa, December 10, 2019, 01:25:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bpa

Have used DesignCad for many years and made various applications. Want to recompile older applications to DesignCad 2D ver.25 using Visual Studio 2019. DesignCad doesn't appear in tap COM under Reference Manager. When browsing to DcadExp25x64.tlb a fault comes up: "A reference to ...DcadExp25x64.tlb could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component. Any suggestion what to do?

Juergen

You can't use type libraries. Add the corresponding designcad.dll. That works.
Greetings,
Juergen

bpa

Thank you, Juergen, I really appreciate you help :)
I have now attached DcadExp25x64.dll in MVS 2019 as reference. But as you can see from the attached snap shot DesignCAD.Application is not defined. The definition: DcApp=DesignCADApplication_definst.Application comes from an earlier version of Visual Studio and DesignCAD.

Do you know how to make a correct definition so I can have my program compiled and working? The bin-folder in Solution Explorer have files which comes from an earlier version of Visual Studio and DesignCAD.

bpa

It is running now. DcadExp25x64.tlb converted to  DcadExp25x64.dll and referenced in VisualStudio Community 2019.
See attached snap shos ;D