Platform
-
MFCPlatform/DB 2010. 1. 4. 23:15
CDatabase .OpenEx() .ExecuteSQL() CRecordset on GetDefaultConnect on GetDefaultSQL on DoFieldExchange m_nFields m_strFilter .Open() .IsEOF() .IsBOF() .Requery() .AddNew() .Edit() .Update() .SetFieldNull() RFX_Text() RFX_Bool() RFX_Date() #include ... void CDBTestDlg::OnBnClickedBtnSave() { // TODO: Add your control notification handler code here CDatabase db; ... db.OpenEx("DSN=messenger;"); db...
-
쉘 - NSISPlatform/Environment 2009. 12. 30. 13:35
# create a start menu itemSetShellVarContext allcreateShortCut "$SMPROGRAMS\new shortcut.lnk" "$INSTDIR\uninstall.exe"create a shortcut named "new shortcut" in the start menu programs directory SetShellVarContext alldelete "$SMPROGRAMS\new shortcut.lnk" !include "FileFunc.nsh" ${RefreshShellIcons} # to add entries to the "Add/Remove Programs" section in the Control PanelWriteRegStr HKLM "Softwar..
-
NSISPlatform/Environment 2009. 12. 30. 10:23
$DESKTOP $INSTDIR installDir # define the directory to install to ${NSISDIR} $SMPROGRAMS the start menu programs directory SetShellVarContext 명령어 $STARTMENU $QUICKLAUNCH SHCTX or SHELL_CONTEXT $PROGRAMFILES HKLM -- $LOCALAPPDATA HKCU 참조 사이트: http://jjjryu.tistory.com/entry/%EC%BB%A8%ED%8A%B8%EB%A1%A4-NSIS http://jjjryu.tistory.com/entry/NSIS-1
-
INI 파일Platform/File(장치 IO) 2009. 11. 29. 22:58
WritePrivateProfileString() GetPrivateProfileInt() LRESULT CALLBACK WndProc(HWND hWnd,UINT iMessage,WPARAM wParam,LPARAM lParam) { switch (iMessage) { case WM_CREATE: { TCHAR str[128]; TCHAR drive[_MAX_DRIVE]; TCHAR dir[MAX_PATH]; TCHAR path[256]; RECT rt; GetModuleFileName(NULL,str,128); _splitpath(str,drive,dir,NULL,NULL); strcpy(path, drive); strcat(path, dir); strcat(path, "IniFile.ini"); rt..
-
WindowsPlatform/Environment 2009. 11. 24. 17:31
Windows API ATL MFC C# // Java 3.51 Windows NT 3.51 // 3 4.0 Windows 95 (OSR2) // 4.0 Internet Explorer 1.0(August 1995) Windows NT 4.0 Workstation // 4.1, 0x0400 Internet Explorer 1.5 서비스 팩 6a Windows NT 4.0 Server Standard/Enterprise // 4.3 Internet Explorer 2.0(November 1995) Internet Explorer 3.0(August 1996) // _WIN32_IE>=0x0300, Internet Explorer 3.0, 3.01, 3.02 Internet Explorer 4.0(Septe..
-
자동 시작Platform/Environment 2009. 11. 13. 18:08
////////////////////////////////////////////////////////// // Function Name // SetRegistyStartProgram // // Parameters // bAutoExec[in] : TRUE이면 시작프로그램 레지스트리에 등록, FALSE면 해제 // lpValueName[in] : 설정할 값의 이름 // lpExeFileName[in] : 실행시킬 프로그램 Full 경로 (NULL 일수 있음, 단, bAutoExec값이 FALSE이여야 함) // // Return Values // 시작프로그램 레지스트리에 등록/헤제 성공이면 TRUE, 실패면 FALSE // static BOOL SetRegistyStartProgram(BOOL bAutoE..