//---------------------------------------------------------------------------
#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include <FileCtrl.hpp>
#include <ExtCtrls.hpp>
#include <string>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TDriveComboBox *Drives;
TDirectoryListBox *dir;
TFileListBox *Files;
TLabel *txtPathFile0;
TButton *cmdBaseLine;
TButton *cmdScan;
TLabel *txtHash0;
TButton *cmdExit;
TLabel *txtHash1;
TLabel *txtPathFile1;
TPanel *panGOOD;
TPanel *panBAD;
void __fastcall cmdExitClick(TObject *Sender);
void __fastcall cmdBaseLineClick(TObject *Sender);
void __fastcall cmdScanClick(TObject *Sender);
private:
// User declarations
public: // User declarations
__fastcall TfrmMain(TComponent* Owner);
// void __fastcall GetPutFileAndHashInfo(String s0, long int s1);
// char __fastcall GetTotalTheFile();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
struct FileInfo {
String Fname;
long int Hash;
} ;
long int gFileCount;
FileInfo gFileInfo;
class support0 {
public:
virtual void PutFileAndHashInfo(String s0, long int s1);
** void support0 :: PutFileAndHashInfo(s0,s1) {
//TODO: Add your source code here
FILE *Info;
String FName ="hasinfo.ess";
Info = fopen(FName,"a");
fprintf(Info,"%s/n%i",s0,s1);
fclose(Info);
}
};
Iam getting the following error [C++ Error] main.h(60): E2303 Type name expected at the point of the ** what do I need to do ? Help any one !
#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include <FileCtrl.hpp>
#include <ExtCtrls.hpp>
#include <string>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TDriveComboBox *Drives;
TDirectoryListBox *dir;
TFileListBox *Files;
TLabel *txtPathFile0;
TButton *cmdBaseLine;
TButton *cmdScan;
TLabel *txtHash0;
TButton *cmdExit;
TLabel *txtHash1;
TLabel *txtPathFile1;
TPanel *panGOOD;
TPanel *panBAD;
void __fastcall cmdExitClick(TObject *Sender);
void __fastcall cmdBaseLineClick(TObject *Sender);
void __fastcall cmdScanClick(TObject *Sender);
private:
// User declarations
public: // User declarations
__fastcall TfrmMain(TComponent* Owner);
// void __fastcall GetPutFileAndHashInfo(String s0, long int s1);
// char __fastcall GetTotalTheFile();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
struct FileInfo {
String Fname;
long int Hash;
} ;
long int gFileCount;
FileInfo gFileInfo;
class support0 {
public:
virtual void PutFileAndHashInfo(String s0, long int s1);
** void support0 :: PutFileAndHashInfo(s0,s1) {
//TODO: Add your source code here
FILE *Info;
String FName ="hasinfo.ess";
Info = fopen(FName,"a");
fprintf(Info,"%s/n%i",s0,s1);
fclose(Info);
}
};
Iam getting the following error [C++ Error] main.h(60): E2303 Type name expected at the point of the ** what do I need to do ? Help any one !