sample error

sample error

Postby Ehab Samir Aziz » Sat Jun 24, 2006 4:20 pm

Paths are correct with other samples !!!!

Compiling...
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, http://www.harbour-project.org/
Compiling 'test.prg' and generating preprocessed output to 'test.ppo'...
Lines 38, Functions/Procedures 4
Generating C source output to 'test.c'... Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
test.c:
Error E2293 e:\compiler\cpp_lang\bcc55\include\windef.h 145: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\windef.h 154: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\windef.h 155: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 296: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 355: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 1656: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 1657: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3532: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3533: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3534: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3561: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3789: ) expected
Error E2139 e:\compiler\cpp_lang\bcc55\include\winnt.h 3882: Declaration missing
;
Error E2139 e:\compiler\cpp_lang\bcc55\include\winnt.h 3892: Declaration missing
;
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3949: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 3950: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4796: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4797: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4932: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4933: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4934: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4935: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4936: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4937: ) expected
Error E2293 e:\compiler\cpp_lang\bcc55\include\winnt.h 4938: ) expected
Error E2228 e:\compiler\cpp_lang\bcc55\include\winnt.h 4938: Too many error or w
arning messages
*** 26 errors in Compile ***

Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation

Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'TEST.OBJ'
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Antonio Linares » Sun Jun 25, 2006 5:58 am

Ehab,

Whats the code of test.prg ?
regards, saludos

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

Postby Ehab Samir Aziz » Sun Jun 25, 2006 6:01 pm

Code: Select all  Expand view
// Harbour pcode DLL sample

// Notice that functions that already exists
// on the EXE, need to be IMPORT <cFuncName>

#xcommand IMPORT <cProcName1> [,<cProcNameN>] => ;
   proc <cProcName1> [; proc <cProcNameN> ]

IMPORT MsgInfo, ChooseColor

function Func1()

   MsgInfo( "Hello world from a Harbour pcode DLL" )

   MsgInfo( ChooseColor(), "Your choosed color was..." )

   Test( "using the Extend API", "From a pcode DLL" )

return nil

function Func2( cParam1, cParam2 ) // passing parameters sample from the EXE

   MsgInfo( cParam1, cParam2 )

return "returned from the DLL"    // returning something to the EXE

#pragma BEGINDUMP

#include <extend.api>
#include <windows.h>

HB_FUNC( TEST )
{
   MessageBox( 0, hb_parc( 1 ), hb_parc( 2 ), 0 );
}

#pragma ENDDUMP
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Antonio Linares » Sun Jun 25, 2006 7:49 pm

Ehab,

What samples\bat file are you using to build it ?
regards, saludos

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

Postby Ehab Samir Aziz » Mon Jun 26, 2006 2:00 pm

buildhd.bat
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 129 guests