Página 1 de 2

Migrando do Harbourminigui para Xharbour

Enviado: 08 Jun 2010 09:49
por Samuk.exe
eu tenho um programa rodando perfeitamento em minigui.
Por conta das vantagens decidi mudar para o xharbou.
Depois de instalar tudo tentei compilar meu velho programa e deu alguns erros.
Conto agora com a ajuda dos amigos do forum para me ajudar a mostrar no que eu vou ter que mudar para compilar meu programa em Xharbour, pois sei que minigui é diferente.
Erro: De cara apareceu o primeiro erro...

Código: Selecionar todos

Harbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'OVER.PRG'...

OVER.PRG(1) Error F0029  Can't open #include file: 'minigui.ch'
Parece claro que no xHarbour não aceita essa linha , enta eu tirei...
Dai veio os outros erros....

Código: Selecionar todos

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'OVER.PRG'...

OVER.PRG(8) Error E0030  Syntax error: "syntax error at 'NAVIGATION'"

OVER.PRG(10) Error E0030  Syntax error: "syntax error at 'LANGUAGE'"

OVER.PRG(35) Error E0030  Syntax error: "syntax error at 'WINDOW'"

OVER.PRG(42) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(43) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(44) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(51) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(55) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(59) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(63) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(67) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(71) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(75) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(79) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(89) Error E0030  Syntax error: "syntax error at 'MAIN'"

OVER.PRG(90) Error E0030  Syntax error: "syntax error at 'POPUP'"

OVER.PRG(91) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(92) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(94) Error E0030  Syntax error: "syntax error at 'POPUP'"

OVER.PRG(95) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(96) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(97) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(98) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(99) Error E0030  Syntax error: "syntax error at 'ITEM'"

100

OVER.PRG(100) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(102) Error E0030  Syntax error: "syntax error at 'POPUP'"

OVER.PRG(103) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(104) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(105) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(106) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(107) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(108) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(110) Error E0030  Syntax error: "syntax error at 'POPUP'"

OVER.PRG(111) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(112) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(113) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(114) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(115) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(116) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(118) Error E0030  Syntax error: "syntax error at 'POPUP'"

OVER.PRG(119) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(120) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(121) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(122) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(123) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(124) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(125) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(126) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(128) Error E0030  Syntax error: "syntax error at 'POPUP'"

OVER.PRG(129) Error E0030  Syntax error: "syntax error at 'ITEM'"

OVER.PRG(130) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(131) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(137) Error E0030  Syntax error: "syntax error at 'STATUSBAR'"

OVER.PRG(138) Error E0030  Syntax error: "syntax error at 'STATUSITEM'"

OVER.PRG(139) Error E0030  Syntax error: "syntax error at 'STATUSITEM'"

OVER.PRG(140) Error E0030  Syntax error: "syntax error at 'STATUSITEM'"

OVER.PRG(141) Error E0030  Syntax error: "syntax error at 'STATUSITEM'"

OVER.PRG(142) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(143) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(144) Error E0030  Syntax error: "syntax error at 'STATUSITEM'"

OVER.PRG(145) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(150) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(156) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(157) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(158) Error E0030  Syntax error: "syntax error at 'VISIBLE'"

OVER.PRG(166) Error E0030  Syntax error: "syntax error at 'WINDOW'"

200

OVER.PRG(216) Error E0030  Syntax error: "syntax error at 'WINDOW'"

OVER.PRG(217) Error E0030  Syntax error: "syntax error at 'KEY'"

OVER.PRG(219) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(220) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(222) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(223) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(225) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(226) Error E0030  Syntax error: "syntax error at '@'"

OVER.PRG(227) Error E0030  Syntax error: "syntax error at 'END'"

OVER.PRG(228) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(229) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(235) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(236) Error E0020  Incomplete statement or unbalanced delimiters

OVER.PRG(254) Error E0022  Invalid lvalue: '()'

80 errors

No code generated
Se alguem puder me dar alguma luz...

Obrigado

Re: Migrando do Harbourminigui para Xharbour

Enviado: 08 Jun 2010 12:19
por Toledo
Amigo, volte os seu PRG como estava, pois o problema não está ai. O que você precisa fazer é recompilar a lib da MiniGui com o xHarbour.

Segue em anexo um exemplo de um BAT para compilar a MiniGui com o xHarbour.

Abraços,

Re: Migrando do Harbourminigui para Xharbour

Enviado: 08 Jun 2010 14:12
por Samuk.exe
Obrigado Toledo Pelo esclarecimento...
Esse bat tem que ser executado de alguma pasta especifica?
Rodei ele e não achou nada...

Código: Selecionar todos

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
Cannot open input file: h_browse.prg
O sistema não pode encontrar o caminho especificado.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2194: Could not find file 'c_winxp.c'
Error E2194: Could not find file 'c_editbox.c'
Error E2194: Could not find file 'c_dialogs.c'
Error E2194: Could not find file 'c_grid.c'
Error E2194: Could not find file 'c_windows.c'
Error E2194: Could not find file 'c_windowsmdi.c'
Error E2194: Could not find file 'c_image.c'
Error E2194: Could not find file 'c_label.c'
Error E2194: Could not find file 'c_listbox.c'
Error E2194: Could not find file 'c_menu.c'
Error E2194: Could not find file 'c_msgbox.c'
Error E2194: Could not find file 'c_frame.c'
Error E2194: Could not find file 'c_progressbar.c'
Error E2194: Could not find file 'c_radio.c'
Error E2194: Could not find file 'c_registry.c'
Error E2194: Could not find file 'c_slider.c'
Error E2194: Could not find file 'c_spinner.c'
Error E2194: Could not find file 'c_tab.c'
Error E2194: Could not find file 'c_textbox.c'
Error E2194: Could not find file 'c_timer.c'
Error E2194: Could not find file 'c_winapimisc.c'
Error E2194: Could not find file 'h_button.c'
Error E2194: Could not find file 'h_checkbox.c'
Error E2194: Could not find file 'h_combo.c'
Error E2194: Could not find file 'h_controlmisc.c'
Error E2194: Could not find file 'h_datepicker.c'
Error E2194: Could not find file 'h_editbox.c'
Error E2194: Could not find file 'h_dialogs.c'
Error E2194: Could not find file 'h_grid.c'
Error E2194: Could not find file 'h_windows.c'
Error E2194: Could not find file 'h_windowsmdi.c'
Error E2194: Could not find file 'h_image.c'
Error E2194: Could not find file 'h_label.c'
Error E2194: Could not find file 'h_listbox.c'
Error E2194: Could not find file 'h_menu.c'
Error E2194: Could not find file 'h_msgbox.c'
Error E2194: Could not find file 'h_frame.c'
Error E2194: Could not find file 'h_progressbar.c'
Error E2194: Could not find file 'h_radio.c'
Error E2194: Could not find file 'h_spinner.c'
Error E2194: Could not find file 'h_tab.c'
Error E2194: Could not find file 'h_textbox.c'
Error E2194: Could not find file 'h_timer.c'
Error E2194: Could not find file 'c_scrsaver.c'
Error E2194: Could not find file 'h_hotkey.c'
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2194: Could not find file 'c_hotkey.c'
Error E2194: Could not find file 'h_graph.c'
Error E2194: Could not find file 'c_graph.c'
Error E2194: Could not find file 'h_browse.c'
Error E2194: Could not find file 'c_browse.c'
Error E2194: Could not find file 'h_socket.c'
Error E2194: Could not find file 'h_dialog.c'
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
Warning: 'h_scrsaver.obj' file not found
Warning: 'h_edit.obj' file not found
Warning: 'h_edit_ex.obj' file not found
Warning: 'h_error.obj' file not found
Warning: 'h_ipaddress.obj' file not found
Warning: 'c_ipaddress.obj' file not found
Warning: 'h_monthcal.obj' file not found
Warning: 'c_monthcal.obj' file not found
Warning: 'h_help.obj' file not found
Warning: 'c_help.obj' file not found
Warning: 'h_status.obj' file not found
Warning: 'c_status.obj' file not found
Warning: 'h_tree.obj' file not found
Warning: 'c_tree.obj' file not found
Warning: 'h_toolbar.obj' file not found
Warning: 'c_toolbar.obj' file not found
Warning: 'errorsys.obj' file not found
Warning: 'h_init.obj' file not found
Warning: 'h_media.obj' file not found
Warning: 'c_media.obj' file not found
Warning: 'c_resource.obj' file not found
Warning: 'h_cursor.obj' file not found
Warning: 'c_cursor.obj' file not found
Warning: 'h_ini.obj' file not found
Warning: 'c_ini.obj' file not found
Warning: 'h_report.obj' file not found
Warning: 'h_font.obj' file not found
Warning: 'c_font.obj' file not found
Warning: 'c_hyperlink.obj' file not found
Warning: 'h_hyperlink.obj' file not found
Warning: 'c_scrsaver.obj' file not found
Warning: 'h_hotkey.obj' file not found
Warning: 'c_hotkey.obj' file not found
Warning: 'h_graph.obj' file not found
Warning: 'c_graph.obj' file not found
Warning: 'h_richeditbox.obj' file not found
Warning: 'c_richeditbox.obj' file not found
Warning: 'h_browse.obj' file not found
Warning: 'c_browse.obj' file not found
Warning: 'h_socket.obj' file not found
Warning: 'c_bitmap.obj' file not found
Warning: 'c_imagelist.obj' file not found
Warning: 'h_imagelist.obj' file not found
Warning: 'c_winxp.obj' file not found
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
Warning: 'c_crypt.obj' file not found
Warning: 'h_crypt.obj' file not found
Warning: 'h_winapimisc.obj' file not found
Warning: 'h_slider.obj' file not found
Warning: 'c_button.obj' file not found
Warning: 'c_checkbox.obj' file not found
Warning: 'c_combo.obj' file not found
Warning: 'c_controlmisc.obj' file not found
Warning: 'c_datepicker.obj' file not found
Warning: 'c_editbox.obj' file not found
Warning: 'c_dialogs.obj' file not found
Warning: 'c_grid.obj' file not found
Warning: 'c_windows.obj' file not found
Warning: 'c_windowsmdi.obj' file not found
Warning: 'c_image.obj' file not found
Warning: 'c_label.obj' file not found
Warning: 'c_listbox.obj' file not found
Warning: 'c_menu.obj' file not found
Warning: 'c_msgbox.obj' file not found
Warning: 'c_frame.obj' file not found
Warning: 'c_progressbar.obj' file not found
Warning: 'c_radio.obj' file not found
Warning: 'c_registry.obj' file not found
Warning: 'c_slider.obj' file not found
Warning: 'c_spinner.obj' file not found
Warning: 'c_tab.obj' file not found
Warning: 'c_textbox.obj' file not found
Warning: 'c_timer.obj' file not found
Warning: 'c_dialog.obj' file not found
Warning: 'c_winapimisc.OBJ' file not found
Warning: 'h_button.obj' file not found
Warning: 'h_checkbox.obj' file not found
Warning: 'h_combo.obj' file not found
Warning: 'h_controlmisc.obj' file not found
Warning: 'h_datepicker.obj' file not found
Warning: 'h_editbox.obj' file not found
Warning: 'h_dialogs.obj' file not found
Warning: 'h_grid.obj' file not found
Warning: 'h_windows.obj' file not found
Warning: 'h_windowsmdi.obj' file not found
Warning: 'h_image.obj' file not found
Warning: 'h_label.obj' file not found
Warning: 'h_listbox.obj' file not found
Warning: 'h_menu.obj' file not found
Warning: 'h_msgbox.obj' file not found
Warning: 'h_frame.obj' file not found
Warning: 'h_progressbar.obj' file not found
Warning: 'h_radio.obj' file not found
Warning: 'h_spinner.obj' file not found
Warning: 'h_tab.obj' file not found
Warning: 'h_textbox.obj' file not found
Warning: 'h_timer.obj' file not found
Warning: 'h_registry.obj' file not found
Warning: 'h_dialog.obj' file not found
Não foi possível encontrar C:\DOCUME~1\USUARIO\Desktop\*.obj
Não foi possível encontrar C:\DOCUME~1\USUARIO\Desktop\h_*.c
Não foi possível encontrar C:\DOCUME~1\USUARIO\Desktop\errorsys.c
Detalhe o caminho meu ta igual...
c:\bcc55
C:\minigui
c:\xharbour...

O que estou fazendo de errado?

Re: Migrando do Harbourminigui para Xharbour

Enviado: 08 Jun 2010 14:53
por Toledo
Amigo, este BAT você tem que copiar e executar ele dentro da pasta \MINIGUI\SOURCE.

Atenção: este BAT vai criar a LIB da MiniGui novamente, então se você quer preservar a LIB da MiniGui (Harbour) já existente, faça uma cópia da mesma antes de executar o arquivo BAT.

Abraços,

Re: Migrando do Harbourminigui para Xharbour

Enviado: 08 Jun 2010 15:31
por Samuk.exe
pronto executei de c:\minigui\source...

Código: Selecionar todos

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'h_browse.prg'...
c:\xharbour\include\minigui.ch(103) Error F0029  Can't open #include file: 'i_pr
int.ch'
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2194: Could not find file 'h_scrsaver.c'
Error E2194: Could not find file 'h_edit.c'
Error E2194: Could not find file 'h_edit_ex.c'
Error E2194: Could not find file 'h_error.c'
Error E2194: Could not find file 'h_ipaddress.c'
c_ipaddress.c:
Error E2194: Could not find file 'h_monthcal.c'
c_monthcal.c:
Warning W8075 c_monthcal.c 133: Suspicious pointer conversion in function HB_FUN
_INITMONTHCAL
Error E2194: Could not find file 'h_help.c'
c_help.c:
Error E2194: Could not find file 'h_crypt.c'
c_crypt.c:
Warning W8075 c_crypt.c 60: Suspicious pointer conversion in function HB_FUN_CHA
RXOR
Warning W8075 c_crypt.c 61: Suspicious pointer conversion in function HB_FUN_CHA
RXOR
Error E2194: Could not find file 'h_status.c'
c_status.c:
Error E2194: Could not find file 'h_tree.c'
c_tree.c:
Warning W8075 c_tree.c 213: Suspicious pointer conversion in function HB_FUN_ADD
TREEITEM
c_toolbar.c:
Error E2194: Could not find file 'h_toolbar.c'
Error E2194: Could not find file 'errorsys.c'
Error E2194: Could not find file 'h_init.c'
Error E2194: Could not find file 'h_media.c'
c_media.c:
Error E2194: Could not find file 'h_winapimisc.c'
Error E2194: Could not find file 'h_slider.c'
c_button.c:
c_checkbox.c:
c_combo.c:
Warning W8075 c_combo.c 111: Suspicious pointer conversion in function HB_FUN_CO
MBOADDSTRING
Warning W8075 c_combo.c 117: Suspicious pointer conversion in function HB_FUN_CO
MBOINSERTSTRING
c_controlmisc.c:
Warning W8075 c_controlmisc.c 117: Suspicious pointer conversion in function HB_
FUN_SETTOOLTIP
c_datepicker.c:
c_resource.c:
Error E2194: Could not find file 'h_cursor.c'
c_cursor.c:
c_ini.c:
Warning W8075 c_ini.c 51: Suspicious pointer conversion in function HB_FUN_GETPR
IVATEPROFILESTRING
Warning W8075 c_ini.c 52: Suspicious pointer conversion in function HB_FUN_GETPR
IVATEPROFILESTRING
Warning W8075 c_ini.c 53: Suspicious pointer conversion in function HB_FUN_GETPR
IVATEPROFILESTRING
Warning W8075 c_ini.c 54: Suspicious pointer conversion in function HB_FUN_GETPR
IVATEPROFILESTRING
Warning W8075 c_ini.c 64: Suspicious pointer conversion in function HB_FUN_WRITE
PRIVATEPROFILESTRING
Warning W8075 c_ini.c 65: Suspicious pointer conversion in function HB_FUN_WRITE
PRIVATEPROFILESTRING
Warning W8075 c_ini.c 66: Suspicious pointer conversion in function HB_FUN_WRITE
PRIVATEPROFILESTRING
Warning W8075 c_ini.c 67: Suspicious pointer conversion in function HB_FUN_WRITE
PRIVATEPROFILESTRING
Error E2194: Could not find file 'h_ini.c'
Error E2194: Could not find file 'h_report.c'
Error E2194: Could not find file 'h_registry.c'
Error E2194: Could not find file 'h_font.c'
c_font.c:
Warning W8075 c_font.c 116: Suspicious pointer conversion in function HB_FUN__SE
TFONT
Warning W8075 c_font.c 148: Suspicious pointer conversion in function HB_FUN_SET
FONTNAMESIZE
Error E2194: Could not find file 'h_hyperlink.c'
c_hyperlink.c:
Error E2194: Could not find file 'h_richeditbox.c'
c_richeditbox.c:
c_bitmap.c:
c_dialog.c:
c_imagelist.c:
Error E2194: Could not find file 'h_imagelist.c'
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
c_winxp.c:
c_editbox.c:
c_dialogs.c:
c_grid.c:
Warning W8075 c_grid.c 393: Suspicious pointer conversion in function HB_FUN_SET
GRIDCOLOMNHEADER
c_windows.c:
Error E2451 c_windows.c 86: Undefined symbol 'hb_stackST' in function WndProc
Warning W8075 c_windows.c 973: Suspicious pointer conversion in function HB_FUN_
ADDSPLITBOXITEM
*** 1 errors in Compile ***
c_windowsMDI.c:
c_image.c:
Warning W8075 c_image.c 99: Suspicious pointer conversion in function HB_FUN_INI
TIMAGE
Warning W8075 c_image.c 116: Suspicious pointer conversion in function HB_FUN_C_
SETPICTURE
c_label.c:
c_listbox.c:
Warning W8075 c_listbox.c 97: Suspicious pointer conversion in function HB_FUN_L
ISTBOXADDSTRING
Warning W8075 c_listbox.c 112: Suspicious pointer conversion in function HB_FUN_
LISTBOXINSERTSTRING
c_menu.c:
c_msgbox.c:
c_frame.c:
c_progressbar.c:
c_radio.c:
c_registry.c:
c_slider.c:
c_spinner.c:
c_tab.c:
Warning W8075 c_tab.c 150: Suspicious pointer conversion in function HB_FUN_TABC
TRL_INSERTITEM
Warning W8075 c_tab.c 175: Suspicious pointer conversion in function HB_FUN_SETT
ABCAPTION
c_textbox.c:
c_timer.c:
c_winapimisc.c:
Warning W8075 c_winapimisc.c 101: Suspicious pointer conversion in function HB_F
UN_WAITRUNPIPE
Warning W8075 c_winapimisc.c 366: Suspicious pointer conversion in function HB_F
UN_WAITRUN
Error E2194: Could not find file 'h_button.c'
Error E2194: Could not find file 'h_checkbox.c'
Error E2194: Could not find file 'h_combo.c'
Error E2194: Could not find file 'h_controlmisc.c'
Error E2194: Could not find file 'h_datepicker.c'
Error E2194: Could not find file 'h_editbox.c'
Error E2194: Could not find file 'h_dialogs.c'
Error E2194: Could not find file 'h_grid.c'
Error E2194: Could not find file 'h_windows.c'
Error E2194: Could not find file 'h_windowsmdi.c'
Error E2194: Could not find file 'h_image.c'
Error E2194: Could not find file 'h_label.c'
Error E2194: Could not find file 'h_listbox.c'
Error E2194: Could not find file 'h_menu.c'
Error E2194: Could not find file 'h_msgbox.c'
Error E2194: Could not find file 'h_frame.c'
Error E2194: Could not find file 'h_progressbar.c'
Error E2194: Could not find file 'h_radio.c'
Error E2194: Could not find file 'h_spinner.c'
Error E2194: Could not find file 'h_tab.c'
Error E2194: Could not find file 'h_textbox.c'
Error E2194: Could not find file 'h_timer.c'
c_scrsaver.c:
Error E2194: Could not find file 'h_hotkey.c'
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
c_hotkey.c:
Error E2194: Could not find file 'h_graph.c'
c_graph.c:
Error E2194: Could not find file 'h_browse.c'
c_browse.c:
Error E2194: Could not find file 'h_socket.c'
Error E2194: Could not find file 'h_dialog.c'
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
Warning: 'h_scrsaver.obj' file not found
Warning: 'h_edit.obj' file not found
Warning: 'h_edit_ex.obj' file not found
Warning: 'h_error.obj' file not found
Warning: 'h_ipaddress.obj' file not found
Warning: 'h_monthcal.obj' file not found
Warning: 'h_help.obj' file not found
Warning: 'h_status.obj' file not found
Warning: 'h_tree.obj' file not found
Warning: 'h_toolbar.obj' file not found
Warning: 'errorsys.obj' file not found
Warning: 'h_init.obj' file not found
Warning: 'h_media.obj' file not found
Warning: 'h_cursor.obj' file not found
Warning: 'h_ini.obj' file not found
Warning: 'h_report.obj' file not found
Warning: 'h_font.obj' file not found
Warning: 'h_hyperlink.obj' file not found
Warning: 'h_hotkey.obj' file not found
Warning: 'h_graph.obj' file not found
Warning: 'h_richeditbox.obj' file not found
Warning: 'h_browse.obj' file not found
Warning: 'h_socket.obj' file not found
Warning: 'h_imagelist.obj' file not found
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
Warning: 'h_crypt.obj' file not found
Warning: 'h_winapimisc.obj' file not found
Warning: 'h_slider.obj' file not found
Warning: 'c_windows.obj' file not found
Warning: public '_HB_FUN_GETDLGITEMTEXT' in module 'c_dialog' clashes with prior
 module 'c_controlmisc'
Warning: public '_HB_FUN_ISDLGBUTTONCHECKED' in module 'c_dialog' clashes with p
rior module 'c_controlmisc'
Warning: 'h_button.obj' file not found
Warning: 'h_checkbox.obj' file not found
Warning: 'h_combo.obj' file not found
Warning: 'h_controlmisc.obj' file not found
Warning: 'h_datepicker.obj' file not found
Warning: 'h_editbox.obj' file not found
Warning: 'h_dialogs.obj' file not found
Warning: 'h_grid.obj' file not found
Warning: 'h_windows.obj' file not found
Warning: 'h_windowsmdi.obj' file not found
Warning: 'h_image.obj' file not found
Warning: 'h_label.obj' file not found
Warning: 'h_listbox.obj' file not found
Warning: 'h_menu.obj' file not found
Warning: 'h_msgbox.obj' file not found
Warning: 'h_frame.obj' file not found
Warning: 'h_progressbar.obj' file not found
Warning: 'h_radio.obj' file not found
Warning: 'h_spinner.obj' file not found
Warning: 'h_tab.obj' file not found
Warning: 'h_textbox.obj' file not found
Warning: 'h_timer.obj' file not found
Warning: 'h_registry.obj' file not found
Warning: 'h_dialog.obj' file not found
Não foi possível encontrar C:\MiniGUI\SOURCE\h_*.c
Não foi possível encontrar C:\MiniGUI\SOURCE\errorsys.c
C:\MiniGUI\SOURCE>
Acho que não dei certo...
Algo mais que posso fazer?

So lembrando eu quero usar o Xharbour. fiquei na duvida do porque ter que usar dentro da pasta do minigui...

Abraços.

Re: Migrando do Harbourminigui para Xharbour

Enviado: 08 Jun 2010 15:32
por asimoes
Olá Samuk,

Eu tenho uma pergunta para você: porque xharbour? a minigui atualizada pela cvs, já traz uma versão harbour atualizada usando o hbmk2.
Eu fiz o caminho contrário, sai da versão minigui xharbour e fui para versão minigui harbour e não preciso gerar nenhuma lib, todo mês tem uma atualização nova das libs.

[]´s

Re: Migrando do Harbourminigui para Xharbour

Enviado: 08 Jun 2010 15:39
por Samuk.exe
Boa tarde...

Eu to querendo ir para o xharbour, pois preciso me comunicar com uma dll de um sistema de automação para posto de gasolina ( company), eu uso atualmente o minigui 1.0 + brmake...

Nessa nova versão do minigui aceita comunicação com dll ?!?

Re: Migrando do Harbourminigui para Xharbour

Enviado: 08 Jun 2010 20:27
por asimoes
Samuk.exe escreveu:Nessa nova versão do minigui aceita comunicação com dll ?!?
Com certeza na pasta samples\advanced\7-Zip você vai encontrar no fonte demo.prg o exemplo do uso das funções: LoadLibrary e DllCall

[]´s

Re: Migrando do Harbourminigui para Xharbour

Enviado: 09 Jun 2010 08:19
por Samuk.exe
Ok Asimoes... vc me convenceu!
Ja que era apenas isso mesmo, baixei o Harbour minigui 1.8 exetended.
Mais agora que vem a sua ajuda.
Eu usava o brmake, e ja tentei usar o hbmk2 , mais como ainda sou novo não consegui.
no brmake usava o seguinte...
over.mlk

Código: Selecionar todos

GUI=C
EXEFILE  over.EXE
DIROBJ \VISUAL\teste
RESOURCE 
RESOURCE 

FILE     over.prg,es_gener.prg,es_arqui.prg,rede.prg
FILE     es_diver.prg,co_clien.prg,es_param.prg,co_bolet.prg,co_impor.prg
FILE     es_relat.prg,co_histo.prg,co_remes.prg
brmake.ini

Código: Selecionar todos

/* BRMAKE para Harbour/MiniGUI Versão 2.04 - Parametros */
/* Utilizando Compilador HARBOUR */
[MINIGUI]
MiniGUI Path=C:\MINIGUI
 
[HARBOUR]
Harbour Path=C:\minigui\HARBOUR
Harbour Flags= -n -m
 
[BCC55]
Bcc55 Path=C:\BORLAND\BCC55
 
[HARBOUR BASIC LIBRARY]
Lib=rtl.lib
Lib=vm.lib
Lib=gtwin.lib
Lib=Lang.lib
Lib=macro.lib
Lib=rdd.lib
Lib=dbfntx.lib
Lib=dbfcdx.lib
Lib=common.lib
Lib=LibCt.lib
Lib=libmisc.lib
Lib=CodePage.lib
Lib=DbfDbt.lib
Lib=DbfFpt.lib
Lib=MiniPrint.Lib
Lib=Dll.Lib
Lib=Socket.Lib
Lib=hbole.Lib
 
[MISC]
Video Mode=Disabled
Compress With UPX=N
language=EN
STOP=N
e o path

Código: Selecionar todos

PATH=%PATH%;C:\OVER;C:\minigui\harbour
como transformo isso pra compilar no hbmk2 ?

Bom Dia!

Re: Migrando do Harbourminigui para Xharbour

Enviado: 09 Jun 2010 08:58
por asimoes
Ok.

Um exemplo de como eu faço o meu script para compilar: seuexecutavel = seu prg principal que contém a function main()

A bat para gerar o executável :
@echo off
SET HB_COMPILER=bcc
D:\MINIGUI\HARBOUR\BIN\HBMK2 SEUEXECUTAVEL.HBM
pause

Arquivo SEUEXECUTAVEL.HBM:

Código: Selecionar todos

# ---------------------------
# Nome do Executável
# ---------------------------
-oseuexecutavel
# ---------------------------
# Bibliotecas
# ---------------------------
-ltsbrowse
-lpropgrid
-lminigui
-lgtgui
-llibct
-lhbnf
-lhbprinter
-lxhb
-lhbwin
# ---------------------------
# Caminhos dos Includes
# ---------------------------
-incpath=d:\minigui\include;d:\minigui\harbour\include;
# ---------------------------
# Caminho das Libs da MiniGui
# ---------------------------
-Ld:\minigui\lib;d:\minigui\harbour\lib;
# ---------------------------
# Outros Parƒmetros
# ---------------------------
-workdir=.\OBJ\
-head=native
-gtgui
#-w
-n
-nowarn
-inc
# ---------------------------
# Prg(s) e Rc(s)
# ---------------------------
seuexecutavel
# ---------------------------
# Fim
# ---------------------------

Re: Migrando do Harbourminigui para Xharbour

Enviado: 09 Jun 2010 09:16
por Samuk.exe
Opa... prosperamos jah!
Pelo menos começou a compilar... rsrs
mais deu muitos erros...

Código: Selecionar todos

D:\visual\teste>over
hbmk2: Processing environment options: -compiler=bcc
hbmk2: Compiling Harbour sources...
Harbour 2.1.0beta1 (Rev. 14520)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Harbour MiniGUI Extended Distribution
Compiling 'over.prg'...
Lines 19050, Functions/Procedures 10
Generating C source output to '.hbmk\win\bcc\over.c'... Done.
Compiling 'es_gener.prg'...
Lines 38259, Functions/Procedures 27
Generating C source output to '.hbmk\win\bcc\es_gener.c'... Done.
Compiling 'es_arqui.prg'...
Lines 57125, Functions/Procedures 3
Generating C source output to '.hbmk\win\bcc\es_arqui.c'... Done.
Compiling 'rede.prg'...
Cannot open aviso.prg, assumed external
Lines 76259, Functions/Procedures 7
Generating C source output to '.hbmk\win\bcc\rede.c'... Done.
Compiling 'es_diver.prg'...
Lines 96245, Functions/Procedures 16
Generating C source output to '.hbmk\win\bcc\es_diver.c'... Done.
Compiling 'co_clien.prg'...
Lines 116253, Functions/Procedures 21
Generating C source output to '.hbmk\win\bcc\co_clien.c'... Done.
Compiling 'es_param.prg'...
Lines 135749, Functions/Procedures 7
Generating C source output to '.hbmk\win\bcc\es_param.c'... Done.
Compiling 'co_bolet.prg'...
Lines 155732, Functions/Procedures 3
Generating C source output to '.hbmk\win\bcc\co_bolet.c'... Done.
Compiling 'co_impor.prg'...
Cannot open mensagemp.prg, assumed external
Lines 174886, Functions/Procedures 6
Generating C source output to '.hbmk\win\bcc\co_impor.c'... Done.
Compiling 'es_relat.prg'...
Lines 194251, Functions/Procedures 2
Generating C source output to '.hbmk\win\bcc\es_relat.c'... Done.
Compiling 'co_histo.prg'...
Lines 213698, Functions/Procedures 6
Generating C source output to '.hbmk\win\bcc\co_histo.c'... Done.
Compiling 'co_remes.prg'...
Lines 233088, Functions/Procedures 2
Generating C source output to '.hbmk\win\bcc\co_remes.c'... Done.
hbmk2: Compiling...
.hbmk\win\bcc\over.c:
Error E2451 .hbmk\win\bcc\over.c 97: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\over.c 97: Declaration syntax error
Error E2190 .hbmk\win\bcc\over.c 97: Unexpected }
Error E2190 .hbmk\win\bcc\over.c 97: Unexpected }
Error E2040 .hbmk\win\bcc\over.c 97: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\over.c 97: Unexpected }
Error E2190 .hbmk\win\bcc\over.c 97: Unexpected }
Error E2040 .hbmk\win\bcc\over.c 97: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\over.c 224: Undefined symbol 'hb_vm_SymbolInit_OVER'
*** 9 errors in Compile ***
.hbmk\win\bcc\es_gener.c:
Error E2451 .hbmk\win\bcc\es_gener.c 84: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\es_gener.c 84: Declaration syntax error
Error E2190 .hbmk\win\bcc\es_gener.c 84: Unexpected }
Error E2190 .hbmk\win\bcc\es_gener.c 84: Unexpected }
Error E2040 .hbmk\win\bcc\es_gener.c 84: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\es_gener.c 84: Unexpected }
Error E2190 .hbmk\win\bcc\es_gener.c 84: Unexpected }
Error E2040 .hbmk\win\bcc\es_gener.c 84: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\es_gener.c 247: Undefined symbol 'hb_vm_SymbolInit_ES_
GENER'
*** 9 errors in Compile ***
.hbmk\win\bcc\es_arqui.c:
Error E2451 .hbmk\win\bcc\es_arqui.c 31: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\es_arqui.c 31: Declaration syntax error
Error E2190 .hbmk\win\bcc\es_arqui.c 31: Unexpected }
Error E2190 .hbmk\win\bcc\es_arqui.c 31: Unexpected }
Error E2040 .hbmk\win\bcc\es_arqui.c 31: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\es_arqui.c 31: Unexpected }
Error E2190 .hbmk\win\bcc\es_arqui.c 31: Unexpected }
Error E2040 .hbmk\win\bcc\es_arqui.c 31: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\es_arqui.c 53: Undefined symbol 'hb_vm_SymbolInit_ES_A
RQUI'
*** 9 errors in Compile ***
.hbmk\win\bcc\rede.c:
Error E2451 .hbmk\win\bcc\rede.c 37: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\rede.c 37: Declaration syntax error
Error E2190 .hbmk\win\bcc\rede.c 37: Unexpected }
Error E2190 .hbmk\win\bcc\rede.c 37: Unexpected }
Error E2040 .hbmk\win\bcc\rede.c 37: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\rede.c 37: Unexpected }
Error E2190 .hbmk\win\bcc\rede.c 37: Unexpected }
Error E2040 .hbmk\win\bcc\rede.c 37: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\rede.c 91: Undefined symbol 'hb_vm_SymbolInit_REDE'
*** 9 errors in Compile ***
.hbmk\win\bcc\es_diver.c:
Error E2451 .hbmk\win\bcc\es_diver.c 85: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\es_diver.c 85: Declaration syntax error
Error E2190 .hbmk\win\bcc\es_diver.c 85: Unexpected }
Error E2190 .hbmk\win\bcc\es_diver.c 85: Unexpected }
Error E2040 .hbmk\win\bcc\es_diver.c 85: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\es_diver.c 85: Unexpected }
Error E2190 .hbmk\win\bcc\es_diver.c 85: Unexpected }
Error E2040 .hbmk\win\bcc\es_diver.c 85: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\es_diver.c 201: Undefined symbol 'hb_vm_SymbolInit_ES_
DIVER'
*** 9 errors in Compile ***
.hbmk\win\bcc\co_clien.c:
Error E2451 .hbmk\win\bcc\co_clien.c 118: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\co_clien.c 118: Declaration syntax error
Error E2190 .hbmk\win\bcc\co_clien.c 118: Unexpected }
Error E2190 .hbmk\win\bcc\co_clien.c 118: Unexpected }
Error E2040 .hbmk\win\bcc\co_clien.c 118: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\co_clien.c 118: Unexpected }
Error E2190 .hbmk\win\bcc\co_clien.c 118: Unexpected }
Error E2040 .hbmk\win\bcc\co_clien.c 118: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\co_clien.c 296: Undefined symbol 'hb_vm_SymbolInit_CO_
CLIEN'
*** 9 errors in Compile ***
.hbmk\win\bcc\es_param.c:
Error E2451 .hbmk\win\bcc\es_param.c 45: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\es_param.c 45: Declaration syntax error
Error E2190 .hbmk\win\bcc\es_param.c 45: Unexpected }
Error E2190 .hbmk\win\bcc\es_param.c 45: Unexpected }
Error E2040 .hbmk\win\bcc\es_param.c 45: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\es_param.c 45: Unexpected }
Error E2190 .hbmk\win\bcc\es_param.c 45: Unexpected }
Error E2040 .hbmk\win\bcc\es_param.c 45: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\es_param.c 124: Undefined symbol 'hb_vm_SymbolInit_ES_
PARAM'
*** 9 errors in Compile ***
.hbmk\win\bcc\co_bolet.c:
Error E2451 .hbmk\win\bcc\co_bolet.c 56: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\co_bolet.c 56: Declaration syntax error
Error E2190 .hbmk\win\bcc\co_bolet.c 56: Unexpected }
Error E2190 .hbmk\win\bcc\co_bolet.c 56: Unexpected }
Error E2040 .hbmk\win\bcc\co_bolet.c 56: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\co_bolet.c 56: Unexpected }
Error E2190 .hbmk\win\bcc\co_bolet.c 56: Unexpected }
Error E2040 .hbmk\win\bcc\co_bolet.c 56: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\co_bolet.c 195: Undefined symbol 'hb_vm_SymbolInit_CO_
BOLET'
*** 9 errors in Compile ***
.hbmk\win\bcc\co_impor.c:
Error E2451 .hbmk\win\bcc\co_impor.c 66: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\co_impor.c 66: Declaration syntax error
Error E2190 .hbmk\win\bcc\co_impor.c 66: Unexpected }
Error E2190 .hbmk\win\bcc\co_impor.c 66: Unexpected }
Error E2040 .hbmk\win\bcc\co_impor.c 66: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\co_impor.c 66: Unexpected }
Error E2190 .hbmk\win\bcc\co_impor.c 66: Unexpected }
Error E2040 .hbmk\win\bcc\co_impor.c 66: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\co_impor.c 226: Undefined symbol 'hb_vm_SymbolInit_CO_
IMPOR'
*** 9 errors in Compile ***
.hbmk\win\bcc\es_relat.c:
Error E2451 .hbmk\win\bcc\es_relat.c 71: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\es_relat.c 71: Declaration syntax error
Error E2190 .hbmk\win\bcc\es_relat.c 71: Unexpected }
Error E2190 .hbmk\win\bcc\es_relat.c 71: Unexpected }
Error E2040 .hbmk\win\bcc\es_relat.c 71: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\es_relat.c 71: Unexpected }
Error E2190 .hbmk\win\bcc\es_relat.c 71: Unexpected }
Error E2040 .hbmk\win\bcc\es_relat.c 71: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\es_relat.c 123: Undefined symbol 'hb_vm_SymbolInit_ES_
RELAT'
*** 9 errors in Compile ***
.hbmk\win\bcc\co_histo.c:
Error E2451 .hbmk\win\bcc\co_histo.c 76: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\co_histo.c 76: Declaration syntax error
Error E2190 .hbmk\win\bcc\co_histo.c 76: Unexpected }
Error E2190 .hbmk\win\bcc\co_histo.c 76: Unexpected }
Error E2040 .hbmk\win\bcc\co_histo.c 76: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\co_histo.c 76: Unexpected }
Error E2190 .hbmk\win\bcc\co_histo.c 76: Unexpected }
Error E2040 .hbmk\win\bcc\co_histo.c 76: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\co_histo.c 149: Undefined symbol 'hb_vm_SymbolInit_CO_
HISTO'
*** 9 errors in Compile ***
.hbmk\win\bcc\co_remes.c:
Error E2451 .hbmk\win\bcc\co_remes.c 53: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\co_remes.c 53: Declaration syntax error
Error E2190 .hbmk\win\bcc\co_remes.c 53: Unexpected }
Error E2190 .hbmk\win\bcc\co_remes.c 53: Unexpected }
Error E2040 .hbmk\win\bcc\co_remes.c 53: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\co_remes.c 53: Unexpected }
Error E2190 .hbmk\win\bcc\co_remes.c 53: Unexpected }
Error E2040 .hbmk\win\bcc\co_remes.c 53: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\co_remes.c 149: Undefined symbol 'hb_vm_SymbolInit_CO_
REMES'
*** 9 errors in Compile ***
.hbmk\win\bcc\_hbmkaut.c:
hbmk2: Error: Running C/C++ compiler. 1
bcc32.exe -c -q -d -6 -O2 -OS -Ov -Oi -Oc  -tW -tWM -w- -n.hbmk\win\bcc -Ic:\inc
lude -Ic:\minigui\include;c:\minigui\harbour\include .hbmk\win\bcc\over.c .hbmk\
win\bcc\es_gener.c .hbmk\win\bcc\es_arqui.c .hbmk\win\bcc\rede.c .hbmk\win\bcc\e
s_diver.c .hbmk\win\bcc\co_clien.c .hbmk\win\bcc\es_param.c .hbmk\win\bcc\co_bol
et.c .hbmk\win\bcc\co_impor.c .hbmk\win\bcc\es_relat.c .hbmk\win\bcc\co_histo.c
.hbmk\win\bcc\co_remes.c .hbmk\win\bcc\_hbmkaut.c
Pressione qualquer tecla para continuar. . .
Alguma ideia ?

