Overview of Marshaling in C++ http://msdn.microsoft.com/library/bb384865.aspx marshal_context Class http://msdn.microsoft.com/library/bb384854.aspx marshal_as http://msdn.microsoft.com/library/bb384859.aspx How to: Extend the Marshaling Library http://msdn.microsoft.com/library/bb531313.aspx
'CString' to 'std::string': CString cs("Hello"); std::string s((LPCTSTR)cs); 'std::string' to 'CString': std::string s("Hello"); CString cs(s.c_str()); 1. CString -> std::string CString str = "hello"; std::string stdStr = str.GetBuffer(0); 2. std::string -> CString std::string stdStr = "hello"; CString str = stdStr.c_str(); How to: Convert Between Various String Types http://msdn.microsoft.com/l..
#include #include #include #include #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { vector svec; svec.push_back(shared_ptr(new string("aaa"))); svec.push_back(shared_ptr(new string("bbb"))); svec.push_back(shared_ptr(new string("ccc"))); for(vector::iterator it = svec.begin(); it != svec.end(); it++) cout
MyFC.h #pragma once #include #include #ifndef AFXAPI #define AFXAPI __stdcall #endif //////////////////////////////////////// class CFrameWnd { public: CFrameWnd(); BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName); BOOL ShowWindow(int nCmdShow); void UpdateWindow(); private: HWND m_hWnd; }; //////////////////////////////////////// class CWinApp { public: CWinApp(); virtual BOOL InitIns..
#include class CMyWinApp : public CWinApp { public: BOOL InitInstance() { CFrameWnd *pFrameWnd = new CFrameWnd; m_pMainWnd = pFrameWnd; pFrameWnd->Create(0, TEXT("Hello")); // calls ::RegisterClass & ::CreateWindow pFrameWnd->ShowWindow(SW_SHOW); // calls ::ShowWindow pFrameWnd->UpdateWindow(); // calls ::UpdateWindow return TRUE; } }; CMyWinApp theApp; class CFrameWnd : public CWnd CFrameWnd::C..
http://kofmania.tistory.com/112 http://chaoskcuf.com/entry/TIP-Visual-C-CLR-사용하기 연습: Windows Presentation Foundation 응용 프로그램에서 간단한 Win32 컨트롤 호스팅 http://msdn.microsoft.com/ko-kr/library/ms752055.aspx C#에서 Win32 API 사용하기 http://tjstory.tistory.com/47 동적으로 MFC에 링크하는 기본 DLL http://msdn.microsoft.com/ko-kr/library/30c674tx.aspx 닷넷 에서 Native c++ dll 사용하기 http://www.devpia.com/MAEUL/Contents/Detail.asp..
Visual Studio를 C++ 컴파일러로 사용하셔도 Common Language Runtime(CLR)을 사용하시는 분은 잘 없으리라고 생각합니다. 일단 배포에도 문제가 있을테고, 굳이 C++ 프로젝트를 CLR을 사용하여 코드를 작성하기보다는 .NET Framework를 사용한다면 처음부터 C# 프로젝트로 생성하여 C#으로 작성하는 것이 훨씬 더 코드 작성에 효율적이기 때문이죠. 그리고 무엇보다도 C++ 에서 CLR 문법이 기존의 C++ 문법에 비해 생소하다는 것입니다. 그러나 CLR을 사용해서 코딩효과가 극대화 되는 경우도 있습니다. C/C++로 작성된 엔진을 사용할 때인데요. 어떠한 엔진을 사용하는데 Core 기술이라 C 혹은 C++로 작성되어 있는 경우가 있지요? 그러나 UI를 만들기 위해 WI..
#pragma once #include #include #include #include #include #ifdef _UNICODE #define tcout wcout #define tcin wcin #define tstring wstring #else #define tcout cout #define tcin cin #define tstring string #endif #ifdef _UNICODE #define tregex wregex #define tcmatch wcmatch #define tsmatch wsmatch #else #define tregex regex #define tcmatch cmatch #define tsmatch smatch #endif using namespace std; voi..
- Total
- Today
- Yesterday
- WinAutomation
- DotNetMagic
- iTextSharp
- 스크린캡쳐
- .net framework
- Sample Code
- registry
- 애드센스감추기
- Phalanger
- Rollback Rx
- iText
- AxWebBrowser
- Microsoft
- 애드센스숨기기
- c#
- windows
- java
- download.com
- ScreenHunter
- AdSense숨기기
- Automation
- tagREADYSTATE
- Regular Expressions
- autohotkey
- 유틸리티
- Service pack
- AdSense감추기
- READYSTATE_COMPLETE
- jre
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |