Microsoft NET COM Chetan Parmar Microsoft Corporation NET

  • Slides: 46
Download presentation
Microsoft. NET과 COM의 상호 운용성 Chetan Parmar 기술 지원 엔지니어 개발자 지원, 고객기술지원부 Microsoft

Microsoft. NET과 COM의 상호 운용성 Chetan Parmar 기술 지원 엔지니어 개발자 지원, 고객기술지원부 Microsoft Corporation

프로그래밍 모델. NET 모델 q q new 연산자 cast 연산자 메모리 관리 예외 COM

프로그래밍 모델. NET 모델 q q new 연산자 cast 연산자 메모리 관리 예외 COM 모델 q q Co. Create. Instance Query. Interface 참조 카운팅 HRESULTS

가져온 서명 변환 예제 COM 메서드 서명 HRESULT Format. Date( BSTR s, DATE d,

가져온 서명 변환 예제 COM 메서드 서명 HRESULT Format. Date( BSTR s, DATE d, [out, retval] int *retval); . NET 메서드 서명 int Format. Date(String s, Date. Time d);

형식 변환 정보 u u u u u DATE BSTR Safe. Array(int) OLECOLOR CURRENCY

형식 변환 정보 u u u u u DATE BSTR Safe. Array(int) OLECOLOR CURRENCY VARIANT Interface IMy. Interface coclass Bar IEnum. Variant System. Date. Time System. String int[ ] uint System. Decimal System. Object interface IMy. Interface class Bar IEnumerator

예제 : Excel 개체 사용 using Excel; public static void Main() { try {

예제 : Excel 개체 사용 using Excel; public static void Main() { try { Excel. Application app = new Excel. Application(); app. Workbooks. Add( Excel. Xl. WBATemplate. xl. WBATWork. Sheet ); app. Visible = true; app. User. Control = true; } catch (Exception) { Console. Write. Line("Error creating Excel application!"); } }

내보낸 서명 변환 예제. NET 메서드 서명 : int Format. Date(String s, Date. Time

내보낸 서명 변환 예제. NET 메서드 서명 : int Format. Date(String s, Date. Time d); COM 메서드 서명 HRESULT Format. Date(BSTR s, DATE d, [out, retval] int *retval);

형식 변환 정보 u u u u u DATE BSTR Safearray(int) OLECOLOR DECIMAL VARIANT

형식 변환 정보 u u u u u DATE BSTR Safearray(int) OLECOLOR DECIMAL VARIANT Interface IMy. Interface Class CMy. Class IEnum. Variant System. Date. Time System. String int[ ] System. Drawing. Color System. Decimal System. Object interface IMy. Interface coclass CMy. Class IEnumerator

개체 사용자 정의 상호 운용성을 향상시키기 위해 u 사용자 지정 속성은 형식의 노출 방법을

개체 사용자 정의 상호 운용성을 향상시키기 위해 u 사용자 지정 속성은 형식의 노출 방법을 변경하는 데 사용합니다. l l l l Com. Visibile. Attribute Guid. Attribute Disp. Id. Attribute Prog. Id. Attribute Interface. Type. Attribute Marshal. As. Attribute Class. Interface. Attribute

리소스 u SDK 설명서 : . NET Framework SDK의 “. NET Framework 를 사용한

리소스 u SDK 설명서 : . NET Framework SDK의 “. NET Framework 를 사용한 프로그래밍”과 “관리되지 않는 코드와의 상호 운 용성” 참조 l l l u u SDK 예제 : C: Program Files. . . Framework. SDKSamplestechnologiesinterop 뉴스그룹 l u . NET Framework에 COM 구성 요소 노출 관리되지 않는 DLL 기능 사용 상호 운용성을 위한 설계 고려 사항 고급 COM Interop 마샬링 microsoft. public. dotnet. framework. interop 서적 l . NET and COM: The Complete Interoperability Guide l Sams; ISBN: 067232170 X