Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- winsock
- 설치
- MySQL
- 소니
- 문자열
- 데이터베이스
- Visual Studio 2005
- 입문
- 파라미터
- MFC
- 시리얼 통신
- c#
- 인스톨
- 초보
- 델파이
- WIN32 SDK
- VB.NET
- PostgreSQL
- xml
- dll
- Firebird
- Visual Basic
- vb
- Delphi
- 파이어버드
- 예제
- SQL
- 기초
- 셋업
- SDK
Archives
- Today
- Total
프로그래밍 노트
현재 작업 디렉토리 얻기 본문
현재 작업 디렉토리 얻기
#include <stdio.h>
#include <direct.h> // _getcwd
#include <stdlib.h> // _MAX_PATH
#include <conio.h> // _getch
void main()
{
char szPath[_MAX_PATH]; // 최대 패스 길이[260]
// 실행 파일이 있는 디렉토리 얻기
_getcwd(szPath, _MAX_PATH);
printf("실행파일이 있는 디렉토리\->%s\n", szPath);
printf("아무키나 누르세요\");
_getch();
}
Comments