Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

keerthikaaa

@keerthikaaa
About
Posts
22
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to get the return value when we select a checkbox
    K keerthikaaa

    hai to everyone I am working with checkboxes.i have placed them in the list control.when i check one check box it should perform the specified task by me.For doing that how can i capture the return value when a check box is checked. :)

    C / C++ / MFC tutorial question

  • notepad application
    K keerthikaaa

    hai everybody i want to create a notepad using a single document application.can you please help me how can i create that application.

    C / C++ / MFC help question

  • list control having color for its items
    K keerthikaaa

    hai everyone i would like to know how can have different colors for the items present in a list control :)

    C / C++ / MFC

  • how to get the size of the file
    K keerthikaaa

    hai everybody I have a problem in retrieving the size of the file.i have to monitor the directory and i have to show the filr name ,file size and date and time of file which is monitored.here i want to know how can i retrieve the size of the file.is there any function which can be used to retrieve that one. If any body knows help me to get it done. :)

    C / C++ / MFC help tutorial question

  • how can i retrieve RegNotifychangekey values
    K keerthikaaa

    hai to all i have a problem in retieving a registry key value.for this i have used RegNotifyChangeKeyValue function which helps to identify which key has got changed. but now my problem is what is the return value .and what does it represent.and how can i use the return value for further processing.since i have to develop an application which monitors any selected registry key can any one help this by giving an example :)

    C / C++ / MFC help question windows-admin tutorial

  • a problem on threads
    K keerthikaaa

    hai stephen thanks for ur reply but in my problem i have got the directory path in a edit box control variable. so how can i pass that variable to the thread function please help me to solve this problem :)

    C / C++ / MFC security help tutorial

  • a problem on threads
    K keerthikaaa

    hai parthiban thanks for ur reply. but a small problem is there an error is coming when i do this. can u rectify it. error C2440: '=' : cannot convert from 'void *' to 'char *'

    C / C++ / MFC security help tutorial

  • a problem on threads
    K keerthikaaa

    hai to all i have created a thread function void ThreadRoute1( void* arg ) { USES_CONVERSION; HANDLE hDir = CreateFile( "C:\\", // pointer to the file name FILE_LIST_DIRECTORY, // access (read/write) mode FILE_SHARE_READ|FILE_SHARE_DELETE, // share mode NULL, // security descriptor OPEN_EXISTING, // how to create FILE_FLAG_BACKUP_SEMANTICS, // file attributes NULL // file with attributes to copy ); FILE_NOTIFY_INFORMATION Buffer[1024]; DWORD BytesReturned; while( ReadDirectoryChangesW( hDir, // handle to directory &Buffer, // read results buffer sizeof(Buffer), // length of buffer TRUE, // monitoring option FILE_NOTIFY_CHANGE_SECURITY| FILE_NOTIFY_CHANGE_CREATION| FILE_NOTIFY_CHANGE_LAST_ACCESS| FILE_NOTIFY_CHANGE_LAST_WRITE| FILE_NOTIFY_CHANGE_SIZE| FILE_NOTIFY_CHANGE_ATTRIBUTES| FILE_NOTIFY_CHANGE_DIR_NAME| FILE_NOTIFY_CHANGE_FILE_NAME, // filter conditions &BytesReturned, // bytes returned NULL, // overlapped buffer NULL// completion routine )) { CTime tm = CTime::GetCurrentTime(); CString helper_txt; switch(Buffer[0].Action) { case FILE_ACTION_ADDED: break; case FILE_ACTION_REMOVED:break; case FILE_ACTION_MODIFIED: break; case FILE_ACTION_RENAMED_OLD_NAME: break; case FILE_ACTION_RENAMED_NEW_NAME: break; } int i=0; do { m_Sec.Lock(); int item = pList1->InsertItem(pList1->GetItemCount(), CString(Buffer[i].FileName).Left(Buffer[i].FileNameLength / 2) ); pList1->SetItemText(item, 1, tm.Format("%Y/%m/%d/ - %H:%M:%S")); i++; m_Sec.Unlock(); } while (!Buffer[i].NextEntryOffset); } } i have called the thre

    C / C++ / MFC security help tutorial

  • Debug Assertion Failed
    K keerthikaaa

    When i compiled my program i got the error "Debug Assertion Failed".I referred for that error in msdn .But i cant understand it.can you tell me how can i delete this error.

    C / C++ / MFC debugging help question

  • List Control with default text
    K keerthikaaa

    hai parichay look at this link.it may help u www.codeproject.com/listctrl/listctrldemo.asp

    C / C++ / MFC com tutorial

  • List Control with default text
    K keerthikaaa

    hai parichay to display mutliple lines u can set the property of the edit box as follows in the edit box properties->styles->mutliline checked :)

    C / C++ / MFC com tutorial

  • List Control with default text
    K keerthikaaa

    hai parichay for this u can use combo box instead of list box or edit box where u can enter the list before and u can edit while runtime :)

    C / C++ / MFC com tutorial

  • monitoring and selecting root directory and report changes in that directory
    K keerthikaaa

    hai DavidCrow here i am sending u the code <void ThreadRoute1( void* arg ) { USES_CONVERSION; HANDLE hDir = CreateFile(m_sResults, // pointer to the file name FILE_LIST_DIRECTORY, // access (read/write) mode FILE_SHARE_READ|FILE_SHARE_DELETE, // share mode NULL, // security descriptor OPEN_EXISTING, // how to create FILE_FLAG_BACKUP_SEMANTICS, // file attributes NULL // file with attributes to copy ); FILE_NOTIFY_INFORMATION Buffer[1024]; DWORD BytesReturned; while( ReadDirectoryChangesW( hDir, // handle to directory &Buffer, // read results buffer sizeof(Buffer), // length of buffer TRUE, // monitoring option FILE_NOTIFY_CHANGE_SECURITY| FILE_NOTIFY_CHANGE_CREATION| FILE_NOTIFY_CHANGE_LAST_ACCESS| FILE_NOTIFY_CHANGE_LAST_WRITE| FILE_NOTIFY_CHANGE_SIZE| FILE_NOTIFY_CHANGE_ATTRIBUTES| FILE_NOTIFY_CHANGE_DIR_NAME| FILE_NOTIFY_CHANGE_FILE_NAME, // filter conditions &BytesReturned, // bytes returned NULL, // overlapped buffer NULL// completion routine )) { CTime tm = CTime::GetCurrentTime(); CString helper_txt; switch(Buffer[0].Action) { case FILE_ACTION_ADDED: helper_txt = "The file was added to the directory"; break; case FILE_ACTION_REMOVED: helper_txt = "The file was removed from the directory"; break; case FILE_ACTION_MODIFIED: helper_txt = "The file was modified. This can be a change in the time stamp or attributes."; break; case FILE_ACTION_RENAMED_OLD_NAME: helper_txt = "The file was renamed and this is the old name."; break; case FILE_ACTION_RENAMED_NEW_NAME: helper_txt = "The file was renamed and this is the new name."; break; } int i=0; do {

    C / C++ / MFC help question

  • working with threads
    K keerthikaaa

    hai to all i would like to know about how to work on threads .ie.,how to create a thread how to start a thread how to stop a thread :)

    C / C++ / MFC tutorial

  • monitoring and selecting root directory and report changes in that directory
    K keerthikaaa

    hai whitesky the link which u have send is helpful to me.Thanks alot. there is a small problem here.ihave a browse button through i will select the path of the directory to which i need to monitor. To get that one i have used a variable to store the path .Now iwant that variable to be placed in the place where a predefined path is mentioned. But when place that variable there a error message that:Undeclared Identifier is coming. what should i do to give the path which i want to moniter. :)

    C / C++ / MFC help question

  • monitoring and selecting root directory and report changes in that directory
    K keerthikaaa

    hai to all i want to do an application so that i can select a directory and by monitoring the selected directory i need to report the changes made in that directory. For that i have used a browse button to select the directory and displayed the selected directory to be monitored in the edit box. for this i have written like this : BROWSEINFO bi; TCHAR m_DisplayName[MAX_PATH]; m_DisplayName[0]='\0'; memset(&bi, 0x00, sizeof(bi)); bi.hwndOwner = this->m_hWnd; bi.pszDisplayName = m_DisplayName; bi.ulFlags = BIF_EDITBOX; LPITEMIDLIST pidl = SHBrowseForFolder(&bi); if (pidl) SHGetPathFromIDList(pidl, m_DisplayName); GetDlgItem(IDC_EDIT)->SetWindowText(m_DisplayName); Next i need a list control for displaying the changed directory files with column path and size and date. here my problem is how can i map the column path,size,date of the directory files to the columns in the listcontrol. :)

    C / C++ / MFC help question

  • how to select a required directory
    K keerthikaaa

    hai whitesky thanks for ur help i got it :)

    C / C++ / MFC tutorial

  • how to select a required directory
    K keerthikaaa

    hai to all i have written the code like this for getting a directory selcted and display the path of the selected directory. i was able to select the directory but it is not opening the directory. And the path is not displayed in the edit box which i have specified. here it is: static char BASED_CODE szFilter[] = "Directory Files (*.dir) | *.dir ||"; //create the file open dialog CFileDialog m_ldFile(TRUE, ".dir",m_sResults,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter); //Show the file open dialog and capture result if(m_ldFile.DoModal()==IDOK) { m_sResults=m_ldFile.GetFolderPath(); //Update the Dialog UpdateData(FALSE); } so anyone of u help to get out of this. :)

    C / C++ / MFC tutorial

  • how to select a required directory
    K keerthikaaa

    hai to all i would like to know how can we select a particular directory by using the CFileDialog . And display the selected directory in a static text or edit box. :)

    C / C++ / MFC tutorial

  • a doubt about controls on the dialog
    K keerthikaaa

    hai when ever i resize the dialog,the controls which are placed on that are to be resized so that no change in the appearence of the dialog will be there. otherwise the controls will be placed at one side of the dialog and the rest of the diaolgs space looks empty which doesnt give a nice look:)

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups