diff --git a/CPRobot.cpp b/CPRobot.cpp
new file mode 100644
index 0000000..fa52537
--- /dev/null
+++ b/CPRobot.cpp
@@ -0,0 +1,68 @@
+// CPRobot.cpp : ÀÀ¿ë ÇÁ·Î±×·¥¿¡ ´ëÇÑ Å¬·¡½º µ¿ÀÛÀ» Á¤ÀÇÇÕ´Ï´Ù.
+//
+
+#include "stdafx.h"
+#include "CPRobot.h"
+#include "CPRobotDlg.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+
+// CCPRobotApp
+
+BEGIN_MESSAGE_MAP(CCPRobotApp, CWinApp)
+ ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
+END_MESSAGE_MAP()
+
+
+// CCPRobotApp »ý¼º
+
+CCPRobotApp::CCPRobotApp()
+{
+ // TODO: ¿©±â¿¡ »ý¼º Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
+ // InitInstance¿¡ ¸ðµç Áß¿äÇÑ ÃʱâÈ ÀÛ¾÷À» ¹èÄ¡ÇÕ´Ï´Ù.
+}
+
+
+// À¯ÀÏÇÑ CCPRobotApp °³Ã¼ÀÔ´Ï´Ù.
+
+CCPRobotApp theApp;
+
+
+// CCPRobotApp ÃʱâÈ
+
+BOOL CCPRobotApp::InitInstance()
+{
+ CWinApp::InitInstance();
+
+ AfxEnableControlContainer();
+
+ // Ç¥ÁØ ÃʱâÈ
+ // ÀÌµé ±â´ÉÀ» »ç¿ëÇÏÁö ¾Ê°í ÃÖÁ¾ ½ÇÇà ÆÄÀÏÀÇ Å©±â¸¦ ÁÙÀÌ·Á¸é
+ // ¾Æ·¡¿¡¼ ÇÊ¿ä ¾ø´Â ƯÁ¤ ÃʱâÈ
+ // ·çƾÀ» Á¦°ÅÇØ¾ß ÇÕ´Ï´Ù.
+ // ÇØ´ç ¼³Á¤ÀÌ ÀúÀåµÈ ·¹Áö½ºÆ®¸® ۸¦ º¯°æÇϽʽÿÀ.
+ // TODO: ÀÌ ¹®ÀÚ¿À» ȸ»ç ¶Ç´Â Á¶Á÷ÀÇ À̸§°ú °°Àº
+ // ÀûÀýÇÑ ³»¿ëÀ¸·Î ¼öÁ¤ÇØ¾ß ÇÕ´Ï´Ù.
+ SetRegistryKey(_T("·ÎÄà ÀÀ¿ë ÇÁ·Î±×·¥ ¸¶¹ý»ç¿¡¼ »ý¼ºµÈ ÀÀ¿ë ÇÁ·Î±×·¥"));
+
+ CCPRobotDlg dlg;
+ m_pMainWnd = &dlg;
+ INT_PTR nResponse = dlg.DoModal();
+ if (nResponse == IDOK)
+ {
+ // TODO: ¿©±â¿¡ [È®ÀÎ]À» Ŭ¸¯ÇÏ¿© ´ëÈ »óÀÚ°¡ ¾ø¾îÁú ¶§ ó¸®ÇÒ
+ // Äڵ带 ¹èÄ¡ÇÕ´Ï´Ù.
+ }
+ else if (nResponse == IDCANCEL)
+ {
+ // TODO: ¿©±â¿¡ [Ãë¼Ò]¸¦ Ŭ¸¯ÇÏ¿© ´ëÈ »óÀÚ°¡ ¾ø¾îÁú ¶§ ó¸®ÇÒ
+ // Äڵ带 ¹èÄ¡ÇÕ´Ï´Ù.
+ }
+
+ // ´ëÈ »óÀÚ°¡ ´ÝÇûÀ¸¹Ç·Î ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ ¸Þ½ÃÁö ÆßÇÁ¸¦ ½ÃÀÛÇÏÁö ¾Ê°í ÀÀ¿ë ÇÁ·Î±×·¥À» ³¡³¾ ¼ö ÀÖµµ·Ï FALSE¸¦
+ // ¹ÝȯÇÕ´Ï´Ù.
+ return FALSE;
+}
diff --git a/CPRobot.h b/CPRobot.h
new file mode 100644
index 0000000..5d64fb5
--- /dev/null
+++ b/CPRobot.h
@@ -0,0 +1,31 @@
+// CPRobot.h : PROJECT_NAME ÀÀ¿ë ÇÁ·Î±×·¥¿¡ ´ëÇÑ ÁÖ Çì´õ ÆÄÀÏÀÔ´Ï´Ù.
+//
+
+#pragma once
+
+#ifndef __AFXWIN_H__
+ #error "PCH¿¡ ´ëÇØ ÀÌ ÆÄÀÏÀ» Æ÷ÇÔÇϱâ Àü¿¡ 'stdafx.h'¸¦ Æ÷ÇÔÇÕ´Ï´Ù."
+#endif
+
+#include "resource.h" // ÁÖ ±âÈ£ÀÔ´Ï´Ù.
+
+
+// CCPRobotApp:
+// ÀÌ Å¬·¡½ºÀÇ ±¸Çö¿¡ ´ëÇØ¼´Â CPRobot.cppÀ» ÂüÁ¶ÇϽʽÿÀ.
+//
+
+class CCPRobotApp : public CWinApp
+{
+public:
+ CCPRobotApp();
+
+// ÀçÁ¤ÀÇÀÔ´Ï´Ù.
+ public:
+ virtual BOOL InitInstance();
+
+// ±¸ÇöÀÔ´Ï´Ù.
+
+ DECLARE_MESSAGE_MAP()
+};
+
+extern CCPRobotApp theApp;
\ No newline at end of file
diff --git a/CPRobot.idl b/CPRobot.idl
new file mode 100644
index 0000000..8767ecb
--- /dev/null
+++ b/CPRobot.idl
@@ -0,0 +1,18 @@
+// CPRobot.idl : IDL source for VCOpt.exe
+//
+// This file will be processed by the MIDL tool to
+// produce the type library (CPRobot.tlb) and marshalling code.
+import "oaidl.idl";
+import "ocidl.idl";
+[
+ uuid(60EA9A0D-B44A-412D-9516-72A78A0F4DFB),
+ version(1.0),
+ helpstring("CPRobot 1.0 Type Library")
+]
+library VCOptLib
+{
+ importlib("stdole32.tlb");
+ importlib("stdole2.tlb");
+};
+
+
\ No newline at end of file
diff --git a/CPRobot.rc b/CPRobot.rc
new file mode 100644
index 0000000..45c9654
--- /dev/null
+++ b/CPRobot.rc
@@ -0,0 +1,195 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#ifndef APSTUDIO_INVOKED
+#include "targetver.h"
+#endif
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// Korean resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)
+#ifdef _WIN32
+LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
+#pragma code_page(949)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#ifndef APSTUDIO_INVOKED\r\n"
+ "#include ""targetver.h""\r\n"
+ "#endif\r\n"
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
+ "#define _AFX_NO_OLE_RESOURCES\r\n"
+ "#define _AFX_NO_TRACKER_RESOURCES\r\n"
+ "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
+ "\r\n"
+ "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)\r\n"
+ "LANGUAGE 18, 1\r\n"
+ "#pragma code_page(949)\r\n"
+ "#include ""res\\CPRobot.rc2"" // Microsoft Visual C++ ÀÌ¿ÜÀÇ ´Ù¸¥ µµ±¸¿¡¼ ÆíÁýÇÑ ¸®¼Ò½ºÀÔ´Ï´Ù.\r\n"
+ "#include ""l.KOR\\afxres.rc"" // Ç¥ÁØ ±¸¼º ¿ä¼ÒÀÔ´Ï´Ù.\r\n"
+ "#endif\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDR_MAINFRAME ICON "res\\CPRobot.ico"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_CPROBOT_DIALOG DIALOGEX 0, 0, 319, 239
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+EXSTYLE WS_EX_APPWINDOW
+CAPTION "CPRobot"
+FONT 9, "MS Shell Dlg", 0, 0, 0x1
+BEGIN
+ CONTROL "¸ÅµµÈ£°¡",IDC_RADIO_BID,"Button",BS_AUTORADIOBUTTON | WS_GROUP,7,7,43,10
+ CONTROL "¸Å¼öÈ£°¡",IDC_RADIO_ASK,"Button",BS_AUTORADIOBUTTON,7,19,43,10
+ EDITTEXT IDC_EDIT_ORDERINGPRICE,75,7,67,14,ES_AUTOHSCROLL | ES_NUMBER
+ PUSHBUTTON "Àܰí È®ÀÎ",IDC_BUTTON_REFRESH_BALANCE,262,7,50,14
+ EDITTEXT IDC_EDIT_ORDERING_TICK_MIN,7,37,67,14,ES_AUTOHSCROLL | ES_NUMBER
+ EDITTEXT IDC_EDIT_ORDERING_TICK_MAX,101,38,67,14,ES_AUTOHSCROLL | ES_NUMBER
+ EDITTEXT IDC_EDIT4,14,85,22,14,ES_AUTOHSCROLL | ES_NUMBER
+ EDITTEXT IDC_EDIT5,93,85,22,14,ES_AUTOHSCROLL | ES_NUMBER
+ EDITTEXT IDC_EDIT6,172,85,22,14,ES_AUTOHSCROLL | ES_NUMBER
+ EDITTEXT IDC_EDIT7,251,85,22,14,ES_AUTOHSCROLL | ES_NUMBER
+ CONTROL "ÄݿɼÇ",IDC_RADIO_CALLOP,"Button",BS_AUTORADIOBUTTON | WS_GROUP,93,124,37,10
+ CONTROL "Dz¿É¼Ç",IDC_RADIO_PUTOP,"Button",BS_AUTORADIOBUTTON,139,124,37,10
+ PUSHBUTTON "°Ë»ö",IDC_BUTTON_SEARCH,190,123,50,14
+ PUSHBUTTON "°Å·¡ ½ÃÀÛ",IDC_BUTTON_START_DEAL,251,123,50,14
+ LISTBOX IDC_LIST_ITEMS,7,146,305,86,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
+ LTEXT "",IDC_STATIC_BALANCE,148,11,101,8
+ LTEXT "~",IDC_STATIC,86,40,8,8
+ GROUPBOX "¸Åµµ ¿äû",IDC_STATIC,7,69,69,40
+ GROUPBOX "¼ÕÀý ¹üÀ§",IDC_STATIC,86,69,69,40
+ GROUPBOX "Æ®·¹Àϸµ ¹üÀ§",IDC_STATIC,165,69,69,40
+ GROUPBOX "ÃÖ´ë ½Ã°£",IDC_STATIC,243,69,69,40
+ LTEXT "ƽ",IDC_STATIC,43,88,8,8
+ LTEXT "ƽ",IDC_STATIC,126,88,8,8
+ LTEXT "ƽ",IDC_STATIC,198,88,8,8
+ LTEXT "sec",IDC_STATIC,290,89,11,8
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,0,1
+ PRODUCTVERSION 1,0,0,1
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "041203b5"
+ BEGIN
+ VALUE "CompanyName", "TODO: <ȸ»ç À̸§>"
+ VALUE "FileDescription", "TODO: <ÆÄÀÏ ¼³¸í>"
+ VALUE "FileVersion", "1.0.0.1"
+ VALUE "InternalName", "CPRobot.exe"
+ VALUE "LegalCopyright", "TODO: (c) <ȸ»ç À̸§>. All rights reserved."
+ VALUE "OriginalFilename", "CPRobot.exe"
+ VALUE "ProductName", "TODO: <Á¦Ç° À̸§>"
+ VALUE "ProductVersion", "1.0.0.1"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x412, 949
+ END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO
+BEGIN
+ IDD_CPROBOT_DIALOG, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 312
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 232
+ END
+END
+#endif // APSTUDIO_INVOKED
+
+#endif // Korean resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+#define _AFX_NO_SPLITTER_RESOURCES
+#define _AFX_NO_OLE_RESOURCES
+#define _AFX_NO_TRACKER_RESOURCES
+#define _AFX_NO_PROPERTY_RESOURCES
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)
+LANGUAGE 18, 1
+#pragma code_page(949)
+#include "res\CPRobot.rc2" // Microsoft Visual C++ ÀÌ¿ÜÀÇ ´Ù¸¥ µµ±¸¿¡¼ ÆíÁýÇÑ ¸®¼Ò½ºÀÔ´Ï´Ù.
+#include "l.KOR\afxres.rc" // Ç¥ÁØ ±¸¼º ¿ä¼ÒÀÔ´Ï´Ù.
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/CPRobot.sln b/CPRobot.sln
new file mode 100644
index 0000000..955f358
--- /dev/null
+++ b/CPRobot.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CPRobot", "CPRobot.vcproj", "{78AC5730-F1E3-4491-8D7B-125ADC29092E}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {78AC5730-F1E3-4491-8D7B-125ADC29092E}.Debug|Win32.ActiveCfg = Debug|Win32
+ {78AC5730-F1E3-4491-8D7B-125ADC29092E}.Debug|Win32.Build.0 = Debug|Win32
+ {78AC5730-F1E3-4491-8D7B-125ADC29092E}.Release|Win32.ActiveCfg = Release|Win32
+ {78AC5730-F1E3-4491-8D7B-125ADC29092E}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/CPRobot.vcproj b/CPRobot.vcproj
new file mode 100644
index 0000000..9d56c1a
--- /dev/null
+++ b/CPRobot.vcproj
@@ -0,0 +1,272 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CPRobotDlg.cpp b/CPRobotDlg.cpp
new file mode 100644
index 0000000..501d4d9
--- /dev/null
+++ b/CPRobotDlg.cpp
@@ -0,0 +1,217 @@
+// CPRobotDlg.cpp : ±¸Çö ÆÄÀÏ
+//
+
+#include "stdafx.h"
+#include "CPRobot.h"
+#include "CPRobotDlg.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+
+ICpTdUtilPtr g_pTdUtil = NULL;
+
+
+CCPRobotDlg::CCPRobotDlg(CWnd* pParent /*=NULL*/)
+ : CDialog(CCPRobotDlg::IDD, pParent)
+{
+ m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
+}
+
+void CCPRobotDlg::DoDataExchange(CDataExchange* pDX)
+{
+ CDialog::DoDataExchange(pDX);
+}
+
+BEGIN_MESSAGE_MAP(CCPRobotDlg, CDialog)
+ ON_WM_PAINT()
+ ON_WM_QUERYDRAGICON()
+ //}}AFX_MSG_MAP
+ ON_BN_CLICKED(IDC_BUTTON_REFRESH_BALANCE, &CCPRobotDlg::OnBnClickedButtonRefreshBalance)
+ ON_WM_CREATE()
+ ON_WM_DESTROY()
+END_MESSAGE_MAP()
+
+
+// CCPRobotDlg ¸Þ½ÃÁö 󸮱â
+BOOL CCPRobotDlg::OnInitDialog()
+{
+ CDialog::OnInitDialog();
+
+ // ÀÌ ´ëÈ »óÀÚÀÇ ¾ÆÀÌÄÜÀ» ¼³Á¤ÇÕ´Ï´Ù. ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ ÁÖ Ã¢ÀÌ ´ëÈ »óÀÚ°¡ ¾Æ´Ò °æ¿ì¿¡´Â
+ // ÇÁ·¹ÀÓ¿öÅ©°¡ ÀÌ ÀÛ¾÷À» ÀÚµ¿À¸·Î ¼öÇàÇÕ´Ï´Ù.
+ SetIcon(m_hIcon, TRUE); // Å« ¾ÆÀÌÄÜÀ» ¼³Á¤ÇÕ´Ï´Ù.
+ SetIcon(m_hIcon, FALSE); // ÀÛÀº ¾ÆÀÌÄÜÀ» ¼³Á¤ÇÕ´Ï´Ù.
+
+ // TODO: ¿©±â¿¡ Ãß°¡ ÃʱâÈ ÀÛ¾÷À» Ãß°¡ÇÕ´Ï´Ù.
+
+ return TRUE; // Æ÷Ä¿½º¸¦ ÄÁÆ®·Ñ¿¡ ¼³Á¤ÇÏÁö ¾ÊÀ¸¸é TRUE¸¦ ¹ÝȯÇÕ´Ï´Ù.
+}
+
+int CCPRobotDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
+{
+ if (CDialog::OnCreate(lpCreateStruct) == -1)
+ return -1;
+
+ // TODO: Add your specialized creation code here
+ CoInitialize(NULL);
+
+ g_pTdUtil.CreateInstance(__uuidof(CpTdUtil));
+ short iInitResult = g_pTdUtil->TradeInit(0);
+ switch(iInitResult)
+ {
+ case -1:
+ MessageBox("TradeInit ¿À·ù");
+ return -2;
+ break;
+
+ case 1:
+ MessageBox("¾÷¹« Ű À߸ø ÀԷµÊ");
+ return -2;
+ break;
+
+ case 2:
+ MessageBox("°èÁ ºñ¹Ð¹øÈ£ À߸ø ÀԷµÊ");
+ return -2;
+ break;
+
+ case 3:
+ MessageBox("Ãë¼ÒµÊ");
+ return -2;
+ break;
+ }
+
+ return 0;
+}
+
+void CCPRobotDlg::OnDestroy()
+{
+ CDialog::OnDestroy();
+
+ // TODO: Add your message handler code here
+ g_pTdUtil.Release();
+ CoUninitialize();
+}
+
+BOOL CCPRobotDlg::DestroyWindow()
+{
+ // TODO: Add your specialized code here and/or call the base class
+
+
+ return CDialog::DestroyWindow();
+}
+
+// ´ëÈ »óÀÚ¿¡ ÃÖ¼ÒÈ ´ÜÃ߸¦ Ãß°¡ÇÒ °æ¿ì ¾ÆÀÌÄÜÀ» ±×¸®·Á¸é
+// ¾Æ·¡ Äڵ尡 ÇÊ¿äÇÕ´Ï´Ù. ¹®¼/ºä ¸ðµ¨À» »ç¿ëÇÏ´Â MFC ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ °æ¿ì¿¡´Â
+// ÇÁ·¹ÀÓ¿öÅ©¿¡¼ ÀÌ ÀÛ¾÷À» ÀÚµ¿À¸·Î ¼öÇàÇÕ´Ï´Ù.
+
+void CCPRobotDlg::OnPaint()
+{
+ if (IsIconic())
+ {
+ CPaintDC dc(this); // ±×¸®±â¸¦ À§ÇÑ µð¹ÙÀ̽º ÄÁÅØ½ºÆ®
+
+ SendMessage(WM_ICONERASEBKGND, reinterpret_cast(dc.GetSafeHdc()), 0);
+
+ // Ŭ¶óÀÌ¾ðÆ® »ç°¢Çü¿¡¼ ¾ÆÀÌÄÜÀ» °¡¿îµ¥¿¡ ¸ÂÃä´Ï´Ù.
+ int cxIcon = GetSystemMetrics(SM_CXICON);
+ int cyIcon = GetSystemMetrics(SM_CYICON);
+ CRect rect;
+ GetClientRect(&rect);
+ int x = (rect.Width() - cxIcon + 1) / 2;
+ int y = (rect.Height() - cyIcon + 1) / 2;
+
+ // ¾ÆÀÌÄÜÀ» ±×¸³´Ï´Ù.
+ dc.DrawIcon(x, y, m_hIcon);
+ }
+ else
+ {
+ CDialog::OnPaint();
+ }
+}
+
+// »ç¿ëÀÚ°¡ ÃÖ¼ÒÈµÈ Ã¢À» ²ô´Â µ¿¾È¿¡ Ä¿¼°¡ Ç¥½ÃµÇµµ·Ï ½Ã½ºÅÛ¿¡¼
+// ÀÌ ÇÔ¼ö¸¦ È£ÃâÇÕ´Ï´Ù.
+HCURSOR CCPRobotDlg::OnQueryDragIcon()
+{
+ return static_cast(m_hIcon);
+}
+
+
+
+
+void CCPRobotDlg::OnBnClickedButtonRefreshBalance()
+{
+ // TODO: Add your control notification handler code here
+ ICpTdDibPtr pTd0721 = NULL;
+ pTd0721.CreateInstance(__uuidof(CpTd0721F));
+ pTd0721->SetInputValue(0, "117126165");
+ pTd0721->SetInputValue(1, "50");
+ pTd0721->SetInputValue(2, "50");
+ pTd0721->SetInputValue(3, "10");
+
+ CString Message;
+
+ do
+ {
+ pTd0721->BlockRequest();
+
+ Message = "Çö±ÝÁÖ¹®°¡´É¾× : ";
+ Message += pTd0721->GetHeaderValue(10);
+
+ SetDlgItemText(IDC_STATIC_BALANCE, Message.GetString());
+
+ //Message = "";
+ //Message += "Çö±Ý°áÁ¦¿¹Å¹¾× : ";
+ //Message += pTd0721->GetHeaderValue(3);
+ //Message += "\nÇö±ÝÁÖ¹®°¡´É¾× : ";
+ //Message += pTd0721->GetHeaderValue(10);
+ //MessageBox(Message);
+
+ } while (pTd0721->Continue);
+
+ pTd0721.Release();
+
+
+
+ //try
+ //{
+ // CComPtr comPtr;
+ // comPtr.CoCreateInstance(__uuidof(CpStockCode));
+
+ // CComPtr stockCodeComPtr;
+ // comPtr.QueryInterface(&stockCodeComPtr);
+
+ // char *code = "035420";
+ // _bstr_t name = stockCodeComPtr->CodeToName(code);
+
+ // CString msg = "Code : ";
+ // msg += code;
+ // msg += ", Name : ";
+ // msg += (char*)name;
+ // MessageBox(msg, "", MB_OK);
+
+
+ // //HRESULT hr = pBalance.CreateInstance(__uuidof(CpTd0721F));
+ // //if(SUCCEEDED(hr))
+ // //{
+ // // int aaa = pBalance->GetHeaderValue(3);
+ // // CString kkk;
+ // // kkk.Format("result : %d", aaa);
+ // // MessageBox("", kkk, MB_OK);
+ // // pBalance = NULL;
+ // //}
+ // //else
+ // //{
+ // // MessageBox("CreateInstance(__uuidof(CpTd0721F) failure", "", MB_OK);
+ // //}
+ //}
+ //catch (_com_error e)
+ //{
+ // MessageBox(e.ErrorMessage(), "CpTd0721F ÃʱâÈ ½ÇÆÐ", MB_OK|MB_ICONSTOP);
+ //}
+}
+
+
+
diff --git a/CPRobotDlg.h b/CPRobotDlg.h
new file mode 100644
index 0000000..a2886b1
--- /dev/null
+++ b/CPRobotDlg.h
@@ -0,0 +1,35 @@
+// CPRobotDlg.h : Çì´õ ÆÄÀÏ
+//
+
+#pragma once
+
+
+// CCPRobotDlg ´ëÈ »óÀÚ
+class CCPRobotDlg : public CDialog
+{
+// »ý¼ºÀÔ´Ï´Ù.
+public:
+ CCPRobotDlg(CWnd* pParent = NULL); // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù.
+
+// ´ëÈ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù.
+ enum { IDD = IDD_CPROBOT_DIALOG };
+
+protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀÔ´Ï´Ù.
+ virtual BOOL DestroyWindow();
+
+// ±¸ÇöÀÔ´Ï´Ù.
+protected:
+ HICON m_hIcon;
+
+ // »ý¼ºµÈ ¸Þ½ÃÁö ¸Ê ÇÔ¼ö
+ virtual BOOL OnInitDialog();
+ afx_msg void OnPaint();
+ afx_msg HCURSOR OnQueryDragIcon();
+ DECLARE_MESSAGE_MAP()
+
+public:
+ afx_msg void OnBnClickedButtonRefreshBalance();
+ afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
+ afx_msg void OnDestroy();
+};
diff --git a/CPRobot_h.h b/CPRobot_h.h
new file mode 100644
index 0000000..3c9a070
--- /dev/null
+++ b/CPRobot_h.h
@@ -0,0 +1,74 @@
+
+
+/* this ALWAYS GENERATED file contains the definitions for the interfaces */
+
+
+ /* File created by MIDL compiler version 7.00.0500 */
+/* at Tue Jul 02 12:13:08 2013
+ */
+/* Compiler settings for .\CPRobot.idl:
+ Oicf, W1, Zp8, env=Win32 (32b run)
+ protocol : dce , ms_ext, c_ext, robust
+ error checks: stub_data
+ VC __declspec() decoration level:
+ __declspec(uuid()), __declspec(selectany), __declspec(novtable)
+ DECLSPEC_UUID(), MIDL_INTERFACE()
+*/
+//@@MIDL_FILE_HEADING( )
+
+#pragma warning( disable: 4049 ) /* more than 64k source lines */
+
+
+/* verify that the version is high enough to compile this file*/
+#ifndef __REQUIRED_RPCNDR_H_VERSION__
+#define __REQUIRED_RPCNDR_H_VERSION__ 475
+#endif
+
+#include "rpc.h"
+#include "rpcndr.h"
+
+#ifndef __RPCNDR_H_VERSION__
+#error this stub requires an updated version of
+#endif // __RPCNDR_H_VERSION__
+
+
+#ifndef __CPRobot_h_h__
+#define __CPRobot_h_h__
+
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+#pragma once
+#endif
+
+/* Forward Declarations */
+
+/* header files for imported files */
+#include "oaidl.h"
+#include "ocidl.h"
+
+#ifdef __cplusplus
+extern "C"{
+#endif
+
+
+
+#ifndef __VCOptLib_LIBRARY_DEFINED__
+#define __VCOptLib_LIBRARY_DEFINED__
+
+/* library VCOptLib */
+/* [helpstring][version][uuid] */
+
+
+EXTERN_C const IID LIBID_VCOptLib;
+#endif /* __VCOptLib_LIBRARY_DEFINED__ */
+
+/* Additional Prototypes for ALL interfaces */
+
+/* end of Additional Prototypes */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+
diff --git a/CPRobot_i.c b/CPRobot_i.c
new file mode 100644
index 0000000..1ac6e1b
--- /dev/null
+++ b/CPRobot_i.c
@@ -0,0 +1,79 @@
+
+
+/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
+
+/* link this file in with the server and any clients */
+
+
+ /* File created by MIDL compiler version 7.00.0500 */
+/* at Tue Jul 02 12:13:08 2013
+ */
+/* Compiler settings for .\CPRobot.idl:
+ Oicf, W1, Zp8, env=Win32 (32b run)
+ protocol : dce , ms_ext, c_ext, robust
+ error checks: stub_data
+ VC __declspec() decoration level:
+ __declspec(uuid()), __declspec(selectany), __declspec(novtable)
+ DECLSPEC_UUID(), MIDL_INTERFACE()
+*/
+//@@MIDL_FILE_HEADING( )
+
+#pragma warning( disable: 4049 ) /* more than 64k source lines */
+
+
+#ifdef __cplusplus
+extern "C"{
+#endif
+
+
+#include
+#include
+
+#ifdef _MIDL_USE_GUIDDEF_
+
+#ifndef INITGUID
+#define INITGUID
+#include
+#undef INITGUID
+#else
+#include
+#endif
+
+#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
+ DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)
+
+#else // !_MIDL_USE_GUIDDEF_
+
+#ifndef __IID_DEFINED__
+#define __IID_DEFINED__
+
+typedef struct _IID
+{
+ unsigned long x;
+ unsigned short s1;
+ unsigned short s2;
+ unsigned char c[8];
+} IID;
+
+#endif // __IID_DEFINED__
+
+#ifndef CLSID_DEFINED
+#define CLSID_DEFINED
+typedef IID CLSID;
+#endif // CLSID_DEFINED
+
+#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
+ const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
+
+#endif !_MIDL_USE_GUIDDEF_
+
+MIDL_DEFINE_GUID(IID, LIBID_VCOptLib,0x60EA9A0D,0xB44A,0x412D,0x95,0x16,0x72,0xA7,0x8A,0x0F,0x4D,0xFB);
+
+#undef MIDL_DEFINE_GUID
+
+#ifdef __cplusplus
+}
+#endif
+
+
+
diff --git a/resource.h b/resource.h
new file mode 100644
index 0000000..85752bd
--- /dev/null
+++ b/resource.h
@@ -0,0 +1,35 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by CPRobot.rc
+//
+#define IDD_CPROBOT_DIALOG 102
+#define IDD_CPROBOT_DIALOG2 102
+#define IDR_MAINFRAME 128
+#define IDC_EDIT_ORDERING_TICK_MIN 1000
+#define IDC_EDIT_ORDERING_TICK_MAX 1001
+#define IDC_BUTTON_SEARCH 1002
+#define IDC_BUTTON_START_DEAL 1003
+#define IDC_EDIT_ORDERINGPRICE 1004
+#define IDC_BUTTON_REFRESH_BALANCE 1005
+#define IDC_RADIO_BID 1006
+#define IDC_EDIT4 1007
+#define IDC_EDIT5 1008
+#define IDC_EDIT6 1009
+#define IDC_EDIT7 1010
+#define IDC_STATIC_BALANCE 1011
+#define IDC_RADIO_CALLOP 1012
+#define IDC_RADIO_PUTOP 1013
+#define IDC_LIST_ITEMS 1014
+#define IDC_RADIO2 1015
+#define IDC_RADIO_ASK 1015
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 129
+#define _APS_NEXT_COMMAND_VALUE 32771
+#define _APS_NEXT_CONTROL_VALUE 1016
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/stdafx.cpp b/stdafx.cpp
new file mode 100644
index 0000000..a2b2dfc
--- /dev/null
+++ b/stdafx.cpp
@@ -0,0 +1,7 @@
+// stdafx.cpp : Ç¥ÁØ Æ÷ÇÔ ÆÄÀϸ¸ µé¾î ÀÖ´Â ¼Ò½º ÆÄÀÏÀÔ´Ï´Ù.
+// CPRobot.pch´Â ¹Ì¸® ÄÄÆÄÀÏµÈ Çì´õ°¡ µË´Ï´Ù.
+// stdafx.obj¿¡´Â ¹Ì¸® ÄÄÆÄÀÏµÈ Çü½Ä Á¤º¸°¡ Æ÷ÇԵ˴ϴÙ.
+
+#include "stdafx.h"
+
+
diff --git a/stdafx.h b/stdafx.h
new file mode 100644
index 0000000..919899b
--- /dev/null
+++ b/stdafx.h
@@ -0,0 +1,42 @@
+// stdafx.h : ÀÚÁÖ »ç¿ëÇÏÁö¸¸ ÀÚÁÖ º¯°æµÇÁö´Â ¾Ê´Â
+// Ç¥ÁØ ½Ã½ºÅÛ Æ÷ÇÔ ÆÄÀÏ ¹× ÇÁ·ÎÁ§Æ® °ü·Ã Æ÷ÇÔ ÆÄÀÏÀÌ
+// µé¾î ÀÖ´Â Æ÷ÇÔ ÆÄÀÏÀÔ´Ï´Ù.
+
+#pragma once
+
+#ifndef _SECURE_ATL
+#define _SECURE_ATL 1
+#endif
+
+#ifndef VC_EXTRALEAN
+#define VC_EXTRALEAN // °ÅÀÇ »ç¿ëµÇÁö ¾Ê´Â ³»¿ëÀº Windows Çì´õ¿¡¼ Á¦¿ÜÇÕ´Ï´Ù.
+#endif
+
+#include "targetver.h"
+
+#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // ÀϺΠCString »ý¼ºÀÚ´Â ¸í½ÃÀûÀ¸·Î ¼±¾ðµË´Ï´Ù.
+
+// MFCÀÇ °øÅë ºÎºÐ°ú ¹«½Ã °¡´ÉÇÑ °æ°í ¸Þ½ÃÁö¿¡ ´ëÇÑ ¼û±â±â¸¦ ÇØÁ¦ÇÕ´Ï´Ù.
+#define _AFX_ALL_WARNINGS
+
+#include // MFC ÇÙ½É ¹× Ç¥ÁØ ±¸¼º ¿ä¼ÒÀÔ´Ï´Ù.
+#include // MFC È®ÀåÀÔ´Ï´Ù.
+
+
+#include // MFC ÀÚµ¿È Ŭ·¡½ºÀÔ´Ï´Ù.
+
+
+
+#ifndef _AFX_NO_OLE_SUPPORT
+#include // Internet Explorer 4 °ø¿ë ÄÁÆ®·Ñ¿¡ ´ëÇÑ MFC Áö¿øÀÔ´Ï´Ù.
+#endif
+#ifndef _AFX_NO_AFXCMN_SUPPORT
+#include // Windows °ø¿ë ÄÁÆ®·Ñ¿¡ ´ëÇÑ MFC Áö¿øÀÔ´Ï´Ù.
+#endif // _AFX_NO_AFXCMN_SUPPORT
+
+
+//#include
+#import "c:\daishin\CYBOSPLUS\cpdib.dll" no_namespace named_guids
+#import "c:\daishin\cybosplus\cptrade.dll" no_namespace named_guids
+#import "c:\daishin\cybosplus\cputil.dll" no_namespace named_guids
+
diff --git a/targetver.h b/targetver.h
new file mode 100644
index 0000000..a6e9b29
--- /dev/null
+++ b/targetver.h
@@ -0,0 +1,26 @@
+
+#pragma once
+
+// ´ÙÀ½ ¸ÅÅ©·Î´Â ÇÊ¿äÇÑ ÃÖ¼Ò Ç÷§ÆûÀ» Á¤ÀÇÇÕ´Ï´Ù. ÇÊ¿äÇÑ ÃÖ¼Ò Ç÷§ÆûÀº
+// ÀÀ¿ë ÇÁ·Î±×·¥À» ½ÇÇàÇÏ´Â µ¥ ÇÊ¿äÇÑ ±â´ÉÀÌ Æ÷ÇÔµÈ °¡Àå ºü¸¥ ¹öÀüÀÇ Windows, Internet Explorer
+// µîÀÔ´Ï´Ù. ÀÌ ¸ÅÅ©·Î´Â ÁöÁ¤µÈ ¹öÀü ÀÌ»óÀÇ Ç÷§Æû ¹öÀü¿¡¼ »ç¿ë °¡´ÉÇÑ ¸ðµç ±â´ÉÀ» Ȱ¼ºÈÇØ¾ß
+// ÀÛµ¿ÇÕ´Ï´Ù.
+
+// ¾Æ·¡ ÁöÁ¤µÈ Ç÷§Æû¿¡ ¿ì¼±ÇÏ´Â Ç÷§ÆûÀ» ´ë»óÀ¸·Î ÇÏ´Â °æ¿ì ´ÙÀ½ Á¤ÀǸ¦ ¼öÁ¤ÇϽʽÿÀ.
+// ´Ù¸¥ Ç÷§Æû¿¡ »ç¿ëµÇ´Â ÇØ´ç °ªÀÇ ÃֽŠÁ¤º¸´Â MSDNÀ» ÂüÁ¶ÇϽʽÿÀ.
+#ifndef WINVER // ÇÊ¿äÇÑ ÃÖ¼Ò Ç÷§ÆûÀ» Windows Vista·Î ÁöÁ¤ÇÕ´Ï´Ù.
+#define WINVER 0x0600 // ´Ù¸¥ ¹öÀüÀÇ Windows¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ.
+#endif
+
+#ifndef _WIN32_WINNT // ÇÊ¿äÇÑ ÃÖ¼Ò Ç÷§ÆûÀ» Windows Vista·Î ÁöÁ¤ÇÕ´Ï´Ù.
+#define _WIN32_WINNT 0x0600 // ´Ù¸¥ ¹öÀüÀÇ Windows¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ.
+#endif
+
+#ifndef _WIN32_WINDOWS // ÇÊ¿äÇÑ ÃÖ¼Ò Ç÷§ÆûÀ» Windows 98·Î ÁöÁ¤ÇÕ´Ï´Ù.
+#define _WIN32_WINDOWS 0x0410 // Windows Me ÀÌ»ó¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ.
+#endif
+
+#ifndef _WIN32_IE // ÇÊ¿äÇÑ ÃÖ¼Ò Ç÷§ÆûÀ» Internet Explorer 7.0À¸·Î ÁöÁ¤ÇÕ´Ï´Ù.
+#define _WIN32_IE 0x0700 // ´Ù¸¥ ¹öÀüÀÇ IE¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ.
+#endif
+