MKI_FileFindLocal (File I/O) Changed in Version 2014.2

www.CAD6.com

C++ Syntax

bool

MKI_FileFindLocal(

 const LPCWSTR f_pszOldName,

 MKI_FILENAMEW& f_rNewName );

 

Tries to find a file on the local machine. If it does not exist in the given path, the application searches all paths that the user stored, such as drawing paths, library paths, bitmap paths, and project paths.

 

Parameters

OldName

[const LPCWSTR] Address of file name to search.

NewName

[MKI_FILENAMEW&] Address of text buffer to receive the complete file name adapted to the local location.

 

Return Value

Returns true if successful, false if not.

 

Comment

This procedure will work for all types of file systems (FAT, Enhanced FAT, NTFS, HPFS). It is especially useful when trying to resolve external references to bitmaps or drawing references that were created on a different machine.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH