검색결과 리스트
.h에 해당되는 글 3건
- 2012.04.11 [.Net] 가비지 수집 모니터링
- 2011.02.15 [링크] 매크로를 이용한 Visual Studio .h .cpp 전환
- 2008.10.15 template을 이용하여 C++을 작성할때는 꼭 .h에서 작성하자 2
글
CLR Profiler : http://www.microsoft.com/download/en/details.aspx?id=13382
http://www.microsoft.com/downloads/ko-kr/details.aspx?familyid=fd02c7d6-5306-41f2-a1be-b7dcb74c9c0b
* PerfMon.exe
위치 : C:\Windows\System32\PerfMon.exe
'.Net > .Net' 카테고리의 다른 글
[.Net] IPC (0) | 2012.04.16 |
---|---|
[.Net] 관리코드에서 메모리 누수 및 방지 (0) | 2012.04.11 |
[.Net] CLR Inside Out: 메모리 문제 조사 (0) | 2012.04.10 |
[.Net] Func 및 Action 제네릭 대리자에 가변성 사용(C# 및 Visual Basic) (0) | 2012.04.10 |
[C#] Implementing a Database Factory Pattern in C# ASP .NET (0) | 2012.03.25 |
트랙백
댓글
글
Visual Assist X를 사용하면 제일 편한 기능중 하나가 .h와 .cpp간의 전환 단축키 입니다.
이걸 매크로로 구현한 글이 있어서 링크 합니다.
Visual Studio 2005, 2008에서 동작 확인했습니다.
Function OpenDocument(ByVal path As String) As Window If (My.Computer.FileSystem.FileExists(path)) Then OpenDocument = DTE.ItemOperations.OpenFile(path) Else Dim filename As String filename = path.Substring(path.LastIndexOf("\") + 1) Dim item As ProjectItem item = DTE.Solution.FindProjectItem(filename) If (item IsNot Nothing) Then If (item.Document Is Nothing) Then OpenDocument = item.Open() Else OpenDocument = item.Document.ActiveWindow() End If End If End If If (OpenDocument IsNot Nothing) Then OpenDocument.Activate() End If End Function Sub ToggleBetweenSourceAndHeader() Dim document As Document document = DTE.ActiveDocument Dim path As String path = document.FullName Dim ext_position As Integer ext_position = path.LastIndexOf(".") If (ext_position <> -1) Then Dim ext As String ext = path.Substring(ext_position) Dim path_without_ext As String path_without_ext = path.Remove(ext_position, ext.Length()) If (ext.ToLower().Contains(".cpp")) Then ' .cpp -> .hpp or .h If (OpenDocument(path_without_ext & ".hpp") Is Nothing) Then OpenDocument(path_without_ext & ".h") End If ElseIf (ext.ToLower().Contains(".cxx")) Then ' .cxx -> .hxx OpenDocument(path_without_ext & ".hxx") ElseIf (ext.ToLower().Contains(".cc")) Then ' .cc -> .hh OpenDocument(path_without_ext & ".hh") ElseIf (ext.ToLower().Contains(".c")) Then OpenDocument(path_without_ext & ".h") ElseIf (ext.ToLower().Contains(".h")) Then ' .h -> .c or .cpp If (OpenDocument(path_without_ext & ".c") Is Nothing) Then OpenDocument(path_without_ext & ".cpp") End If ElseIf (ext.ToLower().Contains(".hpp")) Then ' .hpp -> .cpp OpenDocument(path_without_ext & ".cpp") ElseIf (ext.ToLower().Contains(".hxx")) Then ' .hxx -> .cxx OpenDocument(path_without_ext & ".cxx") ElseIf (ext.ToLower().Contains(".hh")) Then ' .hh -> .cc OpenDocument(path_without_ext & ".cc") End If End If End Sub
'IDE/Tool > Visual Studio' 카테고리의 다른 글
[Visual Studio] 마법사 만들기 (0) | 2012.03.08 |
---|---|
[Visual Studio 2008] Unicode 기반 프로그램에서 한글이 깨지는 현상 (0) | 2011.03.01 |
FAT32, NTFS 포맷 방식이 컴파일에 영향을 준다. (1) | 2008.10.12 |
Platform SDK 설치 (1) | 2008.09.18 |
[Visual Studio 2005] Windows 2003에서 Visual Studio 2005 SP1 설치 오류 문제 (0) | 2008.02.20 |
트랙백
댓글
글
C, C++는 파일을 작성할때는
보통 헤더파일에는 선언
구현파일에는 정의를 많이 넣는데요
템플릿을 사용할때는 헤더와 정의를 헤더파일에 넣어야 합니다.
이유인즉슨 컴파일 과정에서 템플릿의 정의부분이 필요하기 때문입니다.
ps. 한파일에 넣지 않고 하는 방법도 있다고 하는데 가장 손쉬은 방법은
헤더에 다 작성하는 방법입니다.
'C/C++ > VC++ / MFC' 카테고리의 다른 글
타입 변환 연산자 (0) | 2009.08.13 |
---|---|
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (0) | 2008.11.12 |
스택에 생성하는 CWnd를 상속받은 클래스에서는 PostNcDestroy에서 절대로 delete this를 하지마라 (2) | 2008.09.30 |
유용한 단축키를 제공하는 CodeWiz (0) | 2008.09.26 |
VC++ 에서 주석 다는 단축키 (0) | 2008.09.20 |
RECENT COMMENT