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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. afx_message

afx_message

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    briefcase
    wrote on last edited by
    #1

    I'm trying to use messages to communicate within a program (I'm following the article "Interprocess communication tutorial By Alex Farber") but am running into a problem. I've followed the first few steps of his little tutorial, and run into the following error when i try to build the application: error C2065: 'OnMessageTextChanged' : undeclared identifier with regards to this line in programDlg.cpp : ON_REGISTERED_MESSAGE(wm_Message, OnMessageTextChanged) I thought that: afx_msg LRESULT OnMessageTextChanged(WPARAM wParam, LPARAM lParam); in programDlg.h was the proper way to declare this. Any ideas on what I may be doing wrong? Thanks greg

    P 1 Reply Last reply
    0
    • B briefcase

      I'm trying to use messages to communicate within a program (I'm following the article "Interprocess communication tutorial By Alex Farber") but am running into a problem. I've followed the first few steps of his little tutorial, and run into the following error when i try to build the application: error C2065: 'OnMessageTextChanged' : undeclared identifier with regards to this line in programDlg.cpp : ON_REGISTERED_MESSAGE(wm_Message, OnMessageTextChanged) I thought that: afx_msg LRESULT OnMessageTextChanged(WPARAM wParam, LPARAM lParam); in programDlg.h was the proper way to declare this. Any ideas on what I may be doing wrong? Thanks greg

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      briefcase wrote: Any ideas on what I may be doing wrong? Have you #included your header file in your cpp file? Have you double checked the spelling and letter case?


      [

      ](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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