Solved

LINKAGE ERROR ON ADDING BUTTON IN MENU OF MDI APPLICATION

Posted on 2003-11-19
2
223 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
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 47
maxBlock challenge 30 100
pre4 challenge 19 88
Fibonacci challenge 11 84
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now