CreateCAD

  Functions >

CreateCAD

Previous pageReturn to chapter overviewNext page

The CreateCAD function creates a new CADImage object and loads data into it from the specified file.

 

Syntax:

 

HANDLE CreateCAD(

  HWND hWindow,

  LPCSTR lpFileName

);

 

 

Parameters:

 

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.

 

Return Value:

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.

 

 

See Also

 

CloseCAD  | CreateCADEx  | StopLoading


© 2003-2021 CADSoftTools

Go to CAD DLL