Microsoft MVP성태의 닷넷 이야기
VS.NET 2005 : Navigate the .NET Framework and Your Projects with "My" [링크 복사], [링크+제목 복사],
조회: 10713
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일

VC++ 2005 에서는 .NET 용 STL 라이브러리를 내놓더니만, VB.NET 2005 진영에서는 "My" 라는 제법 유용한 함수들이 모인 Namesppace 를 제공해 주고 있습니다.

아래의 MSDN 매거진에 관련기사가 실려 있습니다.
http://msdn.microsoft.com/msdnmag/issues/04/05/VisualBasic2005/default.aspx

그런데, VS.NET 2005 Beta1 에서 많은 부분이 바뀌어서 위의 토픽에서 제공하는 소스가 컴파일 조차 되지 않습니다. 첨부된 파일에는 해당 토픽의 프로젝트를 VS.NET 2005 Beta1 에서 컴파일 되도록 소스 수정이 되어진 버전과, VB.NET 이외의 언어에서는 어떻게 사용할 수 있는 지를 보여주기 위해 초간단 C# 예제를 실어 두었습니다.

다른 언어에서의 사용은 다소 불편할 수가 있는데요.
딱 2가지 절차가 더 추가됩니다.

1. "Microsoft.VisualBasic" 참조 추가
2. using Microsoft.VisualBasic.MyServices; 추가
3. VB.NET 에서는 "My" 로 직접 접근 하던 것을, 다음과 같이 인스턴스 생성 후 접근.
  MyComputer myCom = new MyComputer();
  bool bAvailable = myCom.Network.IsAvailable;
 
물론, 간단한 Base 클래스 하나 만들어서 3번 과정을 이미 해둔 것을 만들어 놓으면 다른 언어에서도 VB.NET 과 동일한 형식으로 접근이 가능할 것입니다. 어차피 static 기능의 함수들이므로. ^^








[최초 등록일: ]
[최종 수정일: 12/25/2004]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  [37]  38  39  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
269정성태5/4/200612009Visual Studio 2005 Team System Level 200 Course Material
268정성태5/4/200612386Microsoft Component Installer Software Development Kit for Windows (x86) Version 2.0
267정성태5/4/200612376101 Code Samples for Visual Basic 2005
266정성태5/3/200614341Consolas Font Pack for Microsoft Visual Studio 2006 [2]
264정성태5/1/200613829Team System for C++ Developers
262정성태5/1/200623899Registry 등록 없이 COM 개체 사용 [1]파일 다운로드2
261정성태4/30/2006135484GB 메모리 인식 [2]
259정성태4/30/200612266Building ASP.NET 2.0 Web Sites Using Web Standards
260정성태4/30/200611721    답변글 XHTML Validator Modulle
258정성태4/29/200612273WebServiceStudio 2.0
263정성태5/1/200611791    답변글 Calling an Arbitrary Web Service
257정성태4/29/200611774TypeForwardedToAttribute
256정성태4/29/200611999Windows API - Using Condition Variables
252정성태4/26/200611950한글 관련 메세지 정리파일 다운로드1
251정성태4/26/200612607IIS 7.0 에서 소개되는 새로운 기능들 [1]
250정성태4/25/200613216툴 소개: VisualNDepend
249정성태4/25/200619225Integrating a debugger into Reflector
265정성태5/1/200613534    답변글 Deblector: First Version
285정성태5/15/200611554    답변글 New Deblector version ( an Add-In to debug with reflector )
248정성태4/21/200611895VS.NET 2005 Add-In : CSS Properties Window
247정성태4/21/200611759VS.NET 2005 Add-In : Spell Checker for HTML and ASP.NET pages
244정성태4/19/200611661SQL Server 2005 Service Pack 1
241정성태4/19/200611175VSTS Annotations for C++: Beyond Just Documenting Method Behavior [1]파일 다운로드1
240정성태4/18/200611829Accessing System Power and Network Status Using SENS
253정성태4/29/200612016    답변글 [HowToUse]: Accessing System Power and Network Status Using SENS
239정성태4/18/200611633Display a Web Page in a Plain C Win32 Application
... 31  32  33  34  35  36  [37]  38  39  40  41  42  43  44  45  ...