Hola Colegas
Este es el codigo :
#include "FWCE.ch"
function Main()
* begin
local oWnd
DEFINE WINDOW oWnd TITLE "Active Scan"
@ 2, 2 BUTTON "Scan_Open" ACTION SCAN_OPEN() SIZE 80, 20
ACTIVATE WINDOW oWnd
return nil
* Funciones que no corren en Symbol MC3000
function cesetmenu() ; return nil
function getmenu() ; return nil
function readbitmap() ; return nil
function palbmpread() ; return nil
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <ScanCAPI.h>
HANDLE hScanner = NULL;
TCHAR szScannerName[MAX_PATH] = L"SCN1:";
HB_FUNC( SCAN_OPEN )
{
DWORD dwResult = SCAN_Open( szScannerName, &hScanner );
if ( dwResult != E_SCN_SUCCESS )
MessageBox( GetActiveWindow(), L"Fallo en Scan_Open", L"Ok", 0 );
}
#pragma ENDDUMP
Y este es el mensaje :
bitest1.c
Creating library jobitest1.lib and object jobitest1.exp
bitest1.obj : error LNK2019: unresolved external symbol SCAN_Open referenced i
function "void __cdecl HB_FUN_SCAN_OPEN(void)" (?HB_FUN_SCAN_OPEN@@YAXXZ)
bitest1.exe : fatal error LNK1120: 1 unresolved externals
Espero no importunar mucho.
Saludos
Osvaldo Ramirez