CString strhex = _T("8CEF"); _tprintf(_T("hex: %s \n"), (LPCTSTR)strhex); unsigned long dec = _tcstoul(strhex, NULL, 16); _tprintf(_T("dec: %d \n"), dec); CString bin; CString buf; TCHAR mod[2]; do { _ultot(dec % 2, mod, 2); buf = mod; buf += bin; bin = buf; } while (dec = dec / 2); _tprintf(_T("bin: %s \n"), (LPCTSTR)bin); CString strhex = _T("8CEF"); _tprintf(_T("hex: %s \n"), (LPCTSTR)strhex)..
VC++ 6.0 Project #include #include "resource.h" BOOL CALLBACK MainDlgProc(HWND hDlg, UINT iMessage, WPARAM wParam, LPARAM lParam); HWND hDlgMain; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), HWND_DESKTOP, MainDlgProc); return 0; } BOOL CALLBACK MainDlgProc(HWND hDlg, UINT iMessage, WPARAM..
아래 링크를 참조하자. http://www.simpleisbest.net/archive/2007/01/19/1568.aspx using namespace System; void main() { Console::WriteLine("Hello World"); } 위 코드를 아래와 같이 컴파일하자. cl.exe /clr hello.cpp 2008/06/05 - Mixing Unmanaged C++, C++/CLI, and C# code
- Total
- Today
- Yesterday
- AdSense숨기기
- 애드센스숨기기
- READYSTATE_COMPLETE
- download.com
- c#
- 애드센스감추기
- Rollback Rx
- 유틸리티
- Service pack
- registry
- iTextSharp
- AxWebBrowser
- 스크린캡쳐
- jre
- Regular Expressions
- autohotkey
- Phalanger
- WinAutomation
- .net framework
- AdSense감추기
- DotNetMagic
- tagREADYSTATE
- windows
- java
- ScreenHunter
- Microsoft
- Sample Code
- Automation
- iText
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |