Microsoft MVP성태의 닷넷 이야기
VS.NET 2005 : Navigate the .NET Framework and Your Projects with "My" [링크 복사], [링크+제목 복사],
조회: 10710
글쓴 사람
정성태 (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)
239정성태4/18/200611633Display a Web Page in a Plain C Win32 Application
238정성태4/17/200611552ASP.NET 2.0 의 Provider 관련 쪽 소스 공개
237정성태4/17/200611253Microsoft Application Verifier
236정성태4/17/200612512IIS6 - IE static resource caching problem
235정성태4/13/200611164"Atlas" Control Toolkit for April CTP Released
234정성태4/13/200611514Access Visual Studio 2005 Team System From Macintosh and UNIX Systems, and from within the Eclipse IDE
233정성태4/13/200611204More Workflow Videos
232정성태4/13/200612177Microsoft Visual C++ 2005 Redistributable Package
231정성태4/13/200611686Windows Presentation Foundation Hands-On-Labs - February 2006 CTP
230정성태4/13/200611530Microsoft Management Model Designer
229정성태4/13/200612536Discovery Wizard for SharePoint
228정성태4/13/200612068TeamPlain Web Access for Team System
227정성태4/13/200611879Scrum for Team System Released
226정성태4/13/200611800Visual Studio Team Foundation Server MSSCCI Provider Version 1.0
224정성태4/13/200611361VC++ - GroupLab Component Library
223정성태4/13/200610497MSBuild Community Tasks Project releases new version
225정성태4/13/20069918    답변글 Visual Studio 2005 Web Application Projects (RC1)
222정성태4/13/200610966Visual Studio 2005 Security Features and Tools
220정성태6/8/200610863Shared Source Common Language Infrastructure 2.0 Release [1]
219정성태8/4/200610704Simple List Extensions Specification
218정성태4/13/2006113023rd party library - EZShellExtensions.Net 1.0 [1]
217정성태4/13/200611073Bug Details: GC fails to load in server mode if config file contains none ASCII characters
215정성태4/13/200611220http://www.400plusdifferences.com/
214정성태4/13/20069703Team Foundation Server, Biztalk 2006
216정성태4/13/200611081    답변글 Team Foundation Server 시험판 공개 다운로드
213정성태4/13/200611165Introduction to the MSN Messenger Activity SDK
... 31  32  33  34  35  36  37  [38]  39  40  41  42  43  44  45  ...