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
H

harsha_1234

@harsha_1234
About
Posts
51
Topics
28
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • FAT 32 file system
    H harsha_1234

    Thanks i will definitely read that book Thanks and regards Harshal shete

    C / C++ / MFC design learning

  • Fat file system design
    H harsha_1234

    Hi all, i want to study internals of fat file system. so for that purpose which book i should use as an reference book. just what "The design of unix operating system (Maurice J Bach)" does to understand the unix file sysetm. Is there any such book by which i would be able to understand the fat file system. If anyone know's please tell me. i want to create a file system driver for fat fs. Thanks and regards Harshal shete

    Design and Architecture design learning

  • FAT 32 file system
    H harsha_1234

    Hi all, i want to study internals of fat file system. so for that purpose which book i should use as an reference book. just what "The design of unix operating system (Maurice J Bach)" does to understand the unix file sysetm. Is there any such book by which i would be able to understand the fat file system. If anyone know's please tell me. i want to create a file system driver for fat fs. Thanks and regards Harshal shete

    C / C++ / MFC design learning

  • FAT 32 file system internals
    H harsha_1234

    Hi all, which book should i refer to know internals of the FAT32 file system. actually i want to write a program that will be able to read the file system but it runs without kernel. (it's in embedded domain.) Thanks and regards Harshal shete

    System Admin hardware learning

  • Socket prblem
    H harsha_1234

    yes that is true but how i can access that port number??

    C / C++ / MFC sysadmin help question

  • Thread exit handler
    H harsha_1234

    Hi all, do we have some way by which we can have a function with which we can do the cleanup job!! like exit handler for threads. i have created thread with CreateThread Thanks Harshal

    C / C++ / MFC career

  • Socket prblem
    H harsha_1234

    Hi all, i have one problem related to thread. i am having my main thread running which will on some event create a thread for validation purpose and then will start working. and now this validator thread will create a socket and it will bind to port 20111. and then will wait for client to connect. but before waiting for client to connect it will send a message to the main thread that validation is done. but in this way i need to stick with port 20111.which i really don't want. Is it possible for me to get a free port from operating system or from winsock library and then i should bind to this port?? and one more thing i want is i want to get the free port no that operating system has given in an variable because i will need that port number further in the main programs lifetime. the code is as follows UINT Thread_Func(LPVOID pParam) { wsaret = WSAStartup(0x101,&wsadata); if(wsaret != 0) return -1; sock.sin_family = AF_INET; sock.sin_addr.s_addr = INADDR_ANY; sock.sin_port = htons((unsigned short)20111);// iwant to obtain this port no on fly and // to get it in some variable so that i can use it further in my main thread server = socket(AF_INET,SOCK_STREAM,0); if(server == INVALID_SOCKET) return -1; if(bind(server,(SOCKADDR *)&sock,sizeof(sock))!=0) return -1; if(listen(server,1)!=0) return -1; cli_len = sizeof(cli); client = accept(server,(SOCKADDR *)&cli,&cli_len); if(client == 0) return -1; return 1; } i have not done socket programming before this is my first time i am doing it so if there are any mistakes please let me know Thanks and regards Harshal shete

    C / C++ / MFC sysadmin help question

  • CComboBox
    H harsha_1234

    oh thanks but how can i do this way like if i have a dropdown combo and i want to make the edit control non editable is it possible?? actually i have used CComboBox with dropdown property every where and till now i was checking the selected text on OnOk but if now if i want that combo to be dropdown and with non editable edit control !! is it possible?? Thanks and regards Harshal

    C / C++ / MFC question

  • CComboBox
    H harsha_1234

    Hi all, i have a combo box whose type is dropdown and i want that it should be only selectable i mean user should not be able to edit in that combo box. i tried with changing it's type to drop list by that way it becomes only selectable but i can not set the default values in that combo box if i am doing m_wndCombo.SetWindowText("Default"); in InitDialog then it does not show that "Default" string in combo box. how can i get both the feautures? means noneditable and should be able to set the default values at start of dialog!! Is it possible with combo box?? Thanks and regards Harshal

    C / C++ / MFC question

  • Unusual problem
    H harsha_1234

    Hi all, i have creted my project with visual studio 6.0 and after that for certain needs i started using visual studio 7(Version 7.1.3088) till now it was working very smoothly. but today i tried to add a propertysheet in my project and for that i created a dialog template and then by right cliking on that dialog box i clicked on add class. and in the add class dialog box i gave CPropertyPage as base class as it is required for the property sheet. and by this way i created the class but now when i compile the project it gives lot's of errors Why these errors are coming? i am doing nothing than just creating a class and giving it base class as CPropertyPage and then it gives me 1625 errors some of the errors are as follows e:\TemporyWorking\Triton\hdr\DocTree.h(20) : error C2504: 'CSizingControlBarG' : base class undefined e:\TemporyWorking\Triton\hdr\DocTree.h(46) : error C2146: syntax error : missing ';' before identifier 'm_imageList' e:\TemporyWorking\Triton\hdr\DocTree.h(46) : error C2501: 'CDocTree::CImageList' : missing storage-class or type specifiers Thanks and Regards Harshal

    C / C++ / MFC help csharp visual-studio question announcement

  • named pipe
    H harsha_1234

    you can check whther there is data present on the pipe or not bu calling PeekNamedPipe() api so that you can come to know data is available or not!! and then make ReadFile() call is data is available i did not understood your problem very well but this can be your solution so replied bye Harshal

    C / C++ / MFC

  • CtreeCtrl Popupmenu
    H harsha_1234

    i am able to show the popup menu when user right clicks on tree view item but now the problem is that when user clicks on some Menuitem then the control doesn't reaches to the respective menu handler in fact nothing is getting called below is the code for showing the pop uo menu void CTreeViewDlg::OnNMRclickTree1(NMHDR *pNMHDR, LRESULT *pResult) { CPoint ptMouse; DWORD dwPos; UINT nFlags; CTreeCtrl *pTreeCtrl; pTreeCtrl = (CTreeCtrl *)GetDlgItem(IDC_TREE1); { dwPos = ::GetMessagePos(); ptMouse.x = LOWORD (dwPos); ptMouse.y = HIWORD (dwPos); CPoint ptAction = ptMouse; // convert coordinates pTreeCtrl->ScreenToClient(&ptAction); // determine if click is on tree item HTREEITEM hItemRClick = pTreeCtrl->HitTest(ptAction, &nFlags); // if click is on tree item, if (hItemRClick != NULL) { // set selection to right+clicked item pTreeCtrl->SelectItem(hItemRClick); HMENU hMenu = LoadMenu(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MENU1)); if(hMenu) { hMenu = GetSubMenu(hMenu,1); if(hMenu) { TrackPopupMenu(hMenu,0,ptMouse.x,ptMouse.y,0,pTreeCtrl->m_hWnd,NULL); } } } } *pResult = 0; } Thanks and regards harshal

    C / C++ / MFC data-structures help

  • CtreeCtrl Popupmenu
    H harsha_1234

    void CTreeViewDlg::OnNMRclickTree1(NMHDR *pNMHDR, LRESULT *pResult) { CPoint ptMouse; DWORD dwPos; UINT nFlags; CTreeCtrl *pTreeCtrl; pTreeCtrl = (CTreeCtrl *)GetDlgItem(IDC_TREE1); { dwPos = ::GetMessagePos(); ptMouse.x = LOWORD (dwPos); ptMouse.y = HIWORD (dwPos); CPoint ptAction = ptMouse; // convert coordinates pTreeCtrl->ScreenToClient(&ptAction); // determine if click is on tree item HTREEITEM hItemRClick = pTreeCtrl->HitTest(ptAction, &nFlags); // if click is on tree item, if (hItemRClick != NULL) { // set selection to right+clicked item pTreeCtrl->SelectItem(hItemRClick); HMENU hMenu = LoadMenu(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MENU1)); if(hMenu) { hMenu = GetSubMenu(hMenu,1); if(hMenu) { TrackPopupMenu(hMenu,0,ptMouse.x,ptMouse.y,0,pTreeCtrl->m_hWnd,NULL); } } } } *pResult = 0; } i have done something like this Noe the pop up menu is poping up but whenever i click on something it does not go to respective handler!! Thanks and regards Harshal

    C / C++ / MFC question data-structures help

  • CtreeCtrl Popupmenu
    H harsha_1234

    I have done it this way but still it shows the menu at same position.

    C / C++ / MFC question data-structures help

  • CtreeCtrl Popupmenu
    H harsha_1234

    Hi all, i have a tree control in which i want to show the popup menu when someone right clicks on item. so that i hadled the NM_RCLICK message but the pop up menu comes somewhere near start button!! the code is as follows void CTreeViewDlg::OnNMRclickTree1(NMHDR *pNMHDR, LRESULT *pResult) { NM_TREEVIEW* pNmTreeVew = NULL; pNmTreeVew =(NM_TREEVIEW*) pNMHDR; if(pNmTreeVew) { CPoint point; point.x = pNmTreeVew->ptDrag.x; point.y = pNmTreeVew->ptDrag.y;/* HMENU hMenu = LoadMenu(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MENU1)); if(hMenu) { TrackPopupMenu(hMenu,0,point.x,point.y,0,pTreeCtrl->m_hWnd,NULL); } } } What can be the problem with this code? actually when i debugged the code it point.y shows some big value so please tell what is the problem Thanks and regards Harshal

    C / C++ / MFC question data-structures help

  • CTreeCtrl related problem
    H harsha_1234

    Hi all, i have one class in which i create tree view control with it's Create method. e.g class CDocTree : CSizingbar { public : CTreeCtrl m_wndTreeCtrl; }; in this way i am working till now but i am not able to know when someone right clicks on the node. actually i want to do something like this if somebody right clicks on leaf node then i want to display a popup menu at that position and then on some menu event i wanted to show the dialog box. in this process i want the label associated with that leaf node.. currently i am catching events in this manner BEGIN_MESSAGE_MAP(CDocTree, CSizingDocBar) ON_WM_CREATE() ON_NOTIFY(NM_DBLCLK,1234,OnTreeNotify)//** ON_NOTIFY(TVN_KEYDOWN, 1234, OnTreeKeyDown)//** ON_WM_CONTEXTMENU() END_MESSAGE_MAP() how i can achieve it Thanks and regards Harshal

    C / C++ / MFC data-structures help

  • CreateProcess
    H harsha_1234

    how many arguments we can pass to the new process? Is there any limit on arguments or the size of buffer that we are giving to CreateProcess as second parameter?? Harshal

    C / C++ / MFC question

  • USB communication
    H harsha_1234

    HI all, how we can communicate with usb device from the mfc? means if the usb device is installed then how to communicate with it? does CreateFile will be benefiticial? if anyone know's some link please forward to me Thanks and regards Harshal

    C / C++ / MFC c++ tutorial question

  • CRichEditCtrl Font related query
    H harsha_1234

    But Apart from this i have another query i am doing undo redo also. it is working fine but in undo as well as redo there is one small problem that whenever i undo/redo then after every undo/redo operation it selects some text and then on next undo/redo it undoes/redoes the character that was typed. how i can fake the middle selection between two operations?? undo code is like this if (m_rich.CanUndo()) { m_rich.Undo(); } Thanks and regards Harshal

    C / C++ / MFC question database help

  • CRichEditCtrl Font related query
    H harsha_1234

    Thank You very much for your help. it is working very fine. Thank's.

    C / C++ / MFC question database 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