error with new buildhd.bat

error with new buildhd.bat

Postby Ehab Samir Aziz » Sat Jul 15, 2006 12:06 pm

??????????????????????????????????????????????????????????????????????????????
? FiveWin for Harbour 2.7 - June 2006 Harbour development power ??
? (c) FiveTech, 1993-2006 for Microsoft Windows 95/98/NT/2000/ME and XP ??
???????????????????????????????????????????????????????????????????????????????
ب ?????????????????????????????????????????????????????????????????????????????
Compiling...
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, http://www.harbour-project.org/
Compiling 'sitex.prg' and generating preprocessed output to 'sitex.ppo'...
Lines 2941, Functions/Procedures 43
Generating C source output to 'sitex.c'... Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
sitex.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Warning: Image linked as an executable, but with a .DLL or .BPL extension
* self contained DLL successfully built
'sitex' is not recognized as an internal or external command,
operable program or batch file.
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Antonio Linares » Sat Jul 15, 2006 12:18 pm

Ehab,

Have you checked for a sitex.dll file ? It should be there. And it has to be executed from an EXE. You can't run a DLL by itself.
regards, saludos

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

Postby Ehab Samir Aziz » Sat Jul 15, 2006 9:05 pm

How can I call DLL from EXE directly ?
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Antonio Linares » Sun Jul 16, 2006 8:02 am

Ehab,

Please review samples\TestDLLP.prg
regards, saludos

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

Postby Enrico Maria Giordano » Sun Jul 16, 2006 10:03 am

Antonio Linares wrote:Ehab,

Have you checked for a sitex.dll file ? It should be there. And it has to be executed from an EXE. You can't run a DLL by itself.


Yes you can. A DLL is considered an executable file by Windows.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Sun Jul 16, 2006 10:05 am

Enrico,

Yes, of course, but you can't double click on a DLL and execute it, or type its name, press enter and execute it. Neither you can use WinExec() to run it.

It has to be invoked using LoadLibrary().
regards, saludos

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

Postby Enrico Maria Giordano » Sun Jul 16, 2006 10:08 am

Antonio Linares wrote:Enrico,

Yes, of course, but you can't double click on a DLL and execute it, or type its name, press enter and execute it. Neither you can use WinExec() to run it.

It has to be invoked using LoadLibrary().


Normally yes, because a DLL is not write to be self-executing. But if you rename an EXE to DLL then you still can execute it. :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Sun Jul 16, 2006 11:31 am

Enrico,

> But if you rename an EXE to DLL then you still can execute it.

Thats because EXEs and DLLs have different headers and their startup codes are different. Windows recognizes the EXE even if you rename it.

Another major difference between them, as explained in Charles Petzold "Programming Windows" book, is that a DLL uses the DATA segment of the EXE that calls the DLL, thats why a DLL can attend multiple EXEs simultaneously.
regards, saludos

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

Postby Enrico Maria Giordano » Sun Jul 16, 2006 11:35 am

Antonio Linares wrote:Windows recognizes the EXE even if you rename it.


Ops, you are right. I can rename the EXE with any extension and it is still executable.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ehab Samir Aziz » Sun Jul 16, 2006 11:21 pm

as to finalize the conversation which batch should I use to create EXE application I use rdd server in it in new FHW June2006 ?
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Antonio Linares » Mon Jul 17, 2006 12:51 am

Ehab,

samples\buildh.bat for Harbour
samples\buildx.bat for xharbour
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 68 guests