Home > Software engineering >  Vs2012 Excel error operation
Vs2012 Excel error operation

Time:10-11

The recent use of excel, want to use vs2012 operation,
But the error is shown in figure (not Excel itself), please answer

CodePudding user response:

Will move to XLSX file message in the corresponding folder,

CodePudding user response:

After I moved to the corresponding file, then debugging will be failure
A direct effect on excel useless before
Besides, why. On the Debug the XLSX file

CodePudding user response:

reference 1st floor zhao4zhong1 response:
to XLSX file to prompt information in the corresponding folder,


I think is in. XLSX generated when the directory, there is no set
Should be generated under the tip file on which the
But when I set up project is the default setting.
Arguably, should not be an error, isn't it

CodePudding user response:

_chdir, _wchdir
Change the current working directory.

Int _chdir dirname (const char *);

The dirname (const int _wchdir would *);

The Routine of Required Header Optional Headers Compatibility
_chdir & lt; Direct. H> Windows 95 and Windows NT
_wchdir & lt; Direct. H> The or & lt; Wchar. H> Windows NT


For additional compatibility information, see compatibility in the the Introduction.

Libraries

LIBC. LIB Single thread static library, retail version
LIBCMT. LIB Multithread static library, retail version
MSVCRT. LIB Import library for MSVCRT DLL, retail version


The Return Value

Each of these functions provides returns a value of zero if successful. A return value of - 1 are that the specified path could not be found, in which case errno is set to ENOENT.

The Parameter

Dirname

The Path of new working directory

Few

The _chdir function changes the current working directory to the directory specified by dirname. The dirname parameter must refer to an existing directory. This function can change the current working directory on any drive and if a new drive letter is specified in dirname, the default drive letter will be changed as well. For example, if A is the default drive letter and \BIN is the current working directory, the following call changes the current working directory for drive C and establishes C as the new default drive:

_chdir (" c: \ \ temp ");

When you use the optional backslash character (\) in paths, you must place two backslashes (\ \) in a C string literal to represent a single backslash (\).

_wchdir is a wide - character version of _chdir; The dirname argument to _wchdir is wide - a character string. _wchdir and _chdir fitting concepts identically otherwise.

Generic - Text Routine Mapping:

TCHAR. H Routine _UNICODE & amp; _MBCS Not Defined _MBCS Defined _UNICODE Defined
_tchdir _chdir _chdir _wchdir


Example

/* CHGDIR. C: This program USES the _chdir function to verify
* that a given directory exists.
*/

# include & lt; Direct. H>
# include & lt; stdio.h>
# include & lt; Stdlib. H>

Void main (int arg c, char * argv [])
{
If (_chdir (argv [1])
Printf (" Unable to locate the directory: % s \ n ", argv [1]).
The else
System (" dir *. Wri ");
}


The Output

Volume in drive C is CDRIVE
Volume Serial Number is 0 e17-1702

The Directory of C: \ write

04/21/95 01:06 p 3200 ERRATA. WRI
04/21/95 01:06 p 2816 README. WRI
2 the File (s) 6016 bytes
71432116 bytes free


The Directory Control Routines

See Also _mkdir _rmdir, system

_getcwd, _wgetcwd
Get the current working directory.

Char * _getcwd (char * buffer, int maxlen);

Would be * _wgetcwd (would be * buffer, int maxlen);

The Routine of Required Header Compatibility
_getcwd & lt; Direct. H> Windows 95 and Windows NT
_wgetcwd & lt; Direct. H> The or & lt; Wchar. H> Windows NT


For additional compatibility information, see compatibility in the the Introduction.

Libraries

LIBC. LIB Single thread static library, retail version
LIBCMT. LIB Multithread static library, retail version
MSVCRT. LIB Import library for MSVCRT DLL, retail version


The Return Value

Each of these functions provides returns a pointer to the buffer. A NULL return value are an error, and errno is set either to ENOMEM, indicating that there is insufficient memory to the allocate maxlen bytes (the when a NULL argument is given as buffer), or to ERANGE, indicating that the path is longer than maxlen characters.

The Parameters

Buffer

Storage location for path

Maxlen

The Maximum length of the path in the characters: char for _getcwd and would be for _wgetcwd

Few

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related