GetUnits does not work

Discuss and ask questions about CAD DLL (CAD Image DLL, CAD Importer DLL).

Moderators: SDS, support, admin

Post Reply
sbsaban
Posts: 3
Joined: 07 Oct 2010, 19:15

GetUnits does not work

Post by sbsaban » 07 Oct 2010, 19:20

Hello,

When I add this line to your demo_API program the return value is 0x00000000

CADUNITS CADGetUnits;

CADGetUnits = (CADUNITS) GetProcAddress(hCADImporter, "CADGetUnits");

What am I doing incorrectly

yaroslav
Posts: 12
Joined: 19 May 2009, 10:47

Re: GetUnits does not work

Post by yaroslav » 08 Oct 2010, 17:33

Hello,

You just need to change "CADGetUnits" to "CADUnits":

Code: Select all

CADGetUnits = (CADUNITS) GetProcAddress(hCADImporter, "CADGetUnits");

Code: Select all

CADGetUnits = (CADUNITS) GetProcAddress(hCADImporter, "CADUnits");

Post Reply