#include “FiveWin.ch”
STATIC oWnd
FUNCTION Main()
DEFINE WINDOW oWnd TITLE “Mi primer programa” ;
MENU BuildMenu()
SET MESSAGE OF oWnd TO “Mi nombre” CENTERED
ACTIVATE WINDOW oWnd VALID MsgYesNO(“¿Desea salir?”)
return nil
//-----------------------------------------------------//
Function BuildMenu()
local oMenu
MENU oMenu
MENUITEM “Fin” ACTION oWnd:End()
ENDMENU
Return oMenu
He recogido el ejemplo uno al intentar compilarlo me da los siguientes errores
Compiling...
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Compiling 'mjcc.prg' and generating preprocessed output to 'mjcc.ppo'...
Lines 28, Functions/Procedures 2
Generating C source output to 'mjcc.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.
mjcc.c
Creating library mjcc.lib and object mjcc.exp
mjcc.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_MENUEN
D(void)" (?HB_FUN_MENUEND@@YAXXZ)
mjcc.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_MENUAD
DITEM(void)" (?HB_FUN_MENUADDITEM@@YAXXZ)
mjcc.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_MENUBE
GIN(void)" (?HB_FUN_MENUBEGIN@@YAXXZ)
mjcc.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_TMSGBA
R(void)" (?HB_FUN_TMSGBAR@@YAXXZ)
mjcc.exe : fatal error LNK1120: 4 unresolved externals
* Application successfully built
C:\manolo>