error with new buildhd.bat

Post Reply
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

error with new buildhd.bat

Post by Ehab Samir Aziz »

??????????????????????????????????????????????????????????????????????????????
? 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Post by Ehab Samir Aziz »

How can I call DLL from EXE directly ?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ehab,

Please review samples\TestDLLP.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Post by Ehab Samir Aziz »

as to finalize the conversation which batch should I use to create EXE application I use rdd server in it in new FHW June2006 ?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ehab,

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

Antonio Linares
www.fivetechsoft.com
Post Reply