ale na samym #include "hpdf.h" wywala :/
#include <vcl.h>
#pragma hdrstop
#include "include/hpdf.h"
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
HPDF_Doc pdf;
pdf = HPDF_New (NULL, NULL);
HPDF_Free (pdf);
}
//---------------------------------------------------------------------------
[Linker Error] Unresolved external '_HPDF_New' referenced from C:\USERS\RAFFALLO\DESKTOP\PROBA LIBHARU\UNIT1.OBJ
[Linker Error] Unresolved external '_HPDF_Free' referenced from C:\USERS\RAFFALLO\DESKTOP\PROBA LIBHARU\UNIT1.OBJ
#include "hpdf.h"
HPDF_Doc pdf;
pdf = HPDF_New (error_handler, NULL);
if (!pdf) {
printf ("ERROR: cannot create pdf object.\n");
return 1;
}
if (setjmp(env)) {
HPDF_Free (pdf);
return 1;
}
KOD cpp: UKRYJpdf = HPDF_New (NULL, NULL);
HPDF_Free (pdf);
Powrót do Ogólne problemy z programowaniem
Użytkownicy przeglądający ten dział: Brak zalogowanych użytkowników i 7 gości