분류 전체보기
-
클래스 모듈 - VB프로그래밍 언어/클래스 2009. 8. 9. 13:06
VERSION 1.0 CLASS BEGIN MultiUse = -1 'True Persistable = 0 'NotPersistable DataBindingBehavior = 0 'vbNone DataSourceBehavior = 0 'vbNone MTSTransactionMode = 0 'NotAnMTSObject END Attribute VB_Name = "Class1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = True Attribute VB_PredeclaredId = False Attribute VB_Exposed = True '전용변수 선언 Private mMydata As Long Private mResult As Long ..
-
데이터 타입 - MFCActiveX/Automation 2009. 8. 9. 00:08
// BSTR COleVariant // VARIANT COleCurrency // CURRENCY (VT_CY) COleDateTime // DATE (VT_DATE) COleSafeArray // SAFEARRAY .GetUBound() .GetElement() OLE_HANDLE HWND //Create the SAFEARRAY from the VARIANT ret. COleSafeArray sa(ret); //Determine the array's dimensions. long lNumRows; long lNumCols; sa.GetUBound(1, &lNumRows); sa.GetUBound(2, &lNumCols); //Display the elements in the SAFEARRAY. lo..
-
자동화 - MFCActiveX/Office 2009. 8. 8. 22:30
* 엑셀 // to automate Microsoft Excel 97, Excel 2000, or Excel 2002 1. 새로운 MFC 어플리케이션 프로젝트를 생성한다. 2. 자동화 서버의 타입 라이브러리로 부터 래퍼 클래스(IDispatch)를 생성한다. Microsoft Excel 97 Microsoft Excel 8.0 Object Library // Excel8.olb, excel8.h Microsoft Excel 2000 Microsoft Excel 9.0 Type Library C:\Program Files\Microsoft Office\Office\Excel9.olb // excel9.h Microsoft Excel 2002 // OfficeXP Microsoft Excel 10.0 Typ..
-
Add-In - C++ActiveX/Office 2009. 8. 8. 22:26
IDTExensibility2 the Microsoft Add-In Designer Type Library (Msaddndr.dll) OnConnection OnDisconnection OnAddInsUpdate a COM add-in is installed or removed OnStartupComplete OnBeginShutdown ComAddin.h 참조 사이트: http://support.microsoft.com/kb/230689/en-us/
-
컬렉션ActiveX/Automation 2009. 8. 7. 16:18
STDMETHODIMP CallMethod(LPDISPATCH pDisp, LPOLESTR pszName, VARIANT* pvResult, UINT cArgs, VARIANTARG* rgVarParams) { if (NULL == pDisp) return E_POINTER; DISPID dwDispID; DISPPARAMS dispparams = {NULL, NULL, 0, 0}; dispparams.rgvarg = rgVarParams; dispparams.cArgs = cArgs; HRESULT hr = pDisp->GetIDsOfNames(IID_NULL, &pszName, 1, LOCALE_USER_DEFAULT, &dwDispID); if(SUCCEEDED(hr)) { hr = pDisp->I..
-
설치(installer) - InstallShield개발/배포 2009. 8. 4. 22:26
InstallShield 5.1 Free Edition Microsoft Visual Studio 6.0 CD * InstallShield 7.0 Professional 윈도우 XP에서 디버그가 안되네 // ?? 컴포넌트 속성 Description Status Text Display Name Visible 컴포넌트 체크 박스가 나타난다. Included File Groups 파일 그룹 속성 Shared 공유 파일로 지정 UnInstall시에 파일들이 삭제되지 않는다. Self-Refistered Potentially Locked 같은 이름의 파일이 지금 사용중이면 그 파일은 인스톨되지 않는다. Compressed Overwrite 복사할 파일과 같은 이름의 파일이 대상 폴더에 존재하는 경우 ALWAYS ..