teve.c
Creating library teve.lib and object teve.exp
teve.obj : error LNK2019: unresolved external symbol "int __cdecl Prt_TestPrint(
void)" (?Prt_TestPrint@@YAHXZ) referenced in function "void __cdecl HB_FUN_PRT_T
ESTPRINT(void)" (?HB_FUN_PRT_TESTPRINT@@YAXXZ)
teve.exe : fatal error LNK1120: 1 unresolved externals
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
//#include <c:\lavwin\teve\mobitron\inc\printer.h>
#include <c:\lavwin\teve\mobitron\inc\printerNET.h>
int Prt_TestPrint( void );
HB_FUNC( PRT_TESTPRINT )
{
hb_retnl( Prt_TestPrint() );
}
#pragma ENDDUMP
echo \lavwin\teve\mobitron\lib\printerNET.lib >> msvc.tmp
echo \lavwin\teve\mobitron\lib\printerAPI.lib >> msvc.tmp
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <c:\lavwin\teve\mobitron\inc\printer.h>
extern "C" {
int Prt_TestPrint( void );
}
HB_FUNC( PRT_TESTPRINT )
{
hb_retnl( Prt_TestPrint() );
}
#pragma ENDDUMP
teve.obj : error LNK2019: unresolved external symbol Prt_TestPrint referenced in
function "void __cdecl HB_FUN_PRT_TESTPRINT(void)" (?HB_FUN_PRT_TESTPRINT@@YAXX
Z)
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <c:\lavwin\teve\mobitron\inc\printer.h>
extern "C" {
int PRT_TestPrint( void );
}
HB_FUNC( PRT_TESTPRINT )
{
hb_retnl( PRT_TestPrint() );
}
#pragma ENDDUMP
Prt_TestPrint
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <c:\lavwin\teve\mobitron\inc\printer.h>
extern "C" {
int Prt_TestPrint( void );
}
HB_FUNC( PRT_TESTPRINT )
{
hb_retnl( Prt_TestPrint() );
}
#pragma ENDDUMP
teve.c
Creating library teve.lib and object teve.exp
teve.obj : error LNK2019: unresolved external symbol Prt_TestPrint referenced in
function "void __cdecl HB_FUN_PRT_TESTPRINT(void)" (?HB_FUN_PRT_TESTPRINT@@YAXX
Z)
teve.exe : fatal error LNK1120: 1 unresolved externals
class __declspec(dllexport) CPrinter
{
public:
// INT Prt_CheckCover(BOOL *blCover);
INT Prt_CheckHeadTemper(BOOL *blTemper);
INT Prt_CheckPaper(BOOL *blPaper);
INT WriteBitmap_BelowStandard(LPCTSTR bmFile);
INT Prt_BackFeed(int n);
INT getSerialProperty(DCB *lpDcb);
INT PrinterDeSelect(HANDLE prt_pHandle);
INT Prt_PortOpen();
INT Prt_PortRelease();
INT Prt_PrintBarcode(char *barData, int height, int width, int barcodeSystem, int codeHRI);
INT Prt_CheckStatus(PRT_STATUS * status);
INT Prt_TestPrint();
...
#pragma BEGINDUMP
#include "hbapi.h"
#include "Printer.h" // de los ficheros que te han enviado
HB_FUNC( PRT_TESTPRINT )
{
CPrinter * printer = new CPrinter;
printer->Prt_TestPrint();
}
#pragma ENDDUMP
#pragma BEGINDUMP
#include "hbapi.h"
#include "windows.h"
#include "c:\lavwin\teve\mobitron\inc\Printer.h"
HB_FUNC( PRT_TESTPRINT )
{
CPrinter * printer = new CPrinter;
printer->Prt_Open();
printer->Prt_TestPrint();
printer->Prt_Close();
}
#pragma ENDDUMP
***************
STATIC FUNCTION ProvaStampa()
***************
LOCAL i
FOR i := 1 TO 100
Beep_on( 200 + i * 100, 100 )
NEXT
RETURN NIL
*
** eof ProvaStampa
#pragma BEGINDUMP
#include "hbapi.h"
#include "windows.h"
#include "c:\lavwin\teve\mobitron\inc\Printer.h"
#include "c:\lavwin\teve\mobitron\inc\Beep.h"
HB_FUNC( PRT_TESTPRINT )
{
CPrinter * printer = new CPrinter;
printer->Prt_Open();
printer->Prt_TestPrint();
//printer->Prt_Close();
}
HB_FUNC( BEEP_ON )
{
CBeep * Beep = new CBeep;
Beep->Beep_On( hb_parni(1), hb_parni(2));
}
#pragma ENDDUMP
Return to FiveWin para Pocket PC
Users browsing this forum: No registered users and 8 guests