나중에 수정해 쓰겠다고 해놓고선 아직도 쓰고 있는 그지같은 코멘트 매크로..
macro myMacro()
{
myBuffer = GetCurrentBuf()
Input_text = Ask("Type the description :")
today = GetSysTime(1)
date = ""
date = cat(date, today.Year)
if (today.Month < 10)
date = cat(date,"0")
fdate = cat(fdate, today.Month)
if (today.Day < 10)
date = cat(date, "0")
fdate = cat(date, today.Day)
hWnd = GetCurrentWnd()
LineFirst = GetWndSelLnFirst(hWnd)
string = GetBufLine(myBuffer, LineFirst)
DelBufLine(myBuffer, LineFirst)
if (strlen(string) > 0)
InsBufLine(myBuffer, LineFirst, "@string@ //@date@ HongGilDong - @Input_text@")
else
InsBufLine(myBuffer, LineFirst, "@string@//@date@ HongGilDong - @Input_text@")
}
반응형
'Tips!? Tips!!' 카테고리의 다른 글
[USB]USB 메모리에서 자동 실행하기 (1) | 2009.06.07 |
---|---|
Visual C++ 6.0 에서 많이 쓰이는 단축키 (0) | 2009.02.01 |
VC에서 소스코드를 html로 변환 하기 (0) | 2009.02.01 |