Contents Active X DDE OLE COM ACTIVEX Active

  • Slides: 21
Download presentation

Contents § Active. X 개념 - DDE, OLE, COM, ACTIVEX § Active. X 컨트롤

Contents § Active. X 개념 - DDE, OLE, COM, ACTIVEX § Active. X 컨트롤 제작 § 일반 응용 프로그램에서 Active. X 사용하기 § 웹에서 Active. X 사용하기 § Active. X 활용 예 CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 개념(cont. ) § COM의 불편함을 보완한 것이 Automation § Automation을 보완한 것이

Active. X 개념(cont. ) § COM의 불편함을 보완한 것이 Automation § Automation을 보완한 것이 Active. X § Active. X (세 개의 함수 이용 : Automation과 동일) - Get. Property - Set. Property - Invoke. Helper CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 개념(cont. ) § Automation은 사용자가 직접 작업하지만, Active. X는 자동적 § 으로

Active. X 개념(cont. ) § Automation은 사용자가 직접 작업하지만, Active. X는 자동적 § 으로 생성 예) bmp 출력 draw. ocx ① OCX 파일 함수 Char *file Int x; Int y; BOO Draw. Image() CBNU DBNIS Lab. ② Method & Property Set. Property(…) Get. Property(…) Invoke. Helper(…) ③ 클라이언트 내부 Set. Xpos Get. Xpos BOOL Drwa. Image() DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작 CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작 CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작(Cont. ) CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작(Cont. ) CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작(Cont. ) CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작(Cont. ) CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작(Cont. ) CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작(Cont. ) CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 컨트롤 제작(Cont. ) § 소스를 보면 Test. Ctrl. cpp에 Set. Text, Get.

Active. X 컨트롤 제작(Cont. ) § 소스를 보면 Test. Ctrl. cpp에 Set. Text, Get. Draw. Type, Set. Draw. Type함수가 추 가되어 있는 것을 볼 수 있을 것이다. 이 함수들을 다음과 같이 수정한다. void CTest. Ctrl: : Set. Text(LPCTSTR str. Text) { m_str. Text = str. Text; Invalidate. Control; } short CTest. Ctrl: : Get. Draw. Type() { return m_n. Draw. Type; } void CTest. Ctrl: : Set. Draw. Type(short n. New. Value) { m_n. Draw. Type = n. New. Value; Invalidate. Control; Set. Modified. Flag(); } CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

일반 응용 프로그램에서 Active. X사용하기 CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

일반 응용 프로그램에서 Active. X사용하기 CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

일반 응용 프로그램에서 Active. X사용하기 § void § CUse. Active. XDlg: : On. Text.

일반 응용 프로그램에서 Active. X사용하기 § void § CUse. Active. XDlg: : On. Text. Button() { Update. Data(); m_Test. Ctrl. Set. Text(m_str. Text); } void CUse. Active. XDlg: : On. Selchange. Draw Type. Combo() { Update. Data(); m_Test. Ctrl. Set. Draw. Type(m_n. Dr aw. Type); } CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

웹에서 Active. X 사용하기(Cont. ) § <html> § § § <head> <meta name="GENERATOR" content="Microsoft

웹에서 Active. X 사용하기(Cont. ) § <html> § § § <head> <meta name="GENERATOR" content="Microsoft Front. Page 5. 0"> <meta name="Prog. Id" content="Front. Page. Editor. Document"> <meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601 -1987"> <title>새 페이지 1</title> <meta name="Microsoft Theme" content="kreligion-blue 011, default"> </head> § <body> § § § § <p> <object classid="clsid: 0 D 886696 -C 7 CE-11 D 3 -A 17508002 BF 17507" id="Test 1" width="237" height="257"> <param name="_Version" value="65536"> <param name="_Extent. X" value="6271"> <param name="_Extent. Y" value="6800"> <param name="_Stock. Props" value="0"> </object> </p> § </body> § </html> § § CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

웹에서 Active. X 사용하기(Cont. ) <form method="POST" method="get" name="form"> <input type="text" name="Text. Edit" value="Active.

웹에서 Active. X 사용하기(Cont. ) <form method="POST" method="get" name="form"> <input type="text" name="Text. Edit" value="Active. X 테스트" size="20"> <input type="button" value="설정" onclick="On. Text. Button. Click"> <select name="Draw. Type. Combo" onchange="On. Draw. Type. Change"> <option value="0">사각형</option> <option value="1">원</option> </select></p> </form> CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

웹에서 Active. X 사용하기(Cont. ) <script language="vbscript"> sub On. Text. Button. Click() Test. Set.

웹에서 Active. X 사용하기(Cont. ) <script language="vbscript"> sub On. Text. Button. Click() Test. Set. Text form. Text. Edit. Value end sub On. Draw. Type. Change() Test. Draw. Type = form. Draw. Type. Combo. value end sub </script> CBNU DBNIS Lab. DBNIS. CBNU. AC. KR

Active. X 활용 예 § § § § Spread. Sheet Chart Calendar Media Player

Active. X 활용 예 § § § § Spread. Sheet Chart Calendar Media Player Setup Interface Game Login component Etc CBNU DBNIS Lab. DBNIS. CBNU. AC. KR