Page 1 of 1

GetUnits does not work

Posted: 07 Oct 2010, 19:20
by sbsaban
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

Re: GetUnits does not work

Posted: 08 Oct 2010, 17:33
by yaroslav
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");