Home > Software engineering >  McISendString
McISendString

Time:09-28

Why path wrote in vs running a voice, and open exe file but there was no voice?

CodePudding user response:

The file path is wrong? Exe kao the music files to the same directory you try

CodePudding user response:

SetCurrentDirectory
The SetCurrentDirectory function changes The current directory for The current process.

BOOL SetCurrentDirectory (
LPCTSTR lpPathName//pointer to the name of the new current directory
);

The Parameters
LpPathName
Pointer to a null - terminated string that specifies the path to the new current directory. This parameter may be a relative path or a fully qualified path. In either case, the fully qualified path of the specified directory is calculated and stored as the current directory.
The Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Few
Each process has a single current directory made up of two parts:

A disk designator that is either A drive letter followed by A colon, or A server name and the share name (\ \ servername \ sharename)
A directory on the disk designator
QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winbase. H.
The Import Library: Use kernel32. Lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also
The File I/O the Overview, the File Functions provides, GetCurrentDirectory