Hello, hello...
can somebody please help me...
I am having this problem with my source code[Linker Error] Unresolved external 'ProductList::Print(Stdctrls::TMemo *)' referenced from C:\DOCUMENTS AND SETTINGS\DOCUMENTS\DESKTOP\FOLDER\UNIT1.OBJ.
Source code is going to be devided in three parts because of its length?
PART1
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include"Product.h"
#include"ProductList.h"
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TButton *Button1;
TOpenDialog *OpenDialog1;
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TLabel *Label4;
TLabel *Label5;
TMemo *Memo1;
void __fastcall Button1Click(TObject *Sender);
private: // User declarations
ProductList *theProduct;
public: // User declarations
__fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
//---------------------------------------------------------------------------
#include <stdio.h>
#include <vcl.h>
#pragma hdrstop
#include<fstream.h>
#include "Unit1.h"
#include "Product.h"
#include"ProductList.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
using namespace std;
TMainForm *MainForm;
//---------------------------------------------------------------------------
__fastcall TMainForm::TMainForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TMainForm::Button1Click(TObject *Sender)
{/* char buff[80];
ifstream infile("unit.txt");
if(infile.is_open())
{
while(!infile.eof())
{
infile.getline(buff,sizeof(buff));
Memo1->Lines->Add(buff);
Label1->Caption = buff;
}
}*/
theProduct->Print(Memo1);
}
//---------------------------------------------------------------------------
Thank you in Advance
Bujar METAJ