Article View: comp.os.ms-windows.programmer.misc
Article #2156TButton compiler errors... HELP!
From: 25651-say
Date: Fri, 20 Nov 1992 04:27
Date: Fri, 20 Nov 1992 04:27
51 lines
2280 bytes
2280 bytes
Help!
I have just recently started programming Windows using OWL with
Borland C++ 3.1. I am trying to test out the TButton class for
use in a program of mine but keep running into a compiler error that
I am not sure of why I am getting it.
Below is a header file that keeps giving me the error:
----------------------------------------------------------------------
#ifndef TCALCWIN_H
#define TCALCWIN_H
#include <owl.h>
#include <button.h>
#define ID_BUTTON1 102;
// Define the applications main window object TCalcWindow.
_CLASSDEF(TCalcWindow)
class TCalcWindow : public TWindow
{
private:
TButton* PushButton;
public:
TCalcWindow(PTWindowsObject AParent, LPSTR ATitle);
LPSTR GetClassName(void);
void GetWindowClass(WNDCLASS& AWndClass);
virtual void HandleButtonPush(RTMessage Msg) = [ID_FIRST + ID_BUTTON1];
};
#endif
----------------------------------------------------------------------
I am getting the following two compiler errors on the HandleButtonPush
definition:
Error TCALCWIN.H 21: DDVT id missing ]
Error TCALCWIN.H 21: Declaration terminated incorrectly
Anyone know what is wrong?? I am going through the ObjectWindows Book and
on pages 76-79 shows the same type of thing I am attempting to do. I have
looked at the source code for Step10 and have even cut and pasted the
class into my code with no luck. So if anyone can inform me of what I
am doing wrong I would appreciate it.
Thanks,
Andy
*******************************************************************************
* Andy Say | E-mail: andys@seas.bellcore.com *
* Bell Communications Research | I do not speak for Bellcore. *
*******************************************************************************
Technical Details
Message-ID:
<1992Nov20.042742.24952@porthos.cc.bellcore.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!walter!porthos!rruxc!andysShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!walter!porthos!rruxc!andys From: andys@rruxc.uucp (25651-say) Subject: TButton compiler errors... HELP! Organization: Bellcore, Livingston, NJ Date: Fri, 20 Nov 92 04:27:42 GMT Message-ID: <1992Nov20.042742.24952@porthos.cc.bellcore.com> Followup-To: poster Keywords: OWL TButton Sender: netnews@porthos.cc.bellcore.com (USENET System Software) Lines: 51