본문 바로가기

개발자이야기

NI I/O Device Simulator Program Development 자료 http://zone.ni.com/devzone/cda/tut/p/id/3698 위 URL은 이번 제가 개발 하게 된 자동차 전조등 검사기에서 필요한 NI I/O Device 통신상에 필요한 Simulator 로써 Device가 슬롯에 장착되지 않아도 가상으로 테스트 및 API 개발이 가능하도록 하는 프로그램이다.. 역시 잘만들어 놨다 외국놈들은... 더보기
VC++ HWND 윈도우 핸들로 새로고침 하기 HWND hWnd = ::FindWindow("IEFrame", NULL); if(hWnd) { HWND hWnd = NULL; for(int i = 0; ; i++) { if((hWnd = ::FindWindowEx(hWnd, hChild, NULL, NULL)) == NULL) break; char szClassName[MAX_PATH]; int n = GetClassName(hWnd, szClassName, 100); buf[n] = '\0'; if(strcmp(szClassName, "Shell DocObject View") == 0) { PostMessage(hWnd, WM_KEYDOWN, VK_F5, NULL); break; } } } [출처] IE 새로고침|작성자 띠깜 더보기
VC++ 간단한 윈도우 구분 방법 CString getWindowType(){ OSVERSIONINFOEX osvi; BOOL bOsVersionInfoEx; ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi)) ) { osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); if (! GetVersionEx ( (OSVERSIONINFO *) &osvi) ) return L"WinXP"; } switch (osvi.dwPlatformId) { case VER_PLATFOR.. 더보기
vc++ 윈도우 구분 소스 #include #include #define BUFSIZE 80 int main() { OSVERSIONINFOEX osvi; BOOL bOsVersionInfoEx; // Try calling GetVersionEx using the OSVERSIONINFOEX structure. // If that fails, try using the OSVERSIONINFO structure. ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi)) ) { osvi.dwOSVersion.. 더보기
ShellExecute 함수의 여러가지 사용법에 대하여... http://www.tipssoft.com/bulletin/board.php?bo_table=FAQ&wr_id=779 더보기
IE 컨트롤 ActiveX 컨트롤에서 자신을 로딩한 IE 컨트롤의 포인터를 구해올 수 있으면 웹브라우저의 동작을 제어할 수 있습니다.. 그간 그짓을 하려고 별짓 다해보다 겨우 알아냈습니다.. 서비스 프로바이더라는 인터페이스가 더 있더군요.. 구조파악하는데 여간 복잡한게 아닙니다 그려.. 보면 볼 수록 더 모르겠는게 COM 인터페이스구만요.. 암튼 아래의 멤버함수는 웹브라우저 컨트롤의 포인터를 넘깁니다.. IWebBrowser2* CActiveXGetIETestCtrl::GetIWebPointer() { HRESULT hr ; IOleContainer *pIContainer = NULL ; IWebBrowser2 *pIWeb = NULL ; IServiceProvider *pISP = NULL ; // Get IOle.. 더보기
base64 암복호화 java import java.io.IOException; import sun.misc.BASE64Encoder; import sun.misc.BASE64Decoder; public class BASE64Util { public static String encoder(String key) { return new BASE64Encoder().encode(key.getBytes()); } public static String decoder(String cipher) throws IOException { return new String(new BASE64Decoder().decodeBuffer(cipher)); } } [출처] JAVA base64 암호화 & 복호화|작성자 하늘우니 더보기
base64 암복호화 c/c++ Encoding and decoding base64 with C++ base64.cpp /* base64.cpp and base64.h Copyright (C) 2004-2008 René Nyffenegger This source code is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications,.. 더보기
registy 기타 변경 ■ 인터넷 옵션 > 일반 > 임시 인터넷 파일 "설정" > 저장된 페이지의 새 버전 확인 HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet Settings|SyncMode5 값 (새로 열리는 IE부터 반영 됨) 0 : 확인하지 않음 2 : 인터넷 익스플로러를 시작할 때마다 3 : 페이지를 열 때마다 4 : 자동으로 ■ 인터넷 옵션 > 고급 > 탐색의 "URL을 항상 UTF-8로 보냄(다시 시작해야 함)" HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet Settings|UrlEncoding 값 0 : 체크 1 : 해제 ■ 인터넷 옵션 > 고급 > 탐색의 "바로.. 더보기
Visual Studio 2005에서 브라우저 도우미 개체 만들기(Windows IETechCol) Visual Studio 2005에서 브라우저 도우미 개체 만들기(Windows IETechCol) Tony Schreiner, John Sudds Microsoft Corporation 2006년 10월 27일 요약 : 이 기사에서는 Microsoft Visual Studio 2005를 사용하여 IObjectWithSite 인터페이스를 구현하고 Internet Explorer에 연결되는 구성 요소 개체 모델(COM) 개체인 단순 브라우저 도우미 개체(BHO)를 만드는 방법을 설명합니다. 초보적인 BHO를 만드는 방법을 단계별로 설명할 것입니다. 기사에서 작성할 BHO는 우선 Internet Explorer에서 문서를 로드할 때 "Hello World!"라는 메시지를 표시합니다. 그런 다음 BHO가 확장.. 더보기