Errores al compilar con recursos

Errores al compilar con recursos

Postby pablovidal » Fri Oct 23, 2009 3:13 am

Saludos, me da error al tratar de compilar esto:

A ver si me pueden echar una mano ?

Code: Select all  Expand view

#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  Expand view
/****************************************************************************


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 *

Saludos,

Pablo Alberto Vidal
/*
------------------------------------------------------
Harbour 3.2.0, Fivewin 17.02, BCC7
------------------------------------------------------
*/
User avatar
pablovidal
 
Posts: 401
Joined: Thu Oct 06, 2005 10:15 pm
Location: Republica Dominicana

Re: Errores al compilar con recursos ( Solucionado )

Postby pablovidal » Fri Oct 23, 2009 10:29 am

Hay que poner esto al inicio del RC

Code: Select all  Expand view
#ifdef _CE
   #include "c:\vce\include\arm\windows.h"
   #include "c:\vce\include\arm\commctrl.h"
#endif
 
Saludos,

Pablo Alberto Vidal
/*
------------------------------------------------------
Harbour 3.2.0, Fivewin 17.02, BCC7
------------------------------------------------------
*/
User avatar
pablovidal
 
Posts: 401
Joined: Thu Oct 06, 2005 10:15 pm
Location: Republica Dominicana

Re: Errores al compilar con recursos

Postby Antonio Linares » Fri Oct 23, 2009 1:28 pm

Pablo,

Asi es :-)

Muy bien
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Pocket PC

Who is online

Users browsing this forum: No registered users and 18 guests