Herzlich Willkommen, lieber Gast!
  Sie befinden sich hier:

  Forum » C / C++ (ANSI-Standard) » struct

Forum | Hilfe | Team | Links | Impressum | > Suche < | Mitglieder | Registrieren | Einloggen
  Quicklinks: MSDN-Online || STL || clib Reference Grundlagen || Literatur || E-Books || Zubehör || > F.A.Q. < || Downloads   

Autor Thread - Seiten: > 1 <
000
09.09.2003, 12:43 Uhr
~mimi_fifi
Gast


Hallo
hab ein problem,
habe
1) in meiner TRUNTrendAna.h mein history struct definiert
2)die header Datei TRUNTrendAna.h in meine "RUNData.h" eingebunden
3) versuche history in der "RUNData.h" zu initializieren

history *run_history ;
4) erhalte folgende Fehlermeldung

[C++ Error] TRUNForm.h(105): E2303 Type name expected

wie kann ich diesen Fehler beheben?

Danke
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
001
09.09.2003, 14:12 Uhr
Bruder Leif
dances with systems
(Operator)


Moin!

Poste doch mal ein bißchen Quellcode, so ganz ohne ist es "etwas" komplizierter, eine Antwort zu finden...

P.S. Verschoben weil klingt nach allgemeinem C++-Problem
--
Mit 40 Fieber sitzt man nicht mehr vor dem PC.
Man liegt im Bett.
Mit dem Notebook.
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
002
09.09.2003, 14:22 Uhr
~mimi_fifi
Gast


das sind die Headerdatein

DieTRUNTrendAna.h

C++:
//---------------------------------------------------------------------------

#ifndef TRUNTrendAnaH
#define TRUNTrendAnaH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>

//#include "TRUNForm.h"
#include "RUNData.h"
#include "PrgData.h"
#include "MotorData.h"
#include "MeasData.h"
#include "RunParameter.h"

class TRUNForm;
class RUN_data;
class Prg_data;
class Motor_data;
class Meas_data;
class Run_param;

//---------------------------------------------------------------------------

typedef struct
{
    float ak1;
    float bk1;
    float U;
    double MessTime;
}history;

//---------------------------------------------------------------------------


class TRUNTrendAna : public TForm
{
__published:    // IDE-managed Components
private:    // User declarations
        AnsiString   ProgDir;
        bool  trend_mode;
        bool  database;
        TDateTime TrendTime;

public:        // User declarations
        //Run_data * runData;   Run_data *theData,
        Prg_data *prgData;
        Motor_data *engData;
        Meas_data *measData;
        Run_param *run_paramData;

        __fastcall TRUNTrendAna(TComponent* Owner);
        __fastcall TRUNTrendAna(TComponent* Owner, Prg_data *theprgData, Motor_data *theengData, Meas_data *themeasData);


};
//---------------------------------------------------------------------------
extern PACKAGE TRUNTrendAna *RUNTrendAna;
//---------------------------------------------------------------------------
#endif
_________________________________________________________________die TRUNForm.h

//---------------------------------------------------------------------------

#ifndef TRUNFormH
#define TRUNFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <ComCtrls.hpp>

/*
#include "PrgData.h"
#include "RUNData.h"
#include "MotorData.h"
#include "MeasData.h" */


#include "TKurbelsternForm.h"
#include "TZeitverlaufForm.h"
#include "TRUNTrendAna.h"
#include "dir.h"
#include "MeasData.h"



#include "hardware/tk.h"
#include "hardware/tkstruct.h"
#include <SCommunicationMgr.h>
#include <Dialogs.hpp>
#include <Db.hpp>
#include <DBTables.hpp>
#include <Buttons.hpp>
#include "Stati.h"


class TZeitverlaufForm;




class Run_data;
class TFormKurbelstern;
class TFormZeitverlauf;
class TFormTrendAnalyse;
class TRunOption;
class TFormCDSOption;
class TFormCalibrate;
class TFormFortschritt;
class TViewer;
class TRepRun;
class TRUNTrendAna;
class TKurbelsternForm;

//---------------------------------------------------------------------------
class TRUNForm : public TForm
{
__published:    // IDE-managed Components
        TPanel *Panel1;
        TLabel *LAdmin;
        TBitBtn *ToolButton1;
        TBitBtn *ToolButton2;
        TBitBtn *ToolButton3;
        TPanel *PanelHead;
        TLabel *LabelCicles;
        TLabel *rpm;
        TLabel *Cycles;
        TLabel *Label1;
        TImage *Logo;
        TLabel *LabelUniformity;
        TPanel *Panel2;
        TButton *ConfirmUniformityAlarm;
        TPanel *Panel6;
        TButton *Button1;
        TPanel *Panel7;
        TPanel *Panel4;
        TLabel *LabelLimit;
        TLabel *LabelCurrent;
        TLabel *Limit;
        TLabel *Current;
        TPanel *Panel3;
        TLabel *LabelMaxValue;
        TLabel *LabelMinValue;
        TTrackBar *TrackBarUniformity;
        TPanel *Panel5;
        TShape *Shape1;
        TPanel *PanelLampen;
        TPanel *PanelStatusLoadBalance;
        TStatusBar *StatusBarRun;
        TTimer *Preview_Timer;
        TTimer *MyTimer;
        TTimer *AdmTimer;
        void __fastcall TimerAction(TObject *Sender);

private:    // User declarations
        AnsiString   ProgDir;
        Prg_data *prgData ;
        history   *run_history ;

        short msg_pending;
        TKurbelsternForm *myKurbelstern;
        TZeitverlaufForm *myZeitverlaufForm;
        TRUNTrendAna *myFormTrendAnalyse;
        Run_data *test;

public:        // User declarations
        __fastcall TRUNForm(TComponent* Owner);
        __fastcall TRUNForm(TComponent* Owner, Prg_data *theprgData) ;
        bool        stat_win_active;
        Run_data *runData;
        Motor_data *engData;
        Meas_data *measData;
        Run_param *run_paramData;
        
};
//---------------------------------------------------------------------------
extern PACKAGE TRUNForm *RUNForm;
//---------------------------------------------------------------------------
#endif


edit mike: cpp Tags

Dieser Post wurde am 09.09.2003 um 14:56 Uhr von mike editiert.
 
Profil || Private Message || Suche Download || Zitatantwort || Editieren || Löschen || IP
Seiten: > 1 <     [ C / C++ (ANSI-Standard) ]  


ThWBoard 2.73 FloSoft-Edition
© by Paul Baecher & Felix Gonschorek (www.thwboard.de)

Anpassungen des Forums
© by Flo-Soft (www.flo-soft.de)

Sie sind Besucher: