![]() |
|
#1
|
|||
|
|||
A linker errorHi all,
I added Redo to the MenuBar of a MFC application and added the corresponding variables and functions to the CMainFrame class. The added lines to the message map is like this: CPP / C++ / C Code:
After adding these lines, a linker error occured saying " error LNK2001: unresolved external symbol "public: void __thiscall CMainFrame::OnEditRedo(void)" (?OnEditRedo@CMainFrame@@QAEXXZ)". Also the added variables in the CMainFrame class are : CPP / C++ / C Code:
The implementations of the functions OnEditUndo, OnEditUpdateUndo, OnEditRedo and OnEditUpdateRedo are empty. It is like: CPP / C++ / C Code:
What can be the reason of the linker error after the additions to the message map. Thanks. Last edited by LuciWiz : 19-Feb-2006 at 06:18.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|||
|
#2
|
||||
|
||||
Re: A linker errorIs this an MFC question? Shouldn't it be in the MFC forum?
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#3
|
||||
|
||||
Re: A linker errorI am not sure, but why dont you try this:
CPP / C++ / C Code:
Regards, Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
|
#4
|
|||
|
|||
Re: A linker errorUnfortunately, It did not worked.
|
|
#5
|
|||
|
|||
Re: A linker errorSometimes VS goes crazy.
Try to compile every file in your project, know that this sounds dumb but it has always worked with all my unreasonable errors. |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 16:41 |
| Winsock error when compiling FLTK 2.0 Projects | mauriciorossi | FLTK Forum | 3 | 16-Aug-2005 11:18 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 21:30 |
| What is "Ambigious symbol" ??*( a compilation error) | small_ticket | C++ Forum | 2 | 07-Jan-2005 22:10 |
| Can enum have same name as class? | crystalattice | C++ Forum | 3 | 08-Dec-2004 17:43 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The