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 |
Tags
- Delphi
- 기초
- 파라미터
- dll
- 델파이
- 인스톨
- VB.NET
- SQL
- WIN32 SDK
- PostgreSQL
- 데이터베이스
- 파이어버드
- Visual Studio 2005
- 소니
- 셋업
- Firebird
- c#
- SDK
- 시리얼 통신
- xml
- 입문
- 초보
- winsock
- 예제
- MFC
- MySQL
- 문자열
- 설치
- Visual Basic
- vb
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