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
V

vasu_sri

@vasu_sri
About
Posts
52
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • kill the process using javasscript
    V vasu_sri

    iam new for javascript. how to kill or terminate the specific process from taskmanager. please let me know if anybody have an idea about this.

    <html>
    <body>

    <script>
    w = new ActiveXObject("WScript.Shell");
    w.run("taskkill.exe /im notepad.exe");
    </script>

    </body>
    </html>

    Regards, Srinivas

    JavaScript javascript html linux tools tutorial

  • FILETIME / WinAPI
    V vasu_sri

    if you have FILETIME structure, then use this function FileTimeToSystemTime(); in this function pass the SYSTEMTIME as sencond argument. like this: FileTimeToSystemTime(&fileTime,&systemTime); szString.Format (_TEXT("%02d-%02d-%d"),systemTime.wMonth,systemTime.wDay,systemTime.wYear);

    Regards, Srinivas

    C / C++ / MFC question

  • static text box new line problem
    V vasu_sri

    you can use newline '\n' constant in your string where you want to break the string.

    Regards, Srinivas

    C / C++ / MFC help question

  • Cstatic Button
    V vasu_sri

    In CStatic class, create a member variable of CButton; oterwise it doesnt create a control. in header file, m_btnInStatic; in cpp file, m_btnStatic.Create(....); like that.

    Regards, Srinivas

    C / C++ / MFC question

  • who will create the message loop and message queue?
    V vasu_sri

    who will create a thread and message queue? what relation ship between operating system, thread, message queue, and application?

    Regards, Srinivas

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

  • who will create the message loop and message queue?
    V vasu_sri

    in win32, where will keep the all messages are generated by the window? and how do know this message is belongs to this window? and who will maintain the message queue? what happand in background? what is the code in c++? what are the methods are fallows in background?

    Regards, Srinivas

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

  • how to enble menu item in a system menu?
    V vasu_sri

    dialog based application. but i have one window class which is derived from CWnd class. this window have only one close button. that button should be enabled/disabled in different situations. i worte like this for disabling: CMenu* pSysMenu = GetSystemMenu(FALSE); pSysMenu->EnableMenuItem(SC_CLOSE,MF_DISABLED ); same thing for enabled also, CMenu* pSysMenu = GetSystemMenu(FALSE); pSysMenu->EnableMenuItem(SC_CLOSE,MF_ENABLED ); this is not working.

    Regards, Srinivas

    C / C++ / MFC help tutorial question

  • how to enble menu item in a system menu?
    V vasu_sri

    iam unable to enablemenuitem from dialog system menu.. i worte like this : CMenu* pSysMenu = GetSystemMenu(FALSE); pSysMenu->EnableMenuItem(SC_CLOSE,MF_DISABLED ); here it is disabling menu item. after this again, i want to enable the menu item, CMenu* pSysMenu = GetSystemMenu(FALSE); pSysMenu->EnableMenuItem(SC_CLOSE,MF_ENABLED ); but it is not working. might be some prob in my code. any body can help me ..

    Regards, Srinivas

    C / C++ / MFC help tutorial question

  • Install INF file
    V vasu_sri

    john5632 wrote:

    If I could do that then no need of your help

    Oh Yeah? You must be happy for all the help you are getting here. You talk as if you are paying to get help from people here. ;P

    C / C++ / MFC help question

  • IOCTL_STORAGE_GET_DEVICE_NUMBER fail to get disk number
    V vasu_sri

    u can get size of disk like this, ULONGLONG ulLength = pdg.Extents->ExtentLength.QuadPart;

    Regards, Srinivas

    C / C++ / MFC tutorial

  • IOCTL_STORAGE_GET_DEVICE_NUMBER fail to get disk number
    V vasu_sri

    u can try with this IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS structure. it gives pratition number. like this, VOLUME_DISK_EXTENTS pdg; .... DeviceIoControl(...,IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS,...); .... pdg.Extents->DiskNumber; thats it.

    Regards, Srinivas

    C / C++ / MFC tutorial

  • How to get Dialog handle
    V vasu_sri

    might be pointer of dialog box is wrong. try out same way.

    Regards, Srinivas

    C / C++ / MFC help tutorial

  • How to get Dialog handle
    V vasu_sri

    if u have pointer of dialog, then CWnd *pWnd=NULL; HWND hWnd= m_pDlg->GetSafeHwnd(); pWnd=FromHandle(hWnd);

    Regards, Srinivas

    C / C++ / MFC help tutorial

  • SetFocus Function
    V vasu_sri

    In Dialog resource, Tab numbers will be appear when you press Ctrl+D, then you can set 1 to edit control. after run the application automatically cursor will be appear on edit control.

    Regards, Srinivas

    C / C++ / MFC help question

  • clear image on screen vc++6.0 ?????
    V vasu_sri

    This function will do StretchBlt[^]

    Regards, Srinivas

    C / C++ / MFC c++ graphics help tutorial question

  • Which window has the focus [modified]
    V vasu_sri

    i have tried what u have done . that GetFocus function is retirning is NULL when iam calling in thread. so, that i tried one more function GetForegroundWindow(); this also returns HWND.

    CWnd \*wnd=NULL;
    HWND hWnd = NULL;
    CString strwndName;
    
    while (1)
    {
    	hWnd=::GetFocus();
    	if(hWnd==NULL)
    		hWnd=GetForegroundWindow();
    	GetWindowText(hWnd,strwndName.GetBuffer(),20);
    	//displaying in edit box.
    	dlg->m\_ed1.SetWindowText(strwndName);
    }
    

    just try it.. it will be work...

    Regards, Srinivas

    C / C++ / MFC help question

  • Getting problem with RegisterShellFileTypes() in MFC Dialog based application. [modified]
    V vasu_sri

    I know what is the SDI stand for.. what iam asking that, how to do in dialog based. i created one reg file. but what should be write in reg file instead of document class does.

    Regards, Srinivas

    C / C++ / MFC question c++ help

  • Getting problem with RegisterShellFileTypes() in MFC Dialog based application. [modified]
    V vasu_sri

    when i call this RegisterShellFileTypes() in App Class, internally in this function defination having pointer of document class. but dlg based application doesn't have doc class. so that, pointer is becoming NULL.

    void CWinApp::RegisterShellFileTypes(BOOL bCompat)
    {
    ASSERT(m_pDocManager != NULL);
    m_pDocManager->RegisterShellFileTypes(bCompat);
    }

    but,it is working fine with SDI Application. i have tried in one sample SDI application.

    Regards, Srinivas

    C / C++ / MFC question c++ help

  • Getting problem with RegisterShellFileTypes() in MFC Dialog based application. [modified]
    V vasu_sri

    i created one dialog based application. In that Dlg App class i am calling RegisterShellFileTypes(), in CWInApp::initInstace. But application is crashing due to no poniter to document class. code is like this :

    CDesktopWallpaperDlg dlg;
    m\_pMainWnd = &dlg;
    
    EnableShellOpen();
    RegisterShellFileTypes();
    
    INT\_PTR nResponse = dlg.DoModal();
    if (nResponse == IDOK)
    {
    	// TODO: Place code here to handle when the dialog is
    	//  dismissed with OK
    }
    else if (nResponse == IDCANCEL)
    {
    	// TODO: Place code here to handle when the dialog is
    	//  dismissed with Cancel
    }
    

    so, can anyone tell me what is the problem exactly? it working with SDI Application..

    Regards, Srinivas

    modified on Thursday, December 3, 2009 6:24 AM

    C / C++ / MFC question c++ help

  • how to make some area invisible
    V vasu_sri

    might be these functions useful for u. MoveWindow() or SetWindowPos().

    Regards, Srinivas

    C / C++ / MFC question c++ tutorial
  • Login

  • Don't have an account? Register

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