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
B

Bigsteiny

@Bigsteiny
About
Posts
10
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Getting C++ n Delphi to comm over tcpip
    B Bigsteiny

    Yeah i only spotted the 'dont post in the lounge' thing *after* i pressed the submit button. :-) Sorry about all that! -az.:)

    The Lounge c++ delphi sysadmin question

  • Delphi to C++ on 2 machines via TCPIP
    B Bigsteiny

    Hey guys... i'm developing a C++ application, and a delphi application. they'll both run on separate machines and talk across a network via tcp/ip. Now, does anyone have any suggestions for where to start? Thanks. -Az.

    C / C++ / MFC c++ delphi sysadmin question

  • Getting C++ n Delphi to comm over tcpip
    B Bigsteiny

    Hey guys... i'm developing a C++ application, and a delphi application. they'll both run on separate machines and talk across a network via tcp/ip. Now, does anyone have any suggestions for where to start? Thanks. -Az.

    The Lounge c++ delphi sysadmin question

  • HELP! Anyone know MFC here?
    B Bigsteiny

    Right, i'd actually alread tried that method too... and it didn't work. I tried swapping the mapping from my custom class, to the view and still didn't work. The problem was... m_btn.Create("TEST", WS_CHILD|WS_VISIBLE, CRect(0,0, 200, 100), this, ID_MYBUTTON) as opposed to my m_btn.Create("TEST", WS_CHILD|WS_VISIBLE, CRect(0,0, 200, 100), AfxGetMainWnd(), ID_MYBUTTON) should have seen this. Thanks for the help everyone.:-D:-D:-D

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

  • Good way to spend an afternoon?
    B Bigsteiny

    I've actually run into similar things at my work. I've got a few people under me, and have to figure out ways to deal with them (and in particular, motivation). My boss has used stuff like movies and lunches/dinners etc in the past, and it has been well received. Although employee's still feel like they're going to get fired soon or something like that... i've been hesitatnt with doing the movies/lunches thing in the past because i felt like it would put a 'whats he planning' sort of feeling in my troops. I suppose thats due to infrequency... But it's good to see the employees do appreciate it... i might have to up the frequency in the future.:-D

    The Lounge question

  • HELP! Anyone know MFC here?
    B Bigsteiny

    I must be doing something wrong but i don't know what. So here's all of it.. Thanks for the patience. ////////////////////////////////////////////////////////////////// // tstButtonView.h : interface of the CTstButtonView class #include "MyButton.h" class CTstButtonView : public CView { protected: // create from serialization only CTstButtonView(); DECLARE_DYNCREATE(CTstButtonView) // Attributes public: CTstButtonDoc* GetDocument(); MyButton* myButton; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTstButtonView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); //}}AFX_VIRTUAL // Implementation public: virtual ~CTstButtonView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CTstButtonView) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //////////////////////////////////////////////////////////// // and in the view's cpp... void CTstButtonView::OnInitialUpdate() { CView::OnInitialUpdate(); myButton = new MyButton; myButton->Create("Test", WS_CHILD, CRect(0,0,50,50), AfxGetMainWnd(), WM_USER+1); myButton->ShowWindow(SW_SHOW); } ////////////////////////////////////////////////////////////////// // MyButton.h : header file // MyButton window class MyButton : public CButton { // Construction public: MyButton(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(MyButton) //}}AFX_VIRTUAL // Implementation public: virtual ~MyButton(); // Generated message map functions protected: //{{AFX_MSG(MyButton) afx_msg void OnMyButton(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// // MyButton.cpp file. MyButton::MyButton() { } MyButton::~MyButton() { } BEGIN_MESSAGE_MAP(MyButton, CButton) //{{AFX_MSG_MAP(MyButton) ON_BN_CLICKED(WM_USER+1, OnMyButton) //}}AFX_MSG_MAP END_MESSAGE_MAP() void MyButton::OnMyButton() { AfxMessageBox("My Function!"); }

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

  • HELP! Anyone know MFC here?
    B Bigsteiny

    Based on? Um. It just used the AppWizard and made an SDI application. The control is created at run time, but it's declared at compile time... not sure if this makes a difference though... Thanks. -Az.;)

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

  • HELP! Anyone know MFC here?
    B Bigsteiny

    Arrggh! No good i'm afraid. I made a class called MyButton which inherits from CButton fine. made it ok. Create-ed it fine, ShowWindow-ed fine.... i even got the class wizard to apparently map the OnLButtonDown.. but when i click on it - it does nothing. The code never executes?! Help! :rolleyes: BEGIN_MESSAGE_MAP(MyButton, CButton) //{{AFX_MSG_MAP(MyButton) ON_WM_LBUTTONDOWN() //}}AFX_MSG_MAP END_MESSAGE_MAP() // Generated message map functions protected: //{{AFX_MSG(MyButton) afx_msg void OnLButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG void MyButton::OnLButtonDown(UINT nFlags, CPoint point) { AfxMessageBox("You Clicked LButton on MyButton class"); CButton::OnLButtonDown(nFlags, point); } That's basically whats been added... but it doesn't work. Any thoughts? Thanks for the help.

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

  • HELP! Anyone know MFC here?
    B Bigsteiny

    Thanks, but i'm not sure that helps. The classwizard doesn't offer any mapping abilities for my object... In the View.h i have... CButton myButton; then in the cpp i have myButton.Create("Test", WS_CHILD, CRect(0,0,50,50), AfxGetMainWnd(), WM_USER+1); myButton.ShowWindow(SW_SHOW); If i go to the classwizard, under the "Message Maps" tab, i select the View as the Class Name, but then what? Theres no reference to my button anywhere. :confused: Thanks for the help though mate, i appreciate it. any more thoughts? -BigSteiny

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

  • HELP! Anyone know MFC here?
    B Bigsteiny

    I need help. i must be such a retard i dont understand. I'm making an MFC SDI app, with a CButton object in the view. in OnInitialUpdate i am ::Create() ing the object fine, and ShowWindow() ing fine. The button appears... now how do i simply make an AfxMessageBox for when i click on this button!? I've read about subclassing and it seems like it might be the way to go but i just *cant* get it to work. Any help would be appreciated...

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