Re: Migrando do Harbourminigui para Xharbour

Enviado: 09 Jun 2010 09:26
por Samuk.exe
Compilei um menor pra facilitar...
Mais da o mesmo erro... sera a declaração de variaveis?
ean.prg

Código: Selecionar todos

#include "minigui.ch"

Function main()

local code

      DEFINE WINDOW Form_1 ;
                AT 0,0 ;
                WIDTH 400 ;
                HEIGHT 300;
                TITLE 'EAN 13';
                MAIN;
                TOPMOST
                @ 70 , 160 LABEL lab VALUE 'Digite o Codigo'

                @  140 , 130 BUTTON Button_1;
                        CAPTION "Testar Codigo de Barras";
                        ACTION Click();
                        WIDTH 150;
                        HEIGHT 30;

                @ 100 , 130 TEXTBOX  code    height 24 width 150 maxlength 13   on lostfocus click()




      END WINDOW

      CENTER WINDOW Form_1

      ACTIVATE WINDOW Form_1

Return

Procedure Click
         
local   cod, i , a, b , cp , ci, soma
a := 1
b := 2
ci := 0
cp := 0
soma := 0
cod := this.value

for i = 1 To 6
    ci := ci + val(Substr ( cod , a , 1 ))
    cp := cp + val(Substr ( cod , b , 1 ))
    a  := a + 2
    b  := b + 2
next 

cp := cp * 3
soma  := int (cp + ci)
dv :=int((soma /10) +1)
dv := dv * 10 - soma

if val(substr(cod,13,1)) == dv
   MsgInfo(" Codigo Correto ")
else
   MsgInfo(" Codigo Incorreto, Digite Novamente ")
endif

Return nil

Erro :

Código: Selecionar todos

D:\visual\ean>over
hbmk2: Processing environment options: -compiler=bcc
hbmk2: Compiling Harbour sources...
Harbour 2.1.0beta1 (Rev. 14520)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Harbour MiniGUI Extended Distribution
Compiling 'ean.prg'...
Lines 18856, Functions/Procedures 2
Generating C source output to '.hbmk\win\bcc\ean.c'... Done.
hbmk2: Compiling...
.hbmk\win\bcc\ean.c:
Error E2451 .hbmk\win\bcc\ean.c 38: Undefined symbol 'HB_FS_MEMVAR'
Error E2141 .hbmk\win\bcc\ean.c 38: Declaration syntax error
Error E2190 .hbmk\win\bcc\ean.c 38: Unexpected }
Error E2190 .hbmk\win\bcc\ean.c 38: Unexpected }
Error E2040 .hbmk\win\bcc\ean.c 38: Declaration terminated incorrectly
Error E2190 .hbmk\win\bcc\ean.c 38: Unexpected }
Error E2190 .hbmk\win\bcc\ean.c 38: Unexpected }
Error E2040 .hbmk\win\bcc\ean.c 38: Declaration terminated incorrectly
Error E2451 .hbmk\win\bcc\ean.c 47: Undefined symbol 'hb_vm_SymbolInit_EAN'
*** 9 errors in Compile ***
hbmk2: Error: Running C/C++ compiler. 1
bcc32.exe -c -q -d -6 -O2 -OS -Ov -Oi -Oc  -tW -tWM -w- -n.hbmk\win\bcc -Ic:\inc
lude -Ic:\minigui\include;c:\minigui\harbour\include .hbmk\win\bcc\ean.c
Pressione qualquer tecla para continuar. . .
Teste no seu pra ve se da o mesmo erro...
Esse error: running c/c++ compiler 1... nao sera por falta de mostrar o caminho do compilador?!
Onde posso declarar isso ?

Re: Migrando do Harbourminigui para Xharbour

Enviado: 09 Jun 2010 10:49
por MARCELOG
Faça "EXATAMENTE" o seguinte:

1) Baixe o pacote da Minigui;
2) Instale o pacote na pasta c:\minigui;
3) Altere o arquivo "makealllibs.bat" que se encontra na pasta c:\minigui\source incluindo as seguintes linhas no início:

IF "%MG_BCC%"=="" SET MG_BCC=c:\bcc55
IF "%MG_HRB%"=="" SET MG_HRB=c:\xharbour
IF "%MG_ROOT%"=="" SET MG_ROOT=c:\minigui

4) Através do msdos execute o arquivo makealllibs.bat com a seguinte diretiva:

makealllibs /x

Isso vai criar as libs da minigui na pasta c:\minigui\xlib

Não se preocupe se aparecer alguns avisos na tela quando da compilação

Ps: Em alguns sistemas Windows, ao que parece, o .bat e suas chamadas não executam de primeira.
Para contornar o problema, simulo a edição de um arquivo qualquer na pasta usando, por exemplo "edit teste".
Isso faz o sistema exergar corretamente as diretivas.

5) Agora, copie todo o conteúdo da pasta c:\minigui\xlib para a pasta c:\xharbour\lib

6) Pronto...

7) Se você usa o hbmake, ao compilar os sistemas, não esqueça de linkar a lib minigui e hbprinter.

8) Agora sim, pronto!!!!

MarceloG!

Ps: Outro detalhe - Inclua o arquivo minigui.ch nos prg´s.

Re: Migrando do Harbourminigui para Xharbour

Enviado: 09 Jun 2010 11:21
por Samuk.exe
Obrigado a ajuda marcelo...
Mais eu vou continuar usando o minigui msm...
em relação aos erros acima...

tem alguma ideia?

Re: Migrando do Harbourminigui para Xharbour

Enviado: 09 Jun 2010 11:26
por asimoes
Olá Samuk,

O seu exemplo gerou aqui. Eu não defino na bat o caminho para o harbour da minigui a chamada é direta para o hbmk2.

D:\MINIGUI\HARBOUR\BIN\HBMK2 SEUPROGRAMA.HBM

Faça uma coisa, copie a minigui que está no c:\minigui e copie para d:\minigui caso você tenha a partição d: caso contrário
verifique o seu arquivo hbm, veja o caminho set está para c:

# ---------------------------
# Caminhos dos Includes
# ---------------------------
-incpath=c:\minigui\include;c:\minigui\harbour\include;
# ---------------------------
# Caminho das Libs da MiniGui
# ---------------------------
-Lc:\minigui\lib;c:\minigui\harbour\lib;



hbmk2: Processing environment options: -compiler=bcc
hbmk2: Compiling Harbour sources...
Harbour 2.1.0beta1 (Rev. 14520)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Harbour MiniGUI Extended Distribution
Compiling 'edit1.prg'...
Lines 18856, Functions/Procedures 2
Generating C source output to '.\OBJ\edit1.c'... Done.
hbmk2: Compiling...
.\OBJ\edit1.c:
.\OBJ\_hbmkaut.c:
hbmk2: Linking... edit1.exe
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Pressione qualquer tecla para continuar. . .