HOME 윈도우즈 JavaScript MFC WIN32 GDI+ activex WINCE version safecode 버젼 웹브라우져

ACTIVEX.ZIP

웹브라우져에 붙이기 위한 ActiveX 프로그래밍 방법   (created at 2006-09-29)   317  

  - ActiveX의 등록들어가며...얼마전 까지만 해도 ActiveX의 제작이나 사용은 나에겐 먼나라 같은 일이었다.그런데 그것이 현실로 다가올 줄이야. 흑흑...ActiveX의 제작까지는 델파이라는 훌륭한 매개체를 이용하여 손쉽게 작성할 수 있었다. 그런데 문제는 바로 이 제작된 ActiveX의 등록에 있었다. 이 ActiveX의 등록 방법에 대해 간단히 알아보자.AcitveX의 제작...ActiveX의 제작은 이미 여러번 강좌나 기타 책등...

ActiveX를 Safe한 Component로 등록하는 방법   (created at 2006-09-29)   194  

Install the appropriate registry keys for your control. You can do this by replacing the factory creation code (at the bottom of your control's implementation unit) with a call that creates a special factory with the object safety registry entries. Basical...

ATL/ActiveX 에서 자바스크립트로 데이터(문자열) 보내기   (created at 2006-09-29)   319  

음.. 보통 param 으로 엑티브X로 값을 넘겨 받아서 쓰는데요그 반대도 궁금해서 찾아봤더니 자료가 별로 없더군요.혹시나 해서 올립니다.1. 클래스뷰 인터페이스항목에서 메서드를 추가합니다2. 매개 변수 형식을 VARIANT*  로 하고 특성에 out과 retval을 설정합니다. (메서드 이름과 변수 이름은 적당히...)3. 구현부분을 다음과 같이 합니다.STDMETHODIMP CTest::TestMethod(VARIANT* pVal){ ...

ActiveX에서 바이너리 데이터 파라메터로 안깨지게 받는법   (created at 2006-09-28)   374  

보통 LPCTSTR로 선언해서 쓰는데 그럼 가다가 end of string 이후가 깨져버린다.그때 파라메터를 CHAR * 로 선언해서 쓰면된다.Visual C++ 6.0에서는 CHAR* 선언이 불가능하므로 수동으로 고쳐주면된다.이때 컨트롤 부분에서는 다음과 같은 부분도 수정해주어야 한다.VTS_BSTR로 선언되어진 부분을 VTS_PI1로 선언해주면된다.그러면 데이터 송수신시 깨지지 않는다.from ControlDISP_FUNCTION(CKlientCtrl...

ActiveX에 다이얼로그 붙이기   (created at 2006-09-28)   311  

ActiveX Control안에 다른 ActiveX Control을 올려놓을때는 차일드 속성외에..app에 initinstance에서 AfxEnableControlContainer();를 호출해줘야 합니다..예..BOOL CClientApp::InitInstance(){BOOL bInit = COleControlModule::InitInstance();if (bInit){// TODO: Add your own module initialization cod...

윈도우 옮기는 API - SetWindowPos   (created at 2006-09-28)   372  

 The SetWindowPos function changes the size, position, and Z order of a child, pop-up, or top-level window. Child, pop-up, and top-level windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and ...

GDI+ Programming 방법   (created at 2006-09-28)   356  

 [중요1] Graphics 개체를 사용한다.[중요2] 다음의 헤더선언을 꼭 해야된다        #include         using namespace Gdiplus;        #pragma comment(lib, "gdipl...

CFileDialog - File Open Example   (created at 2006-09-28)   243  

CFileDialog l_SampleDlg(TRUE,NULL,NULL,OFN_OVERWRITEPROMPT,"Text Files (*.txt)|*.txt|Comma Separated Values(*.csv)|*.csv||");      int iRet = l_SampleDlg.DoModal();      CString l_strFileName;&nbs...

투명 윈도우 만들기   (created at 2006-09-28)   292  

You should be able to use this demo as a skeleton application for your own project.A standard CDialog MFC EXE application was created with the wizard and apart from the standard supplied code, the following functions were overridden.void OnClose() Used to ...

마우스로 윈도우 드래그하여 이동시키는 비기   (created at 2006-09-28)   557  

윈도우 드래그해서 움직이고 싶은데 어떻게 하는지 모르시는 분은 다음의 이벤트를 추가해 보시라.  void Cgdiplus_demoDlg::OnLButtonDown(UINT nFlags, CPoint point){        // 다음과 같이 PostMessage를 넣어주면 간단히 구현 가능        ...

불투명 윈도우 만들기   (created at 2006-09-28)   364  

 * 불투명 윈도우 만들기방금전에 책에서 본 예제로 만든겁니다.님의 코드보다 더 자원을 먹을지는 모르겠지만 참고하세요.윈도 2000이상에서만 된다고 하네요.전역입니다 :// 투명 설정을 위한 상수 정의#define WS_EX_LAYERED       0x00080000#define LWA_ALPHA         ...

WinCE에서 Key Hooking하는 방법   (created at 2006-09-28)   544  

MSDN에서 알아낸 PDA폰에서의 키 후킹하는 방법입니다.=======================================================================================삼성 SPH-M4300에서 프로그래밍 해보고 테스트도 완료했습니다.잘되더군요.더 자세한 정보를 알아보시려면 다음의 뉴스그룹을 참조하시고:http://groups.google.com/group/microsoft.public.win...

비트맵을 배경으로 뿌리고 그 위에 컨트롤 올리는 방법   (created at 2006-09-28)   325  

사실은 별루 하는 일 없다.원래 VC++ 프로그램 짜듯 짜되,배경이미지를 하나 로딩해서 매번 Paint 해주면 된다.다음과 같이 클레스 선언부에 m_BG라는 비트맵을 선언HBITMAP m_BG초기화 부분에서 비트맵 로드한다음BOOL CCALLIDDlg::OnInitDialog(){        CDialog::OnInitDialog();    &nb...

BITMAP 오브젝트에서 가로,세로 크기 알아내기   (created at 2006-09-28)   506  

 열라 간단.int GetCBitmapWidth(const CBitmap & cbm){      BITMAP bm;      cbm.GetObject(sizeof(BITMAP),&bm);      return bm.bmWidth;}int GetCBitmapHeight(const CBitm...

비트맵을 파일에서 로딩하는 비기   (created at 2006-09-28)   511  

파일로부터 비트맵을 로딩하는 비기 (Loading Bitmaps from a File)Type : Tips & TricksReferences :Posted by dougalliNotes : Originally posted to the VST-plugins mailing list by Sandor Drieënhuizen Only works in WindowsCode : class CBitmapEx : public CBitmap{  &nbs...

듀얼 모니터에서 Focused Monitor의 Rect 알아내기   (created at 2006-09-28)   362  

    HMONITOR hMonitor;    MONITORINFO mi;    RECT        rc;    // get the nearest monitor to the passed rect.    hM...

프로그램에서 버젼(version) 정보 읽어주는 소스   (created at 2006-09-28)   439  

가끔 MFC나 Delphi로 프로그램 만들다 보면,내가 만든 프로그램에 포함된 리소스에서 버젼을 읽어오고 싶을때가 있다.본 소스는 버젼을 읽어다 뿌려주는 샘플코드입니다.다음의 코드를 상단부에 선언하시고String GetVersionInfo(HMODULE hLib, CString csEntry){    CString csRet;        if (hLib == NULL)&nb...

RDP(Remote Desktop Protocol) Port 값 가져오고/바꿔주기   (created at 2006-09-28)   6,692  

리모트 데스크탑 포트 번호 바꿔주는 프로그램 소스입니다.첨부파일은 이를 구현한 어플리케이션입니다. DWORD GetRDPPortNo(){ HKEY hKey; long dwSize=0; DWORD PortNo=3389; DWORD dwDisp, dwType; if (RegCreateKeyEx(  HKEY_LOCAL_MACHINE,     &n...