Jump to content
Fivewin Brasil

Busca Preço Gertec


Recommended Posts

Ola amigos, alguem tem as declarações de funções da Dll SC501GER do terminal de consulta de preço Busca Preço da Gertec? Estou disposto a pagar se for o caso.

Ja tentei e não deu certo:

Manual Gertec:

1. Inicializações da DLL.

vInitialize

Primeira rotina que deve ser chamada para inicializar a DLL.

procedure vInitialize; stdcall;

tc_startserver

Rotina que faz com que o servidor espere por conexões de terminais.

procedure tc_startserver; stdcall;

- Retorna 1 se o Servidor foi inicializado com sucesso.

- Retorna 0 se houve erro.

Tentei:

DLL32 FUNCTION vInitialize() AS _INT PASCAL LIB xDll

DLL32 FUNCTION tC_StartServer() AS _INT PASCAL LIB xDll

Tentei também:

DLL32 FUNCTION vInitialize() AS LONG PASCAL LIB xDll

DLL32 FUNCTION tC_StartServer() AS LONG PASCAL LIB xDll

Desde já agradeço

Link to comment
Share on other sites

Ola amigos, alguem tem as declarações de funções da Dll SC501GER do terminal de consulta de preço Busca Preço da Gertec? Estou disposto a pagar se for o caso.

Ja tentei e não deu certo:

Manual Gertec:

1. Inicializações da DLL.

vInitialize

Primeira rotina que deve ser chamada para inicializar a DLL.

procedure vInitialize; stdcall;

tc_startserver

Rotina que faz com que o servidor espere por conexões de terminais.

procedure tc_startserver; stdcall;

- Retorna 1 se o Servidor foi inicializado com sucesso.

- Retorna 0 se houve erro.

Tentei:

DLL32 FUNCTION vInitialize() AS _INT PASCAL LIB xDll

DLL32 FUNCTION tC_StartServer() AS _INT PASCAL LIB xDll

Tentei também:

DLL32 FUNCTION vInitialize() AS LONG PASCAL LIB xDll

DLL32 FUNCTION tC_StartServer() AS LONG PASCAL LIB xDll

Desde já agradeço

Link to comment
Share on other sites

Ok Gilmer, eu tenho um programa seu que controla aqueles teclados gertec, muito bom por sinal, basicamente você já tem tudo lá é só trocar as funções da dll dos teclados pela dll do busca preço. Se você fizer isso me interessa comprar tambem este programa e acredito que outros programadores irão querer tambem.

Edvaldo

Link to comment
Share on other sites

Ola amigo, faco assim:

FUNCTION BUSPRE

M_CODREF=SPACE(05)

M_DESCREF = SPACE(35)

TABREF(.F.)

SET CURSOR ON

if MsgYesNo( "Deseja Transferir dados para o BUSCA PRECO ? ")

MID001(.T.)

ZAP

SELE TABREF

GO TOP

DO WHILE .NOT. EOF()

IF EMPTY(CODBAR)

SKIP

LOOP

ENDI

SELE MID001

APPEND BLANK

REPLACE CP01 WITH TABREF->CODBAR

REPLACE CP02 WITH "|"

REPLACE CP03 WITH TABREF->DESCREF

REPLACE CP04 WITH "|"

REPLACE CP05 WITH STR(TABREF->PVENREF,9,2)

REPLACE CP06 WITH "|"

REPLACE CP07 WITH RTRIM(TABREF->CODBAR)+CP02+CP03+CP04+CP05+CP06

SELE TABREF

SKIP

ENDDO

SELE MID001

CLOSE DATA

MID001(.T.)

M_ARQ="C:\ARQUIV~1\SC501TXT\PRICETAB"

COPY FIELDS CP07 TO &M_ARQ SDF

ENDI

CLOSE DATA

MSGALERT("ARQUIVO BUSCA PRECO GERADO COM SUCESSO!")

RETURN .T.

fwh 9.03+xharbour,bcc55,xdev

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...