If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > C++ Weird compiler error -> Use Accelerator Keys with Modal Dialog Box Main Window

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-07-04, 12:01
Indian Indian is offline
Registered User
 
Join Date: Sep 2003
Posts: 30
Angry C++ Weird compiler error -> Use Accelerator Keys with Modal Dialog Box Main Window

Hi,

i tried to add an accelerator for my application. So i can hit virtual keys for example F8 that the whole application shut down. I've encountered first a problem that is was not easily possible to do that. So i find an articel at the following website of microsoft

http://support.microsoft.com/default...;en-us;Q100770

i did exactly like it said only

point 12 iam not sure about it. Dunno where exactly to add the code line. I added it into the construktor of the main derived CWinApp class .

point 14 iam not sure about it. Dunno where exactly to add the code line. I added it into the construktor of the main derived CDialog class.

I've compiled after every point. Then iam getting the following errors after i did the following point 12


ERROR
Kasse fatal error LNK1120: 2 unresolved externals
Kasse error LNK2001: unresolved external symbol "struct HWND__ * ghDlg" (?ghDlg@@3PAUHWND__@@A)
Kasse error LNK2001: unresolved external symbol "struct HWND__ * ghDlg" (?ghDlg@@3PAUHWND__@@A)
Kasse error LNK2001: unresolved external symbol "struct HACCEL__ * ghAccelTable" (?ghAccelTable@@3PAUHACCEL__@@A)


Can anyone help me please
Indian
Reply With Quote
  #2 (permalink)  
Old 05-07-04, 14:06
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
Point #12 is referring to the file level global declarations. These are done after any #include directives, but before the first function declaration.

Point #14 refers to the function you created in step #8 and modified in step #9.

-PatP
Reply With Quote
  #3 (permalink)  
Old 05-11-04, 07:02
Indian Indian is offline
Registered User
 
Join Date: Sep 2003
Posts: 30
great thx.... point 12 was my problem


Thank you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On