| |
#include <windows.h>
#include <stdio.h>
int main()
{
char buff[MAX_PATH] =
"C:\\"
"Documents and Settings\\"
"lightbox\\"
"My Documents\\"
"EXCEL\\"
"販売管理.xls";
LPTSTR lpDrive;
LPTSTR lpPath1;
LPTSTR lpPath2;
LPTSTR lpPath3;
LPTSTR lpPath4;
LPTSTR lpFile;
LPTSTR lpExt;
// ここにコードを記述
printf( "%s\n", lpDrive ); // C:
printf( "%s\n", lpPath1 );
printf( "%s\n", lpPath2 );
printf( "%s\n", lpPath3 );
printf( "%s\n", lpPath4 );
printf( "%s\n", lpFile ); // 販売管理
printf( "%s\n", lpExt ); // xls
return 0;
}
| |