FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Resource Pblm(To Antonio)
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
Resource Pblm(To Antonio)
Posted: Tue Sep 15, 2009 08:30 AM
Hello,can some one help me
iam designing my Dialog using PellesC Resource Editor and XMate as my FiveWin Editor .After including Resource when i run the XMate iam getting an Error in Out Put Console .it would be really great full if some one help me.Thanks in Advance

ERROR::
Code (fw): Select all Collapse
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'Pic.prg'...
Lines 17, Functions/Procedures 1
Generating C source output to 'Obj\Pic.c'...
Done.
[1]:Bcc32.Exe -M -c -O2  -tW -v- -X -DHB_OS_WIN_32 -ID:\FWH\include -ID:\Borland\BCC55\Include;D:\xHarbour\Include  -nObj Obj\Pic.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Obj\Pic.c:
[1]:PORC.EXE D:\Sample\Pic1.rc   /I include /I
Pelles Resource Compiler, Version 5.00.0
Copyright (c) Pelle Orinius 1997-2008

Syntax:
PORC [options] input[.rc]

Options:
/C<cp>             Define codepage for NLS conversion (default: 1252)
/D<name>[=<text>]  Define a symbol
/E                 Preprocess only (to stdout)
/Fo<file>          Rename the output file (default: input.res)
/I<path>           Add a search path for #include files
/L<langid>         Set default language ID
/N                 Append null character to all strings in the string table
/R                 Create a .res file (default, can always be omitted)
/V                 Display more information
/X                 Don't search standard places for #include files


Source Code::
Code (fw): Select all Collapse
#include "FiveWin.ch"
#include "DbCombo.Ch"
#include "Ado.ch"
//------------------------------------------------------------------------------
FUNCTION TestMain()            //MAIN FUNCTION()
//------------------------------------------------------------------------------
LOCAL oDlg
DEFINE DIALOG oDlg RESOURCE "aa" TITLE "SampleTest"

REDEFINE GET oGet   ID  4001 of oDlg

ACTIVATE DIALOG oDlg CENTERED

RETURN Nil

Resource(Pic1.rc) Code::

Code (fw): Select all Collapse
#include <windows.h>
#include <commctrl.h>
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
aa DIALOGEX DISCARDABLE 6, 18, 382, 174
STYLE DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 0, 0, 1
{
  CONTROL "Edit", 4001, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 144, 56, 120, 20
}


Regards,
sajith
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Resource Pblm(To Antonio)
Posted: Wed Sep 16, 2009 07:19 AM
Sajit,

PORC.EXE D:\Sample\Pic1.rc /I include /I


Try with

PORC.EXE /I include D:\Sample\Pic1.rc
kind regards

Stefan
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
Re: Resource Pblm(To Antonio)
Posted: Thu Sep 17, 2009 07:16 AM

Hai stefan,

  I tried it out with your suggestion,But same error occuring

regards Sajith

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Resource Pblm(To Antonio)
Posted: Thu Sep 17, 2009 08:07 AM

Hi Sajit,

sorry, here it´s working.

you can try to change to the directory where the .rc file is and call it like this

c:\PellesC\bin\porc /i .\include sample.rc

kind regards

Stefan
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
Re: Resource Pblm(To Antonio)
Posted: Sat Sep 19, 2009 08:32 AM

Many thanks for ur support,

Pblm still remain

Regards,
sajith

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Resource Pblm(To Antonio)
Posted: Sat Sep 19, 2009 08:42 AM
Sajith,

I just tried it here and worked fine this way:
Code (fw): Select all Collapse
c:\Program Files\PellesC\Bin>porc -Ic:\bcc55\include pic1.rc
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion