[DUG]: CloseFile when printing

1999-06-09 Thread Alex Kouznetsov
Hi Why is it, when giving an example of how to useAssignPrn procedure, Borland never uses CloseFile but always System.CloseFile ? I could not find any other CloseFile anywhere apart in system unit. This seems to be in all versions of Delphi. Alex

RE: [DUG]: ADO Hierarchial Record Sets

1999-06-09 Thread Chris Reynolds
Hi Wilfred, long time no see. When I was young, in the mists of time (and about when you were conceived), there was a battle between hierarchical databases, network databases and relational databases. They each had very significant advantages and very significant disadvantages. The serious

[DUG]: Welcome image

1999-06-09 Thread Juan Manuel Gomez Ramos
How does Delphi shows a welcome image/window while openning its main window? Juan Manuel Gomez Ramos Computer Science student at Havana University email:[EMAIL PROTECTED] [EMAIL PROTECTED] eFax:(707) 313-0329 internet:http://cronos.freeservers.com Hope is faith holding out

[DUG]: Table is busy (DBE error) (upgraded request)

1999-06-09 Thread Juan Manuel Gomez Ramos
Hi delphians: About my previous question: I'm trying to execute a BatchMove from a query to a table and I get a "Table is busy" error respecting the destination table of the BatchMove. What could be happening? I don't know where to look for an error. No other process/app is

RE: [DUG]: Welcome image

1999-06-09 Thread Alistair George
Hi Juan. Here is what I do for a shareware nag. Your mainform needs to be opened, but you can have it hidden until the window of interest is, as would be in your case, timed out. Dont worry about complete blocks, I have cut out some registration code, so there might be an incorrect balance of

[DUG]: End of the world as we know it.

1999-06-09 Thread Peter G Jones
Get out your disembowling sword - Microsoft has just purchase 10% of Inprise. Presumably this will give them a seat on the board...? -- Peter G Jones - --- New Zealand

RE: [DUG]: CloseFile when printing

1999-06-09 Thread Cooke, Andrew
I suspect that during their initial development, they used the old Turbo Pascal syntax - Close. As this is not a unique procedure name, they got into the (good) habit of prefixing it with the unit name. The procedure was renamed to CloseFile to make it clearer what it did (just as Assign was

Re: [DUG]: End of the world as we know it.

1999-06-09 Thread Nic Wise
Nope, they are non-voting shares. Peter G Jones wrote: Get out your disembowling sword - Microsoft has just purchase 10% of Inprise. Presumably this will give them a seat on the board...? -- Peter G Jones -

RE: [DUG]: End of the world as we know it.

1999-06-09 Thread Wilfred Verkley
Not necessarily a bad thing. It may be easier to sell a Delphi solution to some clients now that you can say "its a Microsoft company" :-) -Original Message- From: Nic Wise [mailto:[EMAIL PROTECTED]] Sent: Thursday, 10 June 1999 09:09 To: Multiple recipients of list delphi Subject: Re:

Re: [DUG]: Table is busy (DBE error) (upgraded request)

1999-06-09 Thread Aaron Scott-Boddendijk
I'm trying to execute a BatchMove from a query to a table and I get a "Table is busy" error respecting the destination table of the BatchMove. What could be happening? I don't know where to look for an error. Were you able to open the table exclusively and is it open in the design

Re: [DUG]: Welcome image

1999-06-09 Thread Aaron Scott-Boddendijk
with bitmap do begin Width := MyJPEG.Width; Height := MyJPEG.Height; Canvas.Draw(0, 0, MyJPEG); end; Why do you draw to a Bitmap and then draw the bitmap to the form. Can't you just draw the JPEG direct to the form since in

RE: [DUG]: Welcome image

1999-06-09 Thread Marshall, Paul
If you edit the project's DPR file thus, frmSplash will appear while the application is creating the other forms. You will need to Close and Free frmSplash (and set it to nil) at the end of your main form's FormShow method. Application.Initialize; frmSplash := TfrmSplash.Create(Application);

RE: [DUG]: Welcome image

1999-06-09 Thread Alistair George
Good question - case of me learning more every day. Thanks for bring that to my attention. Al+ Why do you draw to a Bitmap and then draw the bitmap to the form. Can't you just draw the JPEG direct to the form since in both cases you're drawing to a TCanvas. Hide the form borders (Should the

[DUG]: Finding out if a specific application is running (under NT)

1999-06-09 Thread Simon Mahony
I have a feeling that this was covered a few months ago, but I've lost my mail folder, so I have to ask again. Using D4, how do you find out if a specific appliction is currently running. I have to write a program (similar to the Interbase Guardian) which runs all the time and checks regularly

RE: [DUG]: Welcome image

1999-06-09 Thread Rohit Gupta
Paul, Just an observation. If you force an exception for testing, you will find that VCL does not like this construct. You will get 2 to 5 more exceptions of nasty sorts. :-) On 10 Jun 99 at 11:40, Marshall, Paul wrote: If you edit the project's DPR file thus, frmSplash will appear while

[DUG]: Next Y2K like crisis

1999-06-09 Thread Rohit Gupta
Just an observation from one of my very old apps. The next Y2K like crisis is on 2047. Can anyone figure out why ? :-) Regards Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand PH(649)

Re: [DUG]: Windows versions

1999-06-09 Thread Rohit Gupta
Chris, Did that produce any workable results ? I have seen other apps use the environment variables to figure it out. On 9 Jun 99 at 8:41, Chris Crowe wrote: Hi all Can anyone (more than one would be great) create a new app and put the code below in and tell me what version gets

Re: [DUG]: Application Return Code - 2

1999-06-09 Thread Rohit Gupta
John, I believe that this does not function under NT, but dont quote me on it. What I do know is that they have stuffed up environment handling and errorlevel handling. Probably deliberately to kill dos apps. On 8 Jun 99 at 15:57, John Christenhusz wrote: Hi folks, It may look like an

Re: [DUG]: Next Y2K like crisis

1999-06-09 Thread Nic Wise
'cos you used 10 bits to represent the year, and the other few for the month and day (tho I can't quite work out how in the 2 mins I have to reply to this :) ) ?? N Rohit Gupta wrote: Just an observation from one of my very old apps. The next Y2K like crisis is on 2047. Can anyone

Re: [DUG]: Next Y2K like crisis

1999-06-09 Thread james
Cause one way to store the day is to record how long it has been since a certain day. In 2047 the 32 bit number is going to be to big to record but hopefully by then they will be able to use 64 bit and go on for millions of years to come. This is the way linux stores the date and is why it

RE: [DUG]: Finding out if a specific application is running (under NT)

1999-06-09 Thread Chris Crowe
I suppose if you wrote them yourself, you could quite easily check the class string for the form. Eg: if the form's name is MyDelphiForm, then the class should be TMyDelphiForm. To see if it is running... Var WindowHandle : HWND; FileName : String; begin WindowHandle :=

RE: [DUG]: Windows versions

1999-06-09 Thread Chris Crowe
it worked well enough for me. Basicaly Windows 95 = 4.0 Windows 95 SR2 = 4.0 Windows 98 = 4.10 Windows NT Wkst = 4.0 Windows NT Server = 4.0 Windows NT SBS = 4.0 Windows 2000= 5.0 You can check other things like the build etc, but I did not need to. I really

[DUG]: Getting the Working directory?

1999-06-09 Thread Sean Cross
Does anyone know how to get the working directory of a application (as opposed to the application directory)? thanks Sean --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website:

RE: [DUG]: Getting the Working directory?

1999-06-09 Thread Cooke, Andrew
Used to be GetDir(0,ResultString) Regards, Andrew Cooke. -Original Message- From: Sean Cross [SMTP:[EMAIL PROTECTED]] Sent: Thursday, June 10, 1999 4:55 PM To: Multiple recipients of list delphi Subject: [DUG]: Getting the Working directory? Does anyone know how to get

[DUG]: lost connections

1999-06-09 Thread Andrew Masters
Hi, I've been developing an app with D3 and IB4.2 for some months now. In the last week or so I have been getting an increasingly frequent error "General SQL error, connection lost to database", but this has only just started appearing, and in the last 6 months I've NEVER seen it. Any