[DUG] Dragging an item in Multi-select listview

2011-08-23 Thread Ross Levis
Using D7, it seems random whether clicking an item and dragging the mouse down will drag the item or select the items. Is there some way on controlling what action it will decide to do? I'm switching my app from a single to multi-select for the next release, and users are use to dragging from

Re: [DUG] DLL memory leaks

2011-08-07 Thread Ross Levis
I didn't know that was possible. I'll investigate. Thanks. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Paul Heinz Sent: Sunday, 7 August 2011 4:24 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] DLL

[DUG] DLL memory leaks

2011-08-06 Thread Ross Levis
My app loads 3rd party DLL's. There is a freeware 3rd party DLL I distribute which has a memory leak in a rare situation. The DLL source is not available. Unloading the DLL doesn't free the RAM. I guess Windows doesn't keep track of RAM allocations within DLL's. Is there any ability to

Re: [DUG] Email/SMTP code

2011-08-03 Thread Ross Levis
I’m about to implement an option to send an automatic email when a problem occurs within the software. I would be interested in the final code. Save me some trial and error. Cheers, Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird

Re: [DUG] Why does this hang?

2011-08-03 Thread Ross Levis
Yeah, may be. Currently I've replaced the ProcessMessages with MainForm.Update which resolves the issue well enough I think. I don't want to make major changes as it's very stable now apart from this issue. Thanks anyway. -Original Message- From: delphi-boun...@delphi.org.nz

Re: [DUG] Email/SMTP code

2011-08-03 Thread Ross Levis
I’m basically implementing the code below. I was wondering why the TIdText.Create and TIdAttachmentFile.Create’s don’t need to be freed. Does this occur automatically when the mail is sent? Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of

Re: [DUG] Why does this hang?

2011-08-02 Thread Ross Levis
Paul, The Timer.OnExecute I mentioned being run inside the loop excludes some of the functions that are normally executed by the timer, as these functions can not execute while we are waiting on the thread. The timer cannot be idle. It's not just updating the UI but doing some other important

Re: [DUG] Why does this hang?

2011-08-01 Thread Ross Levis
afterwards. Not sure which message MadExcept uses, it could well be outside of your message ID range. Edward _ From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Thursday, 28 July 2011 11:17 p.m. To: 'NZ Borland Developers Group

Re: [DUG] Why does this hang?

2011-08-01 Thread Ross Levis
, and the routine then hangs for a reason I'm sure one of you will know. Any way to resolve this? Cheers. -Original Message- From: Ross Levis [mailto:r...@stationplaylist.com] Sent: Tuesday, 2 August 2011 1:54 a.m. To: 'NZ Borland Developers Group - Delphi List' Subject: RE: [DUG] Why does this hang

Re: [DUG] Why does this hang?

2011-08-01 Thread Ross Levis
I can't remember now what problem I was having with Application.ProcessMessages but this code fixed it while I was testing, and had to find tune the message numbers. I failed to comment the code. I think it had something to do with other visible non-modal forms. I may have to re-instate

[DUG] Why does this hang?

2011-07-28 Thread Ross Levis
I'm using the following code inside a wait loop so that most messages are processed except for some mouse and keyboard messages (I think) which I don't want to be processed. It's working perfectly here but for another user it hangs indefinitely. If PeekMessage(Msg, MainForm.Handle , 0, 0,

Re: [DUG] FW: Web development

2011-06-07 Thread Ross Levis
Interesting. My AWStats for May shows IE visitors at 38.2%, Firefox at 33.1%, Chrome 18.2%. That's with 179680 hits. IE has been steadily decreasing. In April it was 40%, March 41%. Ross. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On

[DUG] Auto Black or White font colour

2011-06-06 Thread Ross Levis
I'm hoping someone may have a routine which determines if the font colour should be black or white depending on the colour of the component. I have buttons which the user can choose the colour, but black text on a dark colour can't be seen. Cheers.

Re: [DUG] Auto Black or White font colour

2011-06-06 Thread Ross Levis
:= clWhite; From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 7 June 2011 4:06 PM To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] Auto Black or White font colour I'm hoping someone may have a routine which determines

Re: [DUG] Web development

