The CreateCAD function creates a new CADImage object and loads data into it from the specified file.
hWindow Identifies the window that will get system messages during the file loading. Usually it is the main window of the client's application. If no file is specified, hWindow can be NULL.
lpFileName Points to a null-terminated string that specifies the CAD file name to be loaded. If this parameter is NULL, no file is loaded and the empty CADImage object is created.
If the function succeeds, the return value is a handle of a new CADImage object.
If the function fails, the return value is NULL. To get extended error information, call GetLastErrorCAD.
© 2003-2021 CADSoftTools
Go to CAD DLL