Page 1 of 1

Errores al compilar con recursos

Posted: Fri Oct 23, 2009 3:13 am
by pablovidal
Saludos, me da error al tratar de compilar esto:

A ver si me pueden echar una mano ?

Code: Select all

#include "FWCE.ch"

REQUEST HB_LANG_ESWIN

STATIC oWnd

FUNCTION Main()
LOCAL oBmp

Public de := tLotenet():Nuevo()

    DEFINE WINDOW de:oWnd TITLE "LoteNet for SmartPhone"


    ACTIVATE WINDOW de:oWnd ON INIT ( If( !de:Login(), de:oWnd:End(), .t. ))

RETU NIL


Class tLotenet

Data oWnd

   Method Nuevo() Constructor
   Method Login()

EndClass

Method Nuevo() Class tLotenet

Return Self


Method Login() Class tLotenet
Local oDlg
Local lOk := .t.
 // No me deja crear los dialgos
 DEFINE DIALOG oDlg RESOURCE "About"

 ACTIVATE DIALOG oDlg CENTERED

msgInfo( "hola mundo" )


REturn( lOk )
 
Este es el RC

Code: Select all

/****************************************************************************


lotenet.rc

produced by Borland Resource Workshop


*****************************************************************************/


About DIALOG 10, 27, 124, 44
STYLE WS_POPUP | WS_VISIBLE | WS_SYSMENU
FONT 8, "System"
{
 CONTROL "", 200, "TBitmap", 0 | WS_CHILD | WS_VISIBLE, 3, 3, 40, 38
 CTEXT "Text", 210, 50, 6, 69, 27
}
 
Me da este error
┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Pocket PC - January 2009 Harbour development power │▄
│ (c) FiveTech Software, 1993-2009 for Microsoft Windows Pocket PC │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
Harbour 1.0.1dev Intl. (Rev. 9361)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling 'lotenet.prg' and generating preprocessed output to 'lotenet.ppo'...
Lines 1799, Functions/Procedures 4
Generating C source output to 'lotenet.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

lotenet.c
lotenet.RC (13): error RC2104 : undefined keyword or key name: WS_POPUP






* Application successfully built *

Re: Errores al compilar con recursos ( Solucionado )

Posted: Fri Oct 23, 2009 10:29 am
by pablovidal
Hay que poner esto al inicio del RC

Code: Select all

#ifdef _CE
   #include "c:\vce\include\arm\windows.h"
   #include "c:\vce\include\arm\commctrl.h"
#endif
 

Re: Errores al compilar con recursos

Posted: Fri Oct 23, 2009 1:28 pm
by Antonio Linares
Pablo,

Asi es :-)

Muy bien