2011-06-02 Thread Ross Levis
On a similar subject (off-topic), I write my own scripts for my own website using standard ASP basically with Notepad or the old MS-Frontpage. I don't use databases, just text files for data storage. I chose ASP some time ago as it is similar to the BASIC language which I can understand. I'm

Re: [DUG] Hiding from Task Manager

2011-05-19 Thread Ross Levis
There must be methods to prevent a task being killed. My Avast anti-virus software cannot be killed in the Task manager. It says access denied. Probably a system service or something like that. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]

[DUG] FreeAndNil

2011-04-19 Thread Ross Levis
I seem to have problems using FreeAndNil under D7. Using it with a TidFTP component that has been created manually, doing this causes an access violation. FreeAndNil(FTP); I had to change it to. FTP.Free; FTP := nil; Any ideas why this is? Ross.

[DUG] Emulate a very basic web server using TCPServer

2011-03-20 Thread Ross Levis
I've got a TCP Client/Server app using Indy10 which communicates using my own protocol, but I have a situation where I want to send information to a browser using the same TCP Server using the same port, rather than implementing a separate Indy HTTP server. All I need is to retrieve the URL

Re: [DUG] Emulate a very basic web server using TCPServer

2011-03-20 Thread Ross Levis
be found there I suspect. J From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Monday, 21 March 2011 16:47 To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] Emulate a very basic web server using TCPServer I've got a TCP

Re: [DUG] Conditionally change name of output exe

2011-03-08 Thread Ross Levis
List Subject: Re: [DUG] Conditionally change name of output exe That is what automatic build products are for. Finalbuilder is my choice. Winner of another jolt award this year. Made with delphi and c# (not that it really matters) On 09/03/2011 3:58 PM, Ross Levis r...@stationplaylist.com

Re: [DUG] Move mouse to ListItem

2011-03-07 Thread Ross Levis
- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Monday, 7 March 2011 6:49 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Move mouse to ListItem This doesn't work in detailed view which I'm using. Cheers. -Original

Re: [DUG] Move mouse to ListItem

2011-03-07 Thread Ross Levis
-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 8 March 2011 2:08 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Move mouse to ListItem I did mean vsReport. Perhaps this was changed in later Delphi versions. My D7 documentation says. Note: Position has

Re: [DUG] Move mouse to ListItem

2011-03-06 Thread Ross Levis
mouse to ListItem ListView.Selected.GetPosition? Returns a TPoint. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Friday, 4 March 2011 5:16 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Move

[DUG] Move mouse to ListItem

2011-03-03 Thread Ross Levis
On a keyboard shortcut I want to move the mouse to the start of the currently selected item in a listview. I know how to move the mouse but I'm not sure how to get the x,y position of the selected item in relation to the listview. Any ideas? Cheers.

Re: [DUG] Move mouse to ListItem

2011-03-03 Thread Ross Levis
I plan to use that function, but need the x,y of the selected list item first. Jolyon's suggestion of ListView_GetItemRect looks to be heading in the right direction. Cheers. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Todd

[DUG] Indy TidTCPServer question

2011-02-15 Thread Ross Levis
I'm writing a idTCPClient idTCPServer apps which as part of their functions will be to transfer some files. I'm using idTCPServer.WriteFile() and idTCPClient.Read(Stream) for this purpose and it's working well. My question is really based on a lack of understanding of TCP or how a plain

Re: [DUG] Indy TidTCPServer question

2011-02-15 Thread Ross Levis
is lost. FTP is about recording progress and recconenting to resume.. This is useful if you are sending large files and you may need to write/manage this yourself.. I'm not sure as I haven't looked to see if there are any available indy FTP style objects. On Tue, Feb 15, 2011 at 10:29 PM, Ross

Re: [DUG] Windows 7 Network Oddity

2011-02-11 Thread Ross Levis
It would have ramifications for me as I validate the installation path in the software from a registry entry written by the installer. Hmmm. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Saturday, 12 February 2011

Re: [DUG] Validating a TListItem exists

2011-01-31 Thread Ross Levis
items are actually deleted. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Monday, 31 January 2011 16:24 To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] Validating a TListItem exists I'm storing some TListItem's in a TList

Re: [DUG] Validating a TListItem exists

2011-01-31 Thread Ross Levis
...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 1 February 2011 13:30 To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Validating a TListItem exists I was hoping to avoid that. I was thinking there may be a way of validating that it is still a TListItem the pointer

[DUG] Validating a TListItem exists

2011-01-30 Thread Ross Levis
I'm storing some TListItem's in a TList. Some of these items could be removed from the listview at some stage. I know the items should be removed from the TList when removed from the listview, but don't ask. Is there a simple method to determine if a listitem reference is still valid and

Re: [DUG] Object is Object vs Object.Classname = 'Object'

2011-01-25 Thread Ross Levis
Well, Apart from anything.. the IS command is the same as Object.inheritsfrom.. Ah, I see. That makes sense and looks reasonably fast provided it doesn't have to check too many ancestors. ___ NZ Borland Developers Group - Delphi mailing list

Re: [DUG] Object is Object vs Object.Classname = 'Object'

2011-01-25 Thread Ross Levis
Yeah, I clicked yesterday that I should be using ClassType which is working correctly for my purpose. Cheers. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Wednesday, 26 January 2011 9:11 AM To: 'NZ Borland Developers Group -

[DUG] Object is Object vs Object.Classname = 'Object'

2011-01-24 Thread Ross Levis
Just as a matter of curiosity really, anyone know if there is any difference in speed for these 2 operations. if abc is TMyObject then and if abc.Classname = 'TMyObject' then ? ___ NZ Borland Developers Group - Delphi mailing list Post:

Re: [DUG] Variabels stored

2011-01-20 Thread Ross Levis
I don't see the point in doing that, unless the read/write are functions or procedures. Just make the string public. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of David Moorhouse (DUG) Sent: Thursday, 20 January 2011 11:18 PM To: NZ Borland Developers

Re: [DUG] Variables stored

2011-01-20 Thread Ross Levis
I use some global variables. I also have what I assume are other bad habits like creating plain functions or procedures instead of declaring them inside the form class. Just lazy. Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith

Re: [DUG] Variabels stored

2011-01-20 Thread Ross Levis
Because a property hides the implementation details ... you can change to read / write methods later with no change to the code that is using the property. A public field exposes the implementation. Cheers D On 21/01/11 00:44, Ross Levis wrote: I don't see the point in doing that, unless the read

Re: [DUG] Variables stored

2011-01-20 Thread Ross Levis
Yes. But I have done things like this. procedure DoSomething; begin with MainForm do begin … end; end; Definitely lazy. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Friday, 21 January 2011 3:17 PM To: NZ Borland

[DUG] Override MouseWheelHandler

2011-01-12 Thread Ross Levis
I found this procedure to scroll the control the mouse is over when using the mouse wheel, not just the focused control. procedure TMainForm.MouseWheelHandler(var Message: TMessage); var Control: TWinControl; begin Control := FindVCLWindow(Mouse.CursorPos); if Assigned(Control) and

[DUG] Maths problem for the day

2011-01-10 Thread Ross Levis
Convert the following into one line. if High(Files) 30 then Max := Bias.Position else if High(Files) 300 then Max := Bias.Position*2 else if High(Files) 3000 then Max := Bias.Position*3 else if High(Files) 3 then Max := Bias.Position*4 etc I think there must be a way. Probably

Re: [DUG] Maths problem for the day

2011-01-10 Thread Ross Levis
be adjusted accordingly). From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 11 January 2011 14:25 To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] Maths problem for the day Convert the following into one line

Re: [DUG] Virtual TListView SelCount bug

2011-01-04 Thread Ross Levis
I discovered that it's only within the OnSelectItem event that SelCount appears 0. Using a 1ms Timer to display the SelCount is working, but rather crude in my opinion. Ross. From: Ross Levis [mailto:r...@stationplaylist.com] Sent: Tuesday, 4 January 2011 6:02 PM To: Delphi Discussion

[DUG] Virtual TListView SelCount bug

2011-01-03 Thread Ross Levis
In D7, I'm using a Virtual ListView (OwnerData=true) for the first time in a project, and there appears to be a bug in the VCL. I'm hoping I can make a fix in the VCL code if possible. I've searched the internet and found a person asking the same question on a forum but no one answered him.

[DUG] Indy ConnectTimeout/ReadTimeout recomendations

2010-12-12 Thread Ross Levis
I'm after minimum recommendations for ConnectTimeout and ReadTimeout for connecting to an HTTP URL. Assuming a DSL internet connection, could these be say 3 seconds each and not likely to abort too early in most cases? I'm executing HTTP.Head to determine if a URL is valid but I don't want to

Re: [DUG] Indy ConnectTimeout/ReadTimeout recomendations

2010-12-12 Thread Ross Levis
-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Monday, 13 December 2010 16:19 To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] Indy ConnectTimeout/ReadTimeout recomendations I'm after minimum recommendations for ConnectTimeout and ReadTimeout for connecting to an HTTP URL

[DUG] Critical Section with Timeout

2010-11-24 Thread Ross Levis
I think I've come up with a solution to provide a critical section with a timeout, and want some feedback, particularly if you can see any problems with it. Firstly 2 procedures which are used to enter and leave a section. var CS: TRTLCriticalSection; LockThreadID: Cardinal;

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-23 Thread Ross Levis
It's a shame UTF-8 wasn't made the standard in Delphi. It's commonly used in audio file tags, for example, which I have to deal with. My software needs to search for songs with specific artists or titles, and it sounds like I'm going to have problems where the information is visually the same

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-22 Thread Ross Levis
You beat me to it. I was going to say the same, that I'm interested in these answers also. I have customers all over the world and just recently the display of Chinese characters was desired in a non-Chinese speaking country. So eventually I'll have to convert to Unicode. Ross.

Re: [DUG] Upgrading to XE - Unicode strings questions

2010-11-22 Thread Ross Levis
Length( s ) will always yield the number of chars in s. So how does one obtain the number of bytes in a string if one wants to use AnsiChar to check every character? Does s[0] work? Ross. ___ NZ Borland Developers Group - Delphi mailing list

Re: [DUG] TFormatSettings

2010-11-10 Thread Ross Levis
on the screen, or reporting. What was the problem? ;) On Wed, Nov 10, 2010 at 11:21 PM, Ross Levis r...@stationplaylist.com wrote: Sorry, found the problem. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Wednesday, 10 November 2010 10:56 PM

Re: [DUG] TFormatSettings

2010-11-10 Thread Ross Levis
Sorry, found the problem. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Wednesday, 10 November 2010 10:56 PM To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] TFormatSettings This is really bizarre. I store

[DUG] TFormatSettings

2010-11-10 Thread Ross Levis
This is really bizarre. I store a snapshot of all the regional settings when the program is started, to prevent issues if the date format is changed while the program is running. I store a couple of dates in a string using DateToStr and use StrToDate to convert it back later. var FS:

[DUG] Memory allocation speed

2010-09-23 Thread Ross Levis
Just wanted some opinions on how bad a practice this is! I have written a media player which uses a DLL to decode audio files. The DLL opens an MP3 file for example, and sends back decoded raw audio, usually in chunks of 4608 bytes (~20ms), but could be a different size. I need to

Re: [DUG] Memory allocation speed

2010-09-23 Thread Ross Levis
- Delphi List Subject: Re: [DUG] Memory allocation speed I think that because your chunk size is constant, the memory manager just returns previous blocks to you. So fragmentation does not occur. On 24/09/2010 01:52, Ross Levis wrote: Just wanted some opinions on how bad a practice this is! I

[DUG] SetWindowPos HWND_TOPMOST

2010-08-20 Thread Ross Levis
I have a window in my app which needs to be set to stay on top of all others. In D7, if a modal dialog is activated from this window such as a TOpenFile, it appears underneath the window. I believe later versions of Delphi resolve this problem. I got around the issue by using SetWindowPos

Re: [DUG] MP3 file components/units

2010-08-19 Thread Ross Levis
I've never come across any native Delphi translations of an MP3 decoder. I know one which uses libmpg123.dll which is open source. Ross. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jeremy North Sent: Friday, 20 August 2010

Re: [DUG] MP3 file components/units

2010-08-19 Thread Ross Levis
NewAC should be cross platform. http://symmetrica.net/newac Older versions worked with Kylix and Lazarus. Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jeremy North Sent: Friday, 20 August 2010 3:49 PM To: NZ Borland Developers Group -

Re: [DUG] MP3 file components/units

2010-08-19 Thread Ross Levis
: [DUG] MP3 file components/units Nice set of components there. Unfortunately it only looks like it supports writing ID3v1 tags. http://symmetrica.net/newac/formats.htm I will download and see, perhaps the matrix is out of date. On Fri, Aug 20, 2010 at 1:34 PM, Ross Levis r...@stationplaylist.com

