Re: [DUG] Reading data from a USB

2010-08-11 Thread Wes Edwards
I've successfully used the JvHidDeviceController component (part of the Jedi VCL library) to obtain data from a USB device (in this case a gamepad). There are demos supplied. You'll need to work out the format of the data obtained, but hopefully self-explanatory or discoverable. Wes Fro

RE: [DUG]: Hash function in VB (was Copy protection/program registration)

2003-11-12 Thread Wes Edwards
Hi Ross, This is the function implemented in VBA so hopefully this isn't too far off - it returns the correct result for "ABC" Public Function Hash(Buf As String) As Long Dim I As Long Dim X As Long Dim Result As Long Result = 0' Result := 0; For I = 1 To L

RE: [DUG]: Capturing input focus

2003-11-04 Thread Wes Edwards
Title: Message Derive from TWinControl (Windows only) or TWidgetControl (cross-platform) to receive focus / keyboard input etc. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allan VergaraSent: Tuesday, 4 November 2003 2:01 p.m.To: Multi

RE: [DUG]: OLEVariant arrays

2003-11-02 Thread Wes Edwards
Don't know if it will help Check out http://community.borland.com/article/0,1410,10194,00.html which is about hooking up Delphi and Autocad via OLE. They create a variant array using a particular real number type. AutoCad can be fussy about real vs integer stuff. Wes > -Original Message---

RE: [DUG]: one for the MSDE people

2003-10-29 Thread Wes Edwards
you have PC's   Wes Edwards -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy CoulterSent: Thursday, 30 October 2003 8:35 a.m.To: Multiple recipients of list delphiSubject: [DUG]: one for the MSDE people Hi all. With MSDE

RE: Re[2]: [DUG]: cpu load

2003-09-14 Thread Wes Edwards
Have a read through the "Performance Data Helper" section of the Win32 Programmers Reference Help file that comes with Delphi. That explains the performance data (two interfaces) that the Windows Performance Monitor uses. Wes Edwards > -Original Message- > From:

RE: [DUG]: Integer conversion

2003-07-27 Thread Wes Edwards
format('%.2d',[IntValue]) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leigh Wanstead Sent: Monday, 28 July 2003 10:49 a.m. To: Multiple recipients of list delphi Subject: [DUG]: Integer conversion Hello everyone, I want to convert integer to strin

RE: [DUG]: tstringgrid sorting.

2003-07-27 Thread Wes Edwards
then get them back in sorted order. You also supply a customised compare function. Wes Edwards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Veale Sent: Monday, 28 July 2003 9:39 a.m. To: Multiple recipients of list delphi Subject: RE: [DUG

RE: [DUG]: Good quality library of string handling routines

2003-07-21 Thread Wes Edwards
Hi Phil A good starting point for algorithm's etc is efg's reference pages with a good list of routines and packages/ libraries http://homepages.borland.com/efg2lab/Library/Delphi/index.html The Jedi Code Library also has some strig routines but if the ones in Turbopower Systools aren't what you

RE: [DUG]: multi aggregates with clauses??

2003-03-23 Thread Wes Edwards
ncident_date) < 3 and (extract (year from incident_date) = 2003))) GROUP BY incident.incident_dateORDER BY incident.incident_date; Cheers Wes Edwards    -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tracey MauleSent: Monday, 24 March 2003 11:56 a.m.To

RE: [DUG]: Alternative to Rationals RequisitePro

2002-11-03 Thread Wes Edwards
StarTeam from Starbase (now Borland) is an alternative. Not as powerful, but then you don't pay so much. Starteam incorporates version control and defect tracking etc. If you'd like to know more from someone who had to set it up and administer it drop me a line off-list. Wes Edwa

RE: [DUG]: Version Control

2002-11-03 Thread Wes Edwards
d to combine the two branches for thorough testing.   As always a well planned test programme, adeqaute documentation and good processes are the best ways to minimise the number of bugs that escape.   Wes Edwards NZCE,  BE,  M.IPENZ steadfast technology Phone: +64 9 820-9273 Fax:    +64 9 820-9274

Re: [DUG]: Is this bad programming practice or what?

2002-10-23 Thread Wes Edwards
Check out the ExtractFileName function and it's cousins. I think that it will result in code that is safer across different versions of windows and will handle all filenames etc Wes Edwards -Original Message- From: [EMAIL PROTECTED] [mailto:owner-delphi@;delphi.org.nz]On Beha

RE: [DUG]: Where should we put packages

2001-01-09 Thread Wes Edwards
found is to ensure that when new files are added to version control that they are added from S: and not Z: so that they are checked out to S: and not to whatever Z: you happen to have at the moment. Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

RE: [DUG]: Best way to load a buffer

2000-12-17 Thread Wes Edwards
Jeremy, Doing msg := MyMessageStruct is just sending the memory address for the data on your PC to another PC. It's not going to mean anything when it gets there. One field at a time is the only way to do it. You might also want to include some extra data when you send so you can be sure that

RE: [DUG]: Best way to load a buffer

2000-12-17 Thread Wes Edwards
Jeremy, In your example, what gets assigned to msg? Wes > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of [EMAIL PROTECTED] > Sent: Monday, 18 December 2000 23:04 > To: Multiple recipients of list delphi > Subject: [DUG]: Best way to load a buffer >

RE: [DUG]: TBits - array of bits

2000-12-14 Thread Wes Edwards
values to be stored are very small w.r.t. the overall size of the array you may end up with a saving. By the way, a black & white bitmap is a 2D array of boolean values. Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Nahu

RE: [DUG]: TBits - array of bits

2000-12-14 Thread Wes Edwards
teger for Size and 1 pointer to the Bits array. Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Nahum Wild > Sent: Friday, 15 December 2000 13:06 > To: Multiple recipients of list delphi > Subject: [DUG]: TBits -

RE: [DUG]: Progress while copying files

2000-12-14 Thread Wes Edwards
The API function CopyFileEx has a callback function for displaying progress. The other way to do it to open a FileStream on source and on target and copy between them yourself - you can track progress as you go. Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:

RE: [DUG]: AddObject and record structures

2000-12-13 Thread Wes Edwards
Change your record into a class derived from TObject. The string list objects are designed to hold TObjects (which are pointers). It looks like the complier can put a record with one integer field into the space for a pointer which is why the first one worked. Wes > -Original Message-

RE: [DUG]: Interfacing to Antivirus programs

2000-12-12 Thread Wes Edwards
Hi,   I'm a bit of a COM newbie, but if you have a right-click option in Explorer, that means that Norton have provided a Shell Extension COM object on your system, which will have a standard COM interface for Explorer to use.  Is that a potential means of interfacing?? Or am I showing my ig

RE: [DUG]: RFC: HTML Viewing Controls - "HTML Components" from www.pbear.com / Dave Baldwin

2000-07-23 Thread Wes Edwards
I've made good use of HTML lite - printing support disabled, but it has hyperlinks etc. No problems with it so far. Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Mike Mueller > Sent: Monday, 24 July 2000 14:

RE: [DUG]: Caller ID

2000-07-17 Thread Wes Edwards
How about a product suite that connects to the PABX via serial/network/TAPI and gives CallerID, pop's the user's details onto the screen, costs the calls, allocates them to department/ account/ category etc etc etc. Written in Delphi (of course) see www.commsoftgroup.com W

RE: [DUG]: Creating a DSN at runtime

2000-06-15 Thread Wes Edwards
add registry keys. You'll need one under HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ODBC Data Sources naming it, then a bunch under HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\[YourDSNName here] describing engine, database > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PRO

RE: [DUG]: FYI: IBX update on www.interbase.com

2000-05-16 Thread Wes Edwards
DNUA (Do Not Use Abbreviations) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Mark Derricutt > Sent: Wednesday, 17 May 2000 12:23 > To: Multiple recipients of list delphi > Subject: Re: [DUG]: FYI: IBX update on www.interbase.com > > > On Wed, 1

RE: [DUG]: Z value crook

2000-05-11 Thread Wes Edwards
Haven't tested this but ... Application.onException handler begin Application.MainForm.Minimize (or whatever takes your fancy) // display exception in your own form // ... end; Any use ??? Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PR

RE: [DUG]: Loading forms from dynamic DLL's and enbedding them

2000-05-11 Thread Wes Edwards
how much is the size out by ? By the height of the form caption + border, and the width of the border? Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Peter G Jones > Sent: Saturday, 13 May 2000 02:07 > To: Multiple rec

RE: [DUG]: BDE Files

2000-05-09 Thread Wes Edwards
redistribution agreement requires you to use an "approved installer". I don't know the requirements for getting approved... Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Jeremy Coulter > Sent: Wednesday, 10 May 2000 16:4

RE: [DUG]: Get BDE Version

2000-05-07 Thread Wes Edwards
Leigh, There are TWO version numbers in the BDE. Note that BDE Admin will report the two version numbers in two different places too, I use the following code. The relevant part is extracting iIntfLevel from the version info. Wes Edwards var MyList : TStringList; MySysVersion

RE: [DUG]: odbc 3.5

2000-02-09 Thread Wes Edwards
Because of all the interdependencies with ODBC you are recommended to download the Microsoft Data Access Components (MDAC). This will install ODBC, OLE DB and ADO. http://www.microsoft.com/data/download.htm Read the documents there and download whatever languages you need. Wes Edwards

RE: [DUG]: Application Structure

2000-02-07 Thread Wes Edwards
ut sybase, including http://www.sybase.com/products/anywhere/remote2.html Wes Edwards > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Mark Howard > Sent: Tuesday, 8 February 2000 14:28 > To: Multiple recipients of list delphi > Subject: [DUG]: A

RE: [DUG]: Delete *.*

2000-01-23 Thread Wes Edwards
The line > GetDir(0,F.Name); // then change to it needs to be > ChDir(F.Name); // then change to it Wes > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Carl Reynolds > Sent: Monday, 24 January 2000 10:49 > To: Multiple recipients of list d

RE: [DUG]: Tree view's

1999-12-30 Thread Wes Edwards
> contains a "Please wait" caption, and maybe other things like > an image or > AVI etc. Make the panel visible while the query is running. > If there are > no controls on the panel that can receive focus you should be OK. > > Wes Edwards > >

RE: [DUG]: Tree view's

1999-12-30 Thread Wes Edwards
ing focus away from things, but ... How about putting a panel on your form over the datagrids. The panel contains a "Please wait" caption, and maybe other things like an image or AVI etc. Make the panel visible while the query is running. If there are no controls on the panel that can rec

[DUG]: Running in IDE

1999-11-22 Thread Wes Edwards
My memory is rusty. How do we tell if our app is running inside the IDE? Wes Edwards --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

RE: [DUG]: Reading from TCustomWinSocket & typecasting pointers

1999-11-21 Thread Wes Edwards
Typecasting to a pointer to a CARDINAL may be more future proof? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Wilfred Verkley Sent: Monday, 22 November 1999 15:25 To: Multiple recipients of list delphi Subject:RE: [DUG]: Reading f

RE: [DUG]: How do you share a directory with code?

1999-11-07 Thread Wes Edwards
Win32 API Call is NetShareAdd. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Greg Nixon > Sent: Sunday, 7 November 1999 15:51 > To: Multiple recipients of list delphi > Subject: [DUG]: How do you share a directory with code? > > > What API call

RE: [DUG]: List of Locale ID's??

1999-11-02 Thread Wes Edwards
They are defined in Windows.pas eg CTRY_NEW_ZEALAND = $40; { New Zealand } Or, some code I use to return a Country string and the International STD code for the country. Note that there are a few different strings that can be returned. eg Spain = 'Spain' or 'Espania' etc var InfoSize : int

RE: [DUG]: bde 5.10 bug

1999-10-17 Thread Wes Edwards
Note that the BDE Administrator Help|About will report v 5.01 even under BDE v 5.10! For the "real" version info select the "Configuration" tab, then check out File|Version Information. You'll see that the DLL's have version numbers like 5.1.0.4. Wes. -Original Message- From: [EMAIL P

[DUG]: How to get Drive Type

1999-08-26 Thread Wes Edwards
neither of these methods will correctly identify a SUBST'ed drive. Any pointers? Wes Edwards CommSoft Group Ltd PO Box 691, Shortland Street Auckland 1015, New Zealand Phone: +64 9 358 5900 Fax: +64 9 358 5901 Support+64 9 358 5902 Sales +64 9 358 5903 Email: [EMAIL PROTECTED] Sma

RE: [DUG]: Circular unit references - gotta love'm!

1999-08-18 Thread Wes Edwards
(TMyVeryOwnAbstractClass) implementation - Wes Edwards CommSoft Group Ltd PO Box 691, Shortland Street Auckland 1015, New Zealand Phone: +64 9 358 5900 Fax: +64 9 358 5901 Support+64 9 358 5902 Sales +64 9 358 5903 Email: [EMAIL PROTECTED] SmartCharge

RE: [DUG]: How to draw a non-rectangular control?

1999-07-20 Thread Wes Edwards
The answer is to use Regions. search the WinAPI help on CreatePolyPolygonRgn and SetWindowRgn Wes Edwards CommSoft Group Limited ph:+64 9 358 5900 fax:+64 9 358 5901 [EMAIL PROTECTED] SmartCharge ... on every switch > -Original Message- > From: [EMAIL PROTECTED] [mailto:

RE: [DUG]: Date/Time controls

1999-07-11 Thread Wes Edwards
myDateTime := int(myDate) + frac(myTime); Wes Edwards NZCE BE M.IPENZ Reg.Eng Quality Assurance Manager CommSoft Group Limited ph:+64 9 358 5900 fax:+64 9 358 5901 [EMAIL PROTECTED] SmartCharge ... on every switch > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PRO

RE: [DUG]: New Control Display

1999-07-05 Thread Wes Edwards
lblNewLabel.Parent := bndDetail; ? Wes Edwards Quality Assurance Manager CommSoft Group Limited [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Tony Sinclair > Sent: Tuesday, 6 July 1999 10:55 > To: Multipl

RE: [DUG]: D4 and Win98

1999-05-20 Thread Wes Edwards
According to one of my colleages there is a setting to be added somewhere in win.ini to have Win98 adopt the Win95 behaviour for this. He can't remember what this is but knows it is on the borland FAQ somewhere. Any help? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PRO

RE: [DUG]: Control of Focus

1999-02-16 Thread Wes Edwards
You could also put some code in the OnEnter event of each of the edit boxes (one procedure linked to all OnEnter events). If this edit box isn't the right one then jump to the right one. You can then exit your combo box any way you like. Wes Edwards. > -Original Message