Solved

LINKAGE ERROR ON ADDING BUTTON IN MENU OF MDI APPLICATION

Posted on 2003-11-19
2
227 Views
Last Modified: 2013-11-20
HI
      I AM ADDING ONE BUTTON ON MENU OPTION .

AS A EXAMPLE ABC AND GIVING ID AS 32784.
IN CHILDFRAME.CPP  FILE I AM ADDING ON_COMMAND(32784, OnABC)
AND IN CHILDFRAME.H I AM ADDING afx_msg void OnABC();

ON COMPILING THIS PROGRAM I AM GETTING FOLLOWING ONE LINKAGE ERROR

 error LNK2001: unresolved external symbol "protected: void __thiscall CChildFrame::OnABC(void)" (?OnABC@CChildFrame@@IAEXXZ)

fatal error LNK1120: 1 unresolved externals.

WHAT IS RESIGON OF THIS ERROR HOW CAN I RESOLVE IT. OR WE CAN NOT WRTE  THESE COMMAND IN CHILDFRAME CLASSES.

THANKS
MANNU


0
Comment
Question by:manoj_sharma1911
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 50 total points
ID: 9777920
Write implementation for this function in cpp file:

void CChildFrame::OnABC(void)
{
    // ...
}

The line
ON_COMMAND(32784, OnABC)

is not implementation, this is call to OnABC function.
0
 

Author Comment

by:manoj_sharma1911
ID: 9778942
Hi Alex you are right. Thanks for youe comments .
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
difference between String.subString() and String.subSequence() 6 289
has77  challenge 9 104
Execute multiple curl cmds with sleep and send output to file 10 121
firstChar challenge 13 148
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question