Re: [DUG] MP3 file components/units

2010-08-19 Thread Ross Levis
Ah, that's different then. The NewAC audio components have native ID3 tag editing. http://symmetrica.net/newac Ross. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jeremy North Sent: Friday, 20 August 2010 3:06 PM To: NZ Borland

Re: [DUG] Delphi XE (2011)

2010-08-18 Thread Ross Levis
I would be happy to pay twice the usual price for OS/X and Linux compilers. I get asked a few times a month if my software works on a Mac. Ross. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Alistair Ward Sent: Thursday, 19

Re: [DUG] Determine line number from MAP file

2010-08-09 Thread Ross Levis
://www.fmi.co.nz/ www.fmi.co.nz _ From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Monday, 9 August 2010 1:32 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Determine line number from MAP file Thanks

Re: [DUG] Determine line number from MAP file

2010-08-08 Thread Ross Levis
, it served us well over the years. I tried our utility on your map file and it can't find the address, I suspect the linker Image Base you provided is incorrect. Regards Cheng _ From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent

[DUG] Determine line number from MAP file

2010-08-06 Thread Ross Levis
I have written a DLL for my Delphi 7 application. It's a C compatible DLL with no Delphi memory sharing etc. It works fine for me and several other users, but one user is regularly receiving an access violation in this DLL at a specific address. I have a detailed .MAP file and I'm hoping

Re: [DUG] 96DPI and 120DPI

2010-07-22 Thread Ross Levis
I've come across the odd freeware or shareware app that cut's off part of the text or component at 120dpi but generally I don't have any problems. I hadn't tried 144dpi but just tried it now, and ran through several forms in my app. Status bars have some text chopped off the bottom on y's and

Re: [DUG] 96DPI and 120DPI

2010-07-21 Thread Ross Levis
I wouldn't be able to read the screen well enough if I used 96dpi. All my computers use 120DPI. I did have issues with my apps when I initially changed to 120DPI, and so did some of my customers, but after disabling AutoScroll on all forms and redesigning under 120DPI, my software appears to

[DUG] UseHTML.pas strangeness

2010-06-20 Thread Ross Levis
I'm using D7 and for several years I've been using a freeware unit UseHTML which loads CHM files instead of HLP files when activating the help system. As of about 6 months ago, in one of my programs, if I compile it without changing any code in the main form, UseHTML doesn't appear to be used,

Re: [DUG] UseHTML.pas strangeness

2010-06-20 Thread Ross Levis
, 2010 at 9:56 AM, Ross Levis r...@stationplaylist.com wrote: I’m using D7 and for several years I’ve been using a freeware unit UseHTML which loads CHM files instead of HLP files when activating the help system. As of about 6 months ago, in one of my programs, if I compile it without changing any

Re: [DUG] Windows 7 Delphi 2007

2010-06-16 Thread Ross Levis
I have an app that modifies the Windows\CurrentVersion\Run registry for auto starting, and I just checked whether the app was loading elevated, and it's not. I can tell because drag drop from explorer doesn't work when elevated. Does this mean that all apps sitting in the Startup folder are

Re: [DUG] Anyone with 5 minutes spare time?

2010-06-01 Thread Ross Levis
, @DeviceDescription, sizeof(DeviceDescription), lReturned); Result := DeviceDescription.WaveDeviceId; end; end. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Thursday, 27 May 2010 10:47 p.m. To: 'NZ

Re: [DUG] Anyone with 5 minutes spare time?

2010-05-27 Thread Ross Levis
] On Behalf Of Ross Levis Sent: Wednesday, 26 May 2010 10:00 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Anyone with 5 minutes spare time? If you are referring to the Clootie page, I just downloaded the headers from there and it's the same file as I've got. I'm pretty

Re: [DUG] Anyone with 5 minutes spare time?

2010-05-27 Thread Ross Levis
...@delphi.org.nz] On Behalf Of Ross Levis Sent: Wednesday, 26 May 2010 10:00 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Anyone with 5 minutes spare time? If you are referring to the Clootie page, I just downloaded the headers from there and it's the same file as I've

Re: [DUG] Anyone with 5 minutes spare time?

2010-05-27 Thread Ross Levis
, sizeof(DeviceDescription), lReturned); Result := DeviceDescription.WaveDeviceId; end; end. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Thursday, 27 May 2010 10:47 p.m. To: 'NZ Borland

Re: [DUG] Anyone with 5 minutes spare time?

2010-05-27 Thread Ross Levis
, sizeof(DeviceDescription), lReturned); Result := DeviceDescription.WaveDeviceId; end; end. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Thursday, 27 May 2010 10:47 p.m. To: 'NZ Borland Developers

Re: [DUG] Windows 7 Delphi 2007

2010-05-27 Thread Ross Levis
Surely that is security gone made. Not letting another application change the icon of another is fair enough, but where is the security threat for an application that created the icon in the first place! Ross. -Original Message- From: delphi-boun...@delphi.org.nz

Re: [DUG] Anyone with 5 minutes spare time?

2010-05-26 Thread Ross Levis
things like below. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Wednesday, 26 May 2010 5:40 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] Anyone with 5 minutes spare time? Hi everyone. I've never used interfaces

Re: [DUG] Anyone with 5 minutes spare time?

2010-05-26 Thread Ross Levis
: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Wednesday, 26 May 2010 6:53 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Anyone with 5 minutes spare time? I've already got a file called DirectSound.pas which is similar

[DUG] Anyone with 5 minutes spare time?

2010-05-25 Thread Ross Levis
Hi everyone. I've never used interfaces in Windows before and I've got no idea how to do this, so I'm wondering if someone would like to whip up a Delphi function for me. I don't think it would take more than 5 or 10 minutes. I searched the internet extensively and C++ code exists but

Re: [DUG] About TPopUpMenu

2010-05-17 Thread Ross Levis
Did you miss the OnPopup event? But there is no built in deactivation event for when it’s closing, at least in D7. You would have to work out the Windows messages for this and make your own event. Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On

Re: [DUG] UAC control

2010-05-02 Thread Ross Levis
Subject: Re: [DUG] UAC control Why not just include an administrator manifest and have you application run with administrator privileges all the time. On Sun, May 2, 2010 at 12:53 PM, Ross Levis r...@stationplaylist.com wrote: Relaunching is not really an option, as it could be playing a media

Re: [DUG] UAC control

2010-05-02 Thread Ross Levis
Subject: Re: [DUG] UAC control Do you still need an example of how to invoke an elevated COM DLL? I can probably rustle an example up if you do. Cheers, C. _ From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Saturday, 1

Re: [DUG] UAC control

2010-05-01 Thread Ross Levis
. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] UAC control A listening socket is normally blocked by firewalls and virus scanners. Use named pipes instead. Paul - Original Message - From: Ross Levis mailto:r...@stationplaylist.com To: delphi@delphi.org.nz

Re: [DUG] UAC control

2010-05-01 Thread Ross Levis
If you can get it working using sockets, then this should work also. I've never seen named pipes blocked by a firewall Paul - Original Message - From: Ross Levis mailto:r...@stationplaylist.com To: 'NZ Borland mailto:delphi@delphi.org.nz Developers Group - Delphi List

Re: [DUG] UAC control

2010-05-01 Thread Ross Levis
Relaunching is not really an option, as it could be playing a media file at the time a user could ask for a specific change which requires elevated access. What I may need to do is write all the code into my elevated app and use command-line parameters to execute the code and send the required

[DUG] UAC control

2010-04-30 Thread Ross Levis
I'm back to this subject again. I released a new version of my software using the TCP server/client method to communicate with a separate elevated app where I do my HKLM writing etc. But this is turning out to be a nightmare with firewalls. The proper method is to write a DLL which does

Re: [DUG] Need help in format function

2010-03-04 Thread Ross Levis
There is no problem at all using this function in multiple threads if you don't need to change the Format Settings. To quote from the D7 documentation. The first form of FloatToStrF is not thread-safe, because it uses localization information contained in global variables. If you did

Re: [DUG] Is it a bug in latest version of Delphi?

2010-02-15 Thread Ross Levis
I often use the Object property of listbox and TStringList items to store pointers, or just numbers for array subscripts. I don't see any problem doing that as it can save a lot of time. It is just an integer variable internally. I seem to remember coming across the same problem once (D7)

[DUG] ShellExecute with SW_SHOWMINNOACTIVE

2010-01-29 Thread Ross Levis
From a Delphi app I'm wanting to load another Delphi app minimized without affecting the focus of the current app. But the ShellExecute function seems to be ignoring anything I put in the ShowCmd parameter. SW_SHOWMINNOACTIVE should do just what I want but the app appears normally on the screen.

Re: [DUG] ShellExecute with SW_SHOWMINNOACTIVE

2010-01-29 Thread Ross Levis
the parameter, the program does load minimized after the splash screen terminates. Ross. From: Ross Levis [mailto:r...@stationplaylist.com] Sent: Saturday, 30 January 2010 12:30 a.m. To: 'NZ Borland Developers Group - Delphi List' Subject: ShellExecute with SW_SHOWMINNOACTIVE From

[DUG] manually process Windows messages

2010-01-25 Thread Ross Levis
My registry app I mentioned a few days ago is non-visual with no forms, and Forms is not included in the Uses clause. In attempting to use a TCP socket system I've discovered that I need to arrange for Windows messages to be processed otherwise the TCP buffers never get any data. I don't want

Re: [DUG] manually process Windows messages

2010-01-25 Thread Ross Levis
Tried that already. Just Using Forms and not even using any function increases the size by 5 times. Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Tuesday, 26 January 2010 9:55 a.m. To: NZ Borland Developers Group - Delphi List

Re: [DUG] manually process Windows messages

2010-01-25 Thread Ross Levis
Using D7, mine grows from 100k to around 500k. The size is important for loading speed and also the final installer package size. Since my software is download only, I always try to keep the download size as small as possible. Ross. From: delphi-boun...@delphi.org.nz

Re: [DUG] manually process Windows messages

2010-01-25 Thread Ross Levis
Initial results are looking good, thanks Xander! Initially I had to Use the Controls and Messages units, which bloated the exe again. But went through and found the required constants. I'll post these here in case it is useful for someone in the future reading the archives. const

Re: [DUG] manually process Windows messages

2010-01-25 Thread Ross Levis
that addition is likely to be negligible). From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 26 January 2010 1:18 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] manually process Windows messages Using

Re: [DUG] manually process Windows messages

2010-01-25 Thread Ross Levis
Don't seem to need that. Perhaps because there are no windows. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Edward Koryagin Sent: Tuesday, 26 January 2010 2:08 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re:

Re: [DUG] IPC with an elevated program

2010-01-22 Thread Ross Levis
get for communicating. On Tue, Jan 19, 2010 at 2:13 AM, Ross Levis r...@stationplaylist.com wrote: This is not strictly Delphi related but hope someone can help. Since Vista came out I've been using a small program I wrote with a manifest to give it elevated privileges, so I can write

Re: [DUG] What is the future for Delphi programmer? - summary

2010-01-20 Thread Ross Levis
I didn't bother responding as I'm not very typical. I work from home for myself, just adding new features to the same project I started 8 years ago in D5. Using D7 now. I sell the software on the internet. I'm not likely to start any new projects but if I did it would likely be in D7. Not

[DUG] IPC with an elevated program

2010-01-18 Thread Ross Levis
This is not strictly Delphi related but hope someone can help. Since Vista came out I've been using a small program I wrote with a manifest to give it elevated privileges, so I can write to the HKLM registry when requested by any of my applications. I use a shared memory component (memory

Re: [DUG] IPC with an elevated program

2010-01-18 Thread Ross Levis
I don't really want global shared memory. The reason for the small app is to have the UAC prompt appear when I need to make changes to the HKLM registry, which is very rare. There is a standard way to do this but it sounds difficult. Some sort of DLL needs to be created I believe. Ross.

Re: [DUG] OT : GoogleWave invites

2009-11-26 Thread Ross Levis
Can someone enlighten me as to what GoogleWave is? I'm overseas at the moment and only have email access. Cheers, Ross. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Malcolm Groves Sent: Thursday, 26 November 2009 2:21 p.m. To: NZ Borland

Re: [DUG] Upgrade considerations

2009-09-23 Thread Ross Levis
I'm interested to know if anyone is using the free Sun VirtualBox and how it compares to VMWare. Ross. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Alister Christie Sent: Wednesday, 23 September 2009 3:45 p.m. To: NZ Borland

  1   2   3   4   >