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
M

Maxim Zarus

@Maxim Zarus
About
Posts
29
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Communication between TreeView and FormView
    M Maxim Zarus

    Now, i get this error: Unhandled exception at 0x00530a33 in MyPrg.exe: 0xC0000005: Access violation reading location 0x1271e40a. and control goes to:

    void CWnd::SetWindowText(LPCTSTR lpszString)
    {
    ENSURE(this);
    ENSURE(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL));

    if (m\_pCtrlSite == NULL)
    	::SetWindowText(m\_hWnd, lpszString);
    else
    	**m\_pCtrlSite->SetWindowText(lpszString);// control points here**
    

    }

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

  • Communication between TreeView and FormView
    M Maxim Zarus

    Sir, I am very confused. Please give me some example. How do I create attached view object?

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

  • Communication between TreeView and FormView
    M Maxim Zarus

    In my SDI application, I have two views, Treeview and FormView. I placed Edit control on FormView. I have to change value of Edit control by clicking on Tree. Both are different classes. But I am unable to access FormView Class members from Treeview. How can I do that?

    void CLeftView::OnTvnSelchanged(NMHDR *pNMHDR, LRESULT *pResult)
    {
    //some code
    CRightView *rView = new CRightView();
    if(rView!=NULL)
    {
    rView->m_Edit1.SetWindowText(_T("ok"));
    }
    }

    Code gives Debug Assertion Error.

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

  • Access control variables and methods of other classes in SDI Application
    M Maxim Zarus

    I did it as suggested by "Paresh". I have also tried CMyPrgView* pView = new CMyPrgView(); but still Assertion error comes. What i do, please suggest me.

    C / C++ / MFC data-structures json

  • Access control variables and methods of other classes in SDI Application
    M Maxim Zarus

    Thanks for your reply. I tried following code in my CLeftView class on Tree item selection(OnTvnSelchanged).

    CMyPrgView* pView= (CMyPrgView*)AfxGetApp();
    if(NULL!=pView)
    {
    pView->m_Edit1.SetWindowText(L"P");
    }

    But getting "Debug Assertion Failed" error on SetWindowText().

    C / C++ / MFC data-structures json

  • Access control variables and methods of other classes in SDI Application
    M Maxim Zarus

    Hi, In a SDI Application, I have three Classes CMainFrame, CLeftView(Derived from CTreeView) and CMyPrgView(Derived from CFormView). Now I want to access all class member, function and control variables of each class from rest of classes. Like when I click on tree items(LeftView), Controls placed on FormView should respond or clicking on menu(MainFrame) both TreeView items and Formview controls respond and vice versa. Please tell me any standard way to access other class members and function in SDI Application. Regards, Maxim.

    C / C++ / MFC data-structures json

  • WM_LBUTTONUP event is not workling correctly in list control
    M Maxim Zarus

    May I know why you down voted me, if your problem is solved by my answer? :)

    C / C++ / MFC help question

  • WM_LBUTTONUP event is not workling correctly in list control
    M Maxim Zarus

    Use ON_WM_LBUTTONDOWN. Its working if the left mouse button is down.

    C / C++ / MFC help question

  • Problem in my first program...
    M Maxim Zarus

    to use getche() you will have to use #include <conio.h> by the way you should choose second option.

    C / C++ / MFC help c++

  • Problem in my first program...
    M Maxim Zarus

    Either add getche() before return statement and press F5. or Go to command prompt and run your program exe directly.

    C / C++ / MFC help c++

  • Problem in my first program...
    M Maxim Zarus

    Add this header file

    #include <iostream>

    And also write cout as

    std::cout<<"Hello!";

    C / C++ / MFC help c++

  • Difference among INT, INT32, LONG, LONG32...?
    M Maxim Zarus

    Helpful link. Thanks. And your answer is also very supportive. Giving you 5 votes...:)

    C / C++ / MFC question

  • Difference among INT, INT32, LONG, LONG32...?
    M Maxim Zarus

    Sir, Can I know the reason of down voted? Is my way of asking question is not right? I am new here in this forum. I was just trying to explain me before all of you...:) Thanks. Maxim.

    C / C++ / MFC question

  • Difference among INT, INT32, LONG, LONG32...?
    M Maxim Zarus

    No, not at all. But I am little bit confused. I am just curious to know the difference among them on same windows version with same compiler. I am talking about their uses and importance also need. I have used all in my program and not found any difference. That is why I am asking here. Because you all are experienced and experts. Please guide me. Sorry, If i am wrong or rude anywhere. Regards, Maxim.

    C / C++ / MFC question

  • Difference among INT, INT32, LONG, LONG32...?
    M Maxim Zarus

    Please tell me about all not only two. Also, I want to know about INT, INT32, LONG, LONG32 not int and long. If you can, please compare atleast these four data types. Regards, Maxim.

    C / C++ / MFC question

  • Difference among INT, INT32, LONG, LONG32...?
    M Maxim Zarus

    I dont think so. All are used in VC++ on same compiler(VS 2005) and same platform(Windows). Please describe the difference. By the way, Thanks for your effort.:)

    C / C++ / MFC question

  • Difference among INT, INT32, LONG, LONG32...?
    M Maxim Zarus

    INT, INT32, LONG and LONG32 all are 32-bit signed integer. Then what is the main difference among them? Also I have saw other many similar data types (e.g LONGLONG, LONG64. What is the need of this difference? Any one please describe about it. Regards Maxim

    C / C++ / MFC question

  • How to Convert CString to _TCHAR *
    M Maxim Zarus

    you mean, first allocate memory for sEndDate then i can use _tcscpy_s(). its ok. i agree. but is it also neccessary to allocate memory when CString::GetBuffer() has been used? because i have seen in pervious post nobody ask to allocate memory for CString::GetBuffer(). regards, Maxim... :)

    C / C++ / MFC c++ help tutorial career

  • How to Convert CString to _TCHAR *
    M Maxim Zarus

    Thank you sir :)

    C / C++ / MFC c++ help tutorial career

  • How to Convert CString to _TCHAR *
    M Maxim Zarus

    Sir, just tell me where it will fail? I want to clear my confusion. Thanks:confused:

    C / C++ / MFC c++ help tutorial career
  • Login

  • Don't have an account? Register

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