코드(33)
-
Swift프로젝트에 AFNetworking 의존성 추가하기.
Swift에서 Github에 위치한 프레임워크의 의존성을 추가하기 위한 기록이다. https://github.com/AFNetworking/AFNetworking 설치# sudo gem install cocoapods# pod setup 프로젝트에 적용# vi Podfile platform :ios, '7.0' pod 'AFNetworking', '~> 2.5' # pod install # Bridge Header 추가 Header File생성 후 #include 를 추가한다. # Build Settings에서 수정 Build Settings > Swift Compiler - Code Generation > Object-C Bridging Header 값을 등록 아래의 값을 추가한다. {ProjectNa..
2015.09.20 -
WebDAV (FireMonkey)
안드로이드에서 동작 확인함. #include #include // --------------------------------------------------------------------------- void __fastcall TForm1::WebDAVClient(String host, String port, String path) { TStream* XMLQuery = new TMemoryStream; TStream* AResponseContent = new TMemoryStream; String xmlStr = "\n\r" \ "\n\r" \ " \n\r" \ "\n\r"; WriteStringToStream(XMLQuery, xmlStr, TIdTextEncoding_UTF8); IdWebDAV..
2014.06.27 -
Cam
#include #include #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 //--------------------------------------------------------------------------- HWND hWndCap; BITMAPINFO bi; LRESULT CALLBACK capVideoStreamCallback(H..
2010.08.10 -
unzip
import java.util.zip.ZipEntry; import java.util.zip.ZipFile; public boolean unzip(String sourceFile, String targetPath) { boolean flag = false; ZipFile zip = null; InputStream is = null; FileOutputStream fo = null; File f = null; zipList = new ArrayList(); try { zip = new ZipFile(new File(sourceFile)); Enumeration
2010.08.03 -
FindWindow
HWND hWnd = NULL; HWND phWnd = NULL; HDC hDC = NULL; char word[0xff]; AnsiString tmp = "--TRAY"; AnsiString titl = ""; hWnd = FindWindow("#32770", NULL); if(hWnd) { GetWindowText(hWnd, word, 0xfe); titl = AnsiString(word); phWnd = GetParent(hWnd); GetWindowText(phWnd, word, 0xfe); if(memcmp(word, tmp.c_str(), tmp.Length()) != 0) return; hWnd = FindWindowEx(hWnd, 0, NULL, "확인"); if(hWnd) { SendMe..
2010.07.13 -
SQLPLUS에서 SQL DDL Export
set pagesize 0 set long 90000 select dbms_metadata.get_ddl('TABLE', table_name, '{owner}') from all_tables where owner='{owner}';
2009.11.11