Bonjour :
j'ai un problème de compilation d'un fichier.CPP sur BorlandC++ Builder3
en fait ce programme a été compilé avec BorlandC++ 4.0 j'ai essayé de mettre toutes les biblithèque de Borland 4.0 sur Builder 3 ça donne rien
merci si vous avez une idée sur ce problème aidez moi svp voici le fichier <noyau.cpp>
/************************************************************
#include <stdio.h>
#include <owl\applicat.h>
#include <owl\framewin.h>
#include <owl\dc.h>
#include <owl\button.h>
#include "windapio.h"
#include "cdload.h" // c'est un fichier de la carte
DAP 840
#include "struct.h"
#include "define.h"
#define NumberPoints 6 // Define the number of points*
#define Id_GO 104
char archive[13];
char resultat[13];
/* applicat.h, framewin.h, dc.h et button.h n'existent pas dans Builder3 est ce qu'on peut remplacer ces fichiers par autres fichiers qui sont disponible sur Builder3 ? */
/******************************************************************************/
// Derive a new window class for the main window
/******************************************************************************/
class TDAPWindow : public TFrameWindow
{
};
DEFINE_RESPONSE_TABLE1(TDAPWindow, TFrameWindow)
EV_COMMAND(Id_GO, Trt_GO),
END_RESPONSE_TABLE;
//*****************************************************************************/
// Traitement du bouton GO
//*****************************************************************************/
void TDAPWindow::Trt_GO()
{
GO->Show(SW_HIDE);
Programme_principale();
}
/******************************************************************************/
// The window constructor starts data acquisition
/******************************************************************************/
TDAPWindow::TDAPWindow(): TFrameWindow(NULL, "DAP Acquisition")
{
GO = new TButton(this, Id_GO, "GO", 20,30,80,30);
}
/******************************************************************************/
// The window destructor terminates
DAP communication
/******************************************************************************/
TDAPWindow::~TDAPWindow()
{
delete GO;
}
// Derive a new application class that uses the new window class
class TDAPApp : public TApplication
{
public:
TDAPApp(): TApplication("DAP Graph Application") {};
protected:
virtual void InitMainWindow()
{
MainWindow = new TDAPWindow();
MainWindow->Attr.Style = WS_OVERLAPPED|WS_SYSMENU|WS_CAPTION|WS_BORDER;
MainWindow->EnableKBHandler();
nCmdShow = SW_SHOWMAXIMIZED;
};
};
int OwlMain (int , char *argv[])
{
wsprintf (archive, "%s",argv[1]); wsprintf (resultat, "%s",argv[2]);
TDAPApp App;
if(App.hPrevInstance) return 0;
else
return App.Run();
}