 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
server Guest
|
Posted: Fri Jan 06, 2006 7:13 pm Post subject: Window Maximized |
|
|
message unavailable |
|
| Back to top |
|
 |
Jens Gruschel Guest
|
Posted: Fri Jan 06, 2006 7:13 pm Post subject: Re: Window Maximized |
|
|
| Quote: | i see a gap between the top of the form and the top of the desktop
|
I don't know what could cause this, but try following code:
var
WorkArea: TRect;
begin
SystemParametersInfo(SPI_GETWORKAREA, 0, @WorkArea, 0);
And take a look at WorkArea.Top. Is is zero or greater? In the latter
case probably some other application made the work area smaller, and
since maximized windows cannot be larger than the work area, it results
in a gap. But other windows should behave in the same way. Otherwise it
might be related to your application.
Jens
--
Jens Gruschel
http://www.pegtop.net |
|
| Back to top |
|
 |
Mike Martin Guest
|
Posted: Mon Jan 23, 2006 8:15 pm Post subject: Re: Compile *.dpr files through Delphi code using command l |
|
|
You need to use the delphi command line compiler. I believe it's dcc32.exe
in Delphi 3, 4 & 5. Run it from the command prompt, and it will tell you
everything you need to know.
Of course you will also need use ShellExecute() to launch a program from
within your program.
Uses
Shellapi;
Then, this should cause notepad to start and open a file.
procedure TForm1.Test2Click(Sender: TObject);
begin
ShellExecute(handle,'open','notepad.exe','mynotes.txt','',sw_SHOWNORMAL)
end;
The snag with this, is that the ShellExecute routine does not stop your
program. The program carries on without waiting for the child app to finish.
"Venkatesh VT" <venks (AT) vsnl (DOT) com> wrote in message
news:433200d9$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Does any one has any idea where to get some Delphi code/articles to
compile other Delphi application (i.e. *.dpr files) for win32 & .net (i.e.
using command line compilers through Delphi code)
Venkatesh
|
|
|
| Back to top |
|
 |
Darren Guest
|
Posted: Thu Mar 09, 2006 8:03 pm Post subject: Re: Window Maximized |
|
|
This happens when the Form's position is set to poScreenCenter. Not sure
why. |
|
| Back to top |
|
 |
Enquiring Mind Guest
|
Posted: Fri Jan 26, 2007 9:28 pm Post subject: Re: Problems with deployment of DCOM client program |
|
|
Hi,
Please see the post in the borland.delphi.com.activex.writing newsgroup
that's hyperlinked below. It relates to deployment issues:
news:45ba1c11 (AT) newsgroups (DOT) borland.com...
Regards,
Enquiring Mind |
|
| Back to top |
|
 |
Enquiring Mind Guest
|
Posted: Mon Feb 05, 2007 7:31 pm Post subject: Re: Problems with deployment of DCOM client program |
|
|
Hi,
It seems that knowledge about deploying DCOM applications in a network is
rather thin on the ground, judging from the lack of response from the
newsgroups! Maybe Dan Miser had a point when he wrote in the chapter on
developing MIDAS applications in Delphi 5 Developr's Guide that DCOM
configuration is something of a black art. I appreciate that it's primarily
an operating system issue, but given that Datasnap offers DCOM as one of the
transport options, I would expect to see more support on this issue in the
Delphi documentation.
After some research I concluded that relying on DCOM perform caller
authentication and authorization in a Workgroup network is fundamentally
flawed, because of the lack of a central directory of network users against
which to authenticate the caller. Then again, if as a work-around user
accounts are duplicated on client and server machines, they will be
difficult to keep synchronised. So I decided to disable operating system
level security for the server application. To this end I set
'Authentication Level' to 'None', and included 'Anonymous Logon' and
'Everyone' in the the list of users authorized to Launch and Access the
server. I also added exceptions to the firewalls running on the client and
server computers to allow DCOM to pass through and connect to the software
module on the respective computer.
Having made these security settings for the server application, lo and
behold the DCOM server actually gets launched when the client program is
launched on another computer in the Workgroup LAN! However the error message
'Access is denied' still shows up on the client. This seems to suggest that
the settings have worked as far as launch permissions are concerned, but not
as far as the access permissions; or perhaps that the return journey from
server to client is being blocked.
I have read in Binh Ly's techvanguards.com website that when he tried to
set up the permissions for the server, the settings only worked when applied
to the computer, but not when applied to the specific server application. In
my case I have applied the settings to the specific application, being
reluctant to compromise the security of the other DCOM servers on the
computer. Does anyone know whether Binh Ly's observation that security
settings applied solely to the server application don't work still applies?
Also to allow the DCOM modules to communicate over a LAN through firewalls,
is it sufficient to include port 135 in the firewall port exceptions, or
does DCOM dynamically generate other port numbers than may be blocked by the
firewalls?
Regards,
Enquiring Mind |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|