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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

dan60606

@dan60606
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MFC small help please
    D dan60606

    yea thank and if i make

    private:
    CStatic mpStatic;

    like private member variable End block in OnCreate not destroyed CStatic object and dont work. If use pointer all OK. OMG it is work and before 1 hour not =( sorry fkn bug. Thank you for help. =)

    C / C++ / MFC c++ help

  • MFC small help please
    D dan60606

    Quote:

    This code work:

    int CPageWelcome::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if (CWnd::OnCreate(lpCreateStruct) == -1)
    return -1;

    CStatic * lblPresent = new CStatic();
    lblPresent->Create(L"Present", WS_CHILD | WS_VISIBLE,
    CRect(20, 20, 100, 40), this);

    return 0;
    }

    This code dont work:

    int CPageWelcome::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if (CWnd::OnCreate(lpCreateStruct) == -1)
    return -1;

    CStatic lblPresent;
    lblPresent.Create(L"Present", WS_CHILD | WS_VISIBLE,
    CRect(20, 20, 100, 40), this);

    return 0;
    }

    Please help i dont understand. Thank.

    C / C++ / MFC c++ help

  • MFC small help please
    D dan60606

    This code work:

    int CPageWelcome::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if (CWnd::OnCreate(lpCreateStruct) == -1)
    return -1;

    CStatic \* lblPresent = new CStatic();
    lblPresent->Create(L"Present", WS\_CHILD | WS\_VISIBLE,
    		   CRect(20, 20, 100, 40), this);
    
    return 0;
    

    }

    This code dont work:

    int CPageWelcome::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if (CWnd::OnCreate(lpCreateStruct) == -1)
    return -1;

    CStatic lblPresent;
    lblPresent.Create(L"Present", WS\_CHILD | WS\_VISIBLE,
    		   CRect(20, 20, 100, 40), this);
    
    return 0;
    

    }

    Please help i dont understand. Thank.

    Managed C++/CLI c++ 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