Resource Pblm(To Antonio)

Post Reply
sajith
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India
Contact:

Resource Pblm(To Antonio)

Post by sajith »

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: Select all

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
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: Select all

#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: Select all


#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
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Resource Pblm(To Antonio)

Post by StefanHaupt »

Sajit,
PORC.EXE D:\Sample\Pic1.rc /I include /I
Try with

PORC.EXE /I include D:\Sample\Pic1.rc
kind regards
Stefan
sajith
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India
Contact:

Re: Resource Pblm(To Antonio)

Post by sajith »

Hai stefan,

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


regards Sajith
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Resource Pblm(To Antonio)

Post by StefanHaupt »

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
sajith
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India
Contact:

Re: Resource Pblm(To Antonio)

Post by sajith »

Many thanks for ur support,

Pblm still remain

Regards,
sajith
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Resource Pblm(To Antonio)

Post by Antonio Linares »

Sajith,

I just tried it here and worked fine this way:

Code: Select all

c:\Program Files\PellesC\Bin>porc -Ic:\bcc55\include pic1.rc
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply