coiote Posted January 14, 2010 Report Share Posted January 14, 2010 Olá Amigos. Para resolver o seguinte erro no Harbour + Fivewin: Unresolved external '_HB_FUN_BWCCREGISTER' referenced from CUPOM.OBJ Foi só acrescentar no final do PRG a seguinte linha: DLL32 FUNCTION BWCCRegister( hInst AS LONG ) AS WORD PASCAL LIB "BWCC32.DLL" E para estes outros unresolved external? _HB_FUN_LOADLIBRARY _HB_FUN_GETRESOURCES _HB_FUN_STEHANDLECOUNT _HB_FUN_FREELIBRARY _HB_FUN_TSAY _HB_FUN_GETPROCADRESS _HB_FUN_CALLDLL _HB_FUN_MSGALERT Quote Link to comment Share on other sites More sharing options...
coiote Posted January 14, 2010 Author Report Share Posted January 14, 2010 Olá Amigos. Para resolver o seguinte erro no Harbour + Fivewin: Unresolved external '_HB_FUN_BWCCREGISTER' referenced from CUPOM.OBJ Foi só acrescentar no final do PRG a seguinte linha: DLL32 FUNCTION BWCCRegister( hInst AS LONG ) AS WORD PASCAL LIB "BWCC32.DLL" E para estes outros unresolved external? _HB_FUN_LOADLIBRARY _HB_FUN_GETRESOURCES _HB_FUN_STEHANDLECOUNT _HB_FUN_FREELIBRARY _HB_FUN_TSAY _HB_FUN_GETPROCADRESS _HB_FUN_CALLDLL _HB_FUN_MSGALERT Quote Link to comment Share on other sites More sharing options...
Luiz Arruda (ICO) Posted January 14, 2010 Report Share Posted January 14, 2010 Tente assim ; No inicio da Window Principal hBorland:= LoadLibrary("BWCC32.DLL") BWCCRegister( GetResources() ) id=code>id=code>Lá no Final da Window Principal DLL32 FUNCTION BWCCRegister( hInst AS LONG ) AS WORD PASCAL LIB "BWCC32.DLL"id=code>id=code>Ai vai depender tb. de quais DLL vc. tá usando em seu sistema Isso ai é o Basico. eu mesmo tenho um programa que nem isso ai eu uso mais. Outra Coisa, atualize seu Perfil, fica beemmmmm mais fácil de responder, tipo assim só de ver quais ferramentas vc. usa as vezes a resposta já mata de primeira, exemplo se estas dicas ai não funcionarem, vc. vai ter que dizer o que vc. tá usando, depois vão pedir uma parte do código etc...etc...etc... é por isso que o perfil atualizado ajuda bastante quem vai responder.. Abraços.. Luiz Arruda - Corumba(MS) FiveWin 904 [x]Harbour xDev WS ico.corumba@gmail.com - NÃO ABANDONE SEU TÓPICOid=blue> Quote Link to comment Share on other sites More sharing options...
coiote Posted January 14, 2010 Author Report Share Posted January 14, 2010 Isto eu já fiz. Agora faltam mais algumas declarações do tipo DLL32 FUNCTION. Uso Harbour 2.0.0 mas os mesmos unresolved external aontecem com o Harbour 1.0. Meu Fivewin é o 6.12 mas não estou usando as funções gráficas. Para imprimir o cupom fiscal uso a Daruma32.dll Veja o programa: #include "\Harbour\FWH\Include\FiveWin.ch" #include "\Harbour\FWH\Include\Dll.ch" Procedure Main() public Int_Retorno hBor := LoadLibrary( "bwcc32.dll" ) BWCCRegister( GetResources( ) ) SetHandleCount( 200 ) m->Int_Retorno := Daruma_FI_LeituraX() FreeLibrary( hBor ) // Release borland Return DLL32 FUNCTION Daruma_FI_LeituraX( ) AS LONG PASCAL FROM "Daruma_FI_LeituraX" LIB 'Daruma32.dll' DLL32 FUNCTION BWCCRegister( hInst AS LONG ) AS WORD PASCAL LIB "BWCC32.DLL" *Faltam algumas linhas como estas 2 últimas. Vc pode me dizer quais? Quote Link to comment Share on other sites More sharing options...
coiote Posted January 15, 2010 Author Report Share Posted January 15, 2010 Já descobri que estes "unresolved external" são causados por chamadas às seguintes funções dentro do arquivo Dll.ch: LOADLIBRARY() GETRESOURCES() SETHANDLECOUNT() FREELIBRARY() TSAY() Esta não está nem em Fivewin.ch e nem em Dll.ch GETPROCADRESS() CALLDLL() Imagino que falta incluir alguma lib para que estas funções sejam reconhecidas pelo Borland Turbo Incremental Link 5.0 Se for isso mesmo que LIB é esta? Já tentei com o Harbour 1.0 e 2.0 usando Build.bat e Fivewin 6.12 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.