RE: [DUG]: Pocket Studio Trial
If you want to go on the cheap for Palm or CE stuff, Waba (http://www.wabasoft.com) is a very good alternative. Its small Java VM thats works for several different devices or platforms (including being able to deploy as web applets). Its GUI library is basic but very easy to use. We used it here to develop a couple of financial calculators. Its open source, and people have developed different versions and enhancements (better GUI components, more Java language device support, native code complication etc). -Original Message- From: James Sugrue [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:40 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: Pocket Studio Trial Alan, Like you I have been interested in the product. I downloaded an installed the demo and am quite impressed. Initial thoughts are that it would be a similar experience to Windows programmers using Delphi for the first time. The IDE is Delphi. I have been a palm developer in the past and coding in Codewarrior for Palm is much like coding in straight Win32 C, whereas Pocket Studio is very much like Delphi. Again, quite impressed. Haven't been able to try out a running app yet, as I don't have a Palm Rom at work to get the emulator going. Cheers -Original Message- From: Alan Rose [mailto:[EMAIL PROTECTED]] Sent: Thursday, 11 October 2001 12:04 To: Multiple recipients of list delphi Subject: RE: [DUG]: Pocket Studio Trial Yeah I have been watching these guys over the last few months and have been frequently getting their newsletters. Haven't done anything about it yet as I've been waiting for an excuse to use it. If you have tried the trial version I'd be keen to hear your comments and how well the install went. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of vss Sent: Thursday, October 11, 2001 10:01 AM To: Multiple recipients of list delphi Subject: [DUG]: Pocket Studio Trial Hi all. If any of you (other than myself) develop Palm apps. and want to use Delphi, or rather a Delphi-like tool, take a look at Pocket Studio. If you already have, they have NOW got a fully functional trail to download ! YAY. you can get it here :- http://pocket-technologies.com/trial.asp Jeremy Coulter --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Pascal / Delphi for Mac ????
Its not pascal, but maybe (Java || JBuilder) is an option? -Original Message- From: vss [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 10, 2001 2:52 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: Pascal / Delphi for Mac Well we have Virtual PC for the Mac's, BUT its quite exspensive..like about $500 I thinkwe need it for about 55 machinesso its not the BEST alternative. Jeremy Coulter -Original Message- From: Ross Levis [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Date: Wed, 10 Oct 2001 14:37:02 +1300 Subject: RE: [DUG]: Pascal / Delphi for Mac Maybe Kylix would work under Mac Linux. Ross. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of vss Sent: Wednesday, 10 October 2001 14:10 To: Multiple recipients of list delphi Subject: [DUG]: Pascal / Delphi for Mac HI. Does anyone know of a Delphi type app. for the Mac? Thanks, Jeremy Coulter -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: String Encryption routine
It might not be insecure if you use it in the right way, 1. Make sure your key is random 2. Make the key as long as the message 3. Never re-use the same key This will turn this cypher (a viginere with a feedback loop (?)) into a One-Time-Pad which is proven to be unbreakable. -Original Message- From: Phil Scadden [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 3:45 PM To: Multiple recipients of list delphi Subject: Re: [DUG]: String Encryption routine Um, unless I'm mistaken, this is a pretty basic cypher - are you after You said it! - but that was what he asked for. Definitely not suitable for large amounts of text or where clear text is guessable but certainly enough to put someone off when only a small text is available. I use SHA1 , MD5, Blowfish, IDEA, RC6 but they are markedly more complex and would assume he would have found them since readily available on net. -- Phil Scadden, Institute of Geological and Nuclear Sciences 41 Bell Rd South, PO Box 30368, Lower Hutt, New Zealand Ph +64 4 5704821, fax +64 4 5704603 --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: String Encryption routine
One of the strongest and simplest cyphers you can use is RC4 or ARC-4. It can be implemented in just a few dozen of lines in any programming language or you just find a component to do it. http://www.achtung.com/crypto/rc4.html See http://ciphersaber.gurus.com/ for a really interesting application of it. Kinda overkill for what your doing (you probably just want a simple component to one-way hash a password), but its kinda fun to implement. -Original Message- From: Ross Levis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 1:31 PM To: Multiple recipients of list delphi Subject: [DUG]: String Encryption routine Firstly, thanks to those who helped me find a Help authoring tool. I've searched the Net but not found some simple Delphi source to encrypt a string (based on a given key value). I've only found large component sets which are an overkill. I don't need strong encrytion but just something to deter most people from working it out. Anyone have any suggestions. Maybe I could create something myself but I've not had any experience in this area. Cheers, Ross. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: URL Link Checker
You could use the HTTP Component that comes with either the Indy (http://www.nevrona.com/indy/) or ICS (http://overbyte.alexid.fr/) libraries. Both provide properties or events that handle proxy (as well as www) authentication. Simply set up the required properties (such as proxy info), request the url using a synchronous call, then check the HTTP response code. The MS XML Parser contains two HTTP COM components as well which are very easy to use from Delphi i.e. http://support.microsoft.com/support/kb/articles/Q299/5/66.asp?SD=MSDNFR=0. The basic IXMLHTTPRequest object will auto-detect the proxy settings from IE (but doesnt always seem to work), while the ServerXMLHTTP object will need to manually configured with he proxy settings but is a lot more stable. -Original Message- From: C Fraser [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 10:19 AM To: Multiple recipients of list delphi Subject: [DUG]: URL Link Checker Hi all, I am trying to create a basic URL link checker... I have had some limited success... I can test the links on files in house and I would assume it would work if I was connected via dialup. But we use a proxy server to access the internet in the outside world. The proxy server requires me to logon. In FrontPage when I check the links (if I haven't logged onto the proxy yet) it pops up an error and then a logon dialog box. I can't find out how to do this in Delphi... I have tried a few of the internet API functions and done a scan on MSDN but haven't come up with anything... Just wondering if anyone has done this before or knows where I should head. Regards Colin ## Attention: The information in this email and in any attachments is confidential. If you are not the intended recipient then please do not distribute, copy or use this information. Please notify us immediately by return email and then delete the message from your computer. Any views or opinions presented are solely those of the author. ## --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: HTML Viewer
A couple of years ago I used a component from http://www.pbear.com/htmlviewers.html. Fairly basic, but its got exactly what you describe, and it compiles right into the exe since its a VCL component. I'd be curious to know if there was a better way to do this using IE. -Original Message- From: Neven MacEwan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 1:02 PM To: Multiple recipients of list delphi Subject: [DUG]: HTML Viewer Hi Did anyone com up with a simple HTML Viewer component (no JavaScript, just text and graphics) With the 'callbacks' when a link is selected TIA Neven This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: [OFF TOPIC] HTTP protocol
If your only interested in HTTP traffic, another way is to use a http proxy and have your web browser(s) connect to that. There is a very simple one written in delphi at http://17slon.com/gp/gp/tgphttpproxy.htm. -Original Message- From: Myles Penlington [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:43 PM To: Multiple recipients of list delphi Subject: RE: [DUG]: [OFF TOPIC] HTTP protocol You can install a different network stack for TCP/IP - or is it a monitor - that will give you a dump of all network traffic - you may need to download it from MS - we did have it here at one stage. -Original Message- From: Chris Reynolds [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 August 2001 4:28 p.m. To: Multiple recipients of list delphi Subject: [DUG]: [OFF TOPIC] HTTP protocol I am trying to get a detailed understanding of Browser caching. Can anyone suggest a way of tracking absolutely everything going into and out of a webserver. Any webserver will do for now. IIS, Apache, Tomcat, Resin. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Some ISAPI Questions...
I had the same problem a while back when i wrote an ISAPI DLL to execute proprietery scripts. I ended up using the SCRIPT_NAME server variable to find out the name of the script being called and then extract the path. ie /example/scriptname.jasp or if your calling the isapi dll directly /example/example.dll then i used the HSE_REQ_MAP_URL_TO_PATH server function to map the virtual url to a physical path i.e. function mapURLToPath (const ECB : PECB; const url : string) : string; var buffer : array [0..1023] of char; dwLen : DWORD; dwDataType : DWORD; begin result := ''; if length (url) sizeOf (buffer) then exit; fillChar (buffer, sizeOf (buffer), 0); strPCopy (@buffer, url); dwLen := sizeOf (buffer); dwDataType := 0; if ECB.ServerSupportFunction (ECB.ConnID, HSE_REQ_MAP_URL_TO_PATH, @buffer, @dwLen, @dwDataType) then result := buffer; end; It only works when a page is being requested. Seemed slightly messy but it was the only way i found. Wilfred. -Original Message- From: C Fraser [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 11:58 AM To: Multiple recipients of list delphi Subject: [DUG]: Some ISAPI Questions... Hi all, I just have some questions on building ISAPI dlls. First... I want to find the dir where my dll is running. The PathTranslated seems to return wrong information. From the documentation it looks like PathTranslated is what I want, but it doesn't work as expected. On the web server machine I have a Home directory as D:\Inetpub\wwwroot (not to sure what a home directory exactly means). I also have a virtual directory /Test which points to D:\InetPub\Test. My ISAPI ISAPITest.dll is located in D:\InetPub\Test\Scripts. From a web browser, I can go computername/Test/Scripts/ISAPITest.dll/Test and I get a path translated D:\Inetpub\Test which is correct, all fine and dandy. Then I go computername/Test/Scripts/ISAPITest.dll/Test2 and I get a path translated D:\Inetpub\wwwroot\Test2. So it seems if my URL path matches my directory path all seems to work. If my URL path does not match (which will usually be the case) I get the home directory coming in. To summarise... I am a bit confused! I just want to get the path to my dll in code so I can use this in the generated html scripts to make it easier to move the dll from server to server, directory to directory... I have other questions... But I shall try and solve this one first. Any help appreciated. Regards Colin ## Attention: The information in this email and in any attachments is confidential. If you are not the intended recipient then please do not distribute, copy or use this information. Please notify us immediately by return email and then delete the message from your computer. Any views or opinions presented are solely those of the author. ## --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: How to get the pixel in windows
Look at the TCanvas.pixels property. If your working with bitmaps (or if you can copy the canvas to a bitmap), using the TBitmap.scanline property to work with the raw bitmap color values is recommeded since it much faster. i.e. this (bad) example which assumes a 24bit bitmap function getColor (bitmap : TBitmap; x, y : integer) : TColor; var scanLine : PByteArray; r, g, b : cardinal; begin scanLine := bitmap.ScanLine [y]; r := scanLine [x * 3 + 0]; g := scanLine [x * 3 + 1]; b := scanLine [x * 3 + 2]; result := b shl 16 + g shl 8 + r; end; -Original Message- From: Dedy Darmayanto [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 12:25 PM To: Multiple recipients of list delphi Subject: [DUG]: How to get the pixel in windows Hi, Any body know, how to get the pixel in wondows like in DOS. Before using delphi, in pascal to get pixel used mem[$B800] what about in delphi regards, Dedy This e-mail message has been scanned and cleared by MailMarshal www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Microphone speakers
You could test the level of noise using the win32 waveIn* functions. I dont think there is a way of knowing for sure though, since no H/W actually tells the computer whehter a microphone is plugged in or not (???) -Original Message- From: João [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 12:44 PM To: Multiple recipients of list delphi Subject: [DUG]: Microphone speakers Hi all, Is there a way to know if there is a microphone or speakers plugged in the sound device ??? Thanks in advance Joao Alberto Licht Teixeira This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
[DUG]: TEdit Selection
Im trying to write some simple IntelliSense like functionality into my TEdit control. However, im having a little trouble fine-tuning the TEdit text selection. How do I select a block of text and then place the text cursor at the beginning without effecting the current selection? The code below doesnt work, edtName.SelStart := i; edtName.SelLength := length (edtName.text) - i; edtName.SelStart := i; Cheers, Wilfred. This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: ISAPI and Thread Safeness
Im pretty much a beginner when it comes to threads. However, from what i understand, ThreadList's lock unlock method prevent multiple write's to a list automatically. You will still have problems if you havnt locked the list while one thread is reading its contents, and the other thread is updating. Lots of delphi thread code that ive seen fix this by always locking a ThreadList before a read, but this seems ineffecient. In the ISAPI DLL i wrote, i used TMultiReadExclusiveWriteSynchronizer's to control all acess to shared resources. It lets multiple threads read an object/list as long as nothing is updating it. This worked pretty well, though i probably went overkill on all the locks. Wilfred. -Original Message- From: Colin Fraser [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 12:20 PM To: Multiple recipients of list delphi Subject: [DUG]: ISAPI and Thread Safeness Hi all... I am quite new to ISAPI apps and haven't really done much with treads either... How careful do I need to be in regards to ISAPI apps and treads... For example, if I want to use lots of code that currently uses TLists... do I need to change them all to TThreadLists. In actual fact, most of the TLists are in other objects, I have my own type of list object that uses a TList in behind the scenes... should I change those to TThreadLists, or create my own Critical Sections around the important parts?? Is there any performance hit for using TThreadLists instead of TLists, or Critical Sections for that matter?? Any info appreciated Regards Colin ## Attention: The information in this email and in any attachments is confidential. If you are not the intended recipient then please do not distribute, copy or use this information. Please notify us immediately by return email and then delete the message from your computer. Any views or opinions presented are solely those of the author. ## --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
RE: [DUG]: Simple Email
There are two kinds of mail components.Client based ones that workusing mail client (using MAPI or something like OutlookOLEAutomation), andserver based ones which use something like SMPT that talk directly to the mail server. Client based components usually have better integration with things like the address book plus they leave a history of all mail sent in the outbox. Server based ones are far simpler, dont require a mail client to be installed, or a user to be logged in, and their much faster and efficient. A common MAPI component for delphi ive seen is TEMail (http://www.econos.de/software/borland/index.html). Ive used this for a few apps here at gen-i without any problems. For the simple stuff you want to do, the FastNet TNMSMTP component is probably more then adequete. We use this here for a simple report generator mail-out program and it does the job just fine. For more advanced stuff like mail-merges for the marketing dept we use JMail which is pretty much the best and most popular SMTP mail component out there (http://www.dimac.net). -Original Message-From: Mark Howard [mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 2000 4:56 AMTo: Multiple recipients of list delphiSubject: [DUG]: Simple Email Hi I need to be able to generate from within my app a fixed format Email containing a subject line, no message, but with an attached text file. I'm using D5 Pro. Is this fraught with difficulties for the inexperienced? If not, can any one give me some simple pointers? What components are involved? What are the steps that have to be taken and in what order? What bits of information (communications) do I need? There doesn't seem to be any items in the Delphi documents that leap out and say "This is what you're looking for!" Maybe it's all hiding behind the Web jargon. Can anyone point me to an example? TVMIA Mark This e-mail message has been scanned and cleared by MailMarshal atwww.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal www.gen-i.co.nz
RE: [DUG]: Delphi 6
If Delphi where to support the .NET Common Language Runtime it would probably be a very cut-down version of delphi wouldnt it, because the CLR already provides much of the functionality that delphi does, including the actual development environment (???). My understanding is that different languages are essentially just plugins??? It even supports COBOL (involuntary shudder as i write that). -Original Message- From: Nic Wise [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 10:38 AM To: Multiple recipients of list delphi Subject: Re: [DUG]: Delphi 6 The Intermediate Language (i.e. Byte code) for the MS Common Language Run-time (i.e. the VM). But it's not at all modelled on Java, honest :-) Ah! Definatly havn't heard anything. Sorry. Either way, I dont know much about its .net support - nothing has been announced, for sure. I'd be suprised to see any .NET stuff in D6 - I'm not sure even Microsoft knows what .NET is really going to mean yet. Me too. Delphi 7 is another case tho - Borland have a history and commitment to support pretty much anything MS produces, so I'd say there would eventually be support in there - when and what, I dunno. N --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" _ This e-mail message has been scanned and cleared by MailMarshal at http://www.gen-i.co.nz _ ## This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz ## --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
RE: [DUG]: Simple Email
Host is the address of your mail server. UserId is the name of the login you use for the mail server. Typically the name of your network login account. ToAddress is a list of e-mail addresses you are sending this e-mail to. simple example : nmsmtp.ClearParameters; nmsmtp.PostMessage.body.clear; nmsmtp.PostMessage.Attachments.Clear; nmsmtp.UserId := 'wxv'; nmsmtp.Host := 'smtp.xtra.co.nz'; nmsmtp.PostMessage.Attachments.Add ('d:\temp\elle_macpherson.jpg'); nmsmtp.PostMessage.Body.Add ('Hello, World'); nmsmtp.PostMessage.FromAddress := '[EMAIL PROTECTED]'; nmsmtp.PostMessage.ToAddress.Add ('[EMAIL PROTECTED]); nmsmtp.PostMessage.Subject := 'nmsmtp example'; nmsmtp.connect; nmsmtp.sendmail; nmsmtp.disconnect; Like some other people mention, the component is fairly crap, and there is no source provided. But it ships with delphi and is the de facto standard. For a simple example like this, I doubt you would find any problems with it (we havnt). -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED]] Sent: Friday, December 08, 2000 12:23 PM To: Multiple recipients of list delphi Subject: Re: [DUG]: Simple Email OK Thanks to those who replied. Given that I am of Scottish ancestry (and my needs are very modest) I am going to try initially with the FREE stuff bundled with D5 ie TNMSMTP. I tried the option 1 described below and all I got was zillions of IE windows filling my screen - until I killed the process. Now - I've found a fairly detailed example of the use of the TNMSMTP component (above) in the Help system but have some questions. Host property - would this be, say "smtp.xtra.co.nz"? If not where should I look to find it (I'm using Outlook Express) UserID - what are they referring to here? Where do I look to find this? PostMessage.ToAddress.Text - I've just put in my own email address. The component should just need these 3 properties set to be able to establish a connection, but it bombs with a message saying "Null remote address". Any ideas? Mark - Original Message - From: Wilfred Verkley To: Multiple recipients of list delphi Sent: Wednesday, December 06, 2000 12:56 PM Subject: RE: [DUG]: Simple Email There are two kinds of mail components. Client based ones that work using mail client (using MAPI or something like Outlook OLE Automation), and server based ones which use something like SMPT that talk directly to the mail server. Client based components usually have better integration with things like the address book plus they leave a history of all mail sent in the outbox. Server based ones are far simpler, dont require a mail client to be installed, or a user to be logged in, and their much faster and efficient. A common MAPI component for delphi ive seen is TEMail (http://www.econos.de/software/borland/index.html). Ive used this for a few apps here at gen-i without any problems. For the simple stuff you want to do, the FastNet TNMSMTP component is probably more then adequete. We use this here for a simple report generator mail-out program and it does the job just fine. For more advanced stuff like mail-merges for the marketing dept we use JMail which is pretty much the best and most popular SMTP mail component out there (http://www.dimac.net). -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED]] Sent: Friday, December 08, 2000 4:56 AM To: Multiple recipients of list delphi Subject: [DUG]: Simple Email Hi I need to be able to generate from within my app a fixed format Email containing a subject line, no message, but with an attached text file. I'm using D5 Pro. Is this fraught with difficulties for the inexperienced? If not, can any one give me some simple pointers? What components are involved? What are the steps that have to be taken and in what order? What bits of information (communications) do I need? There doesn't seem to be any items in the Delphi documents that leap out and say "This is what you're looking for!" Maybe it's all hiding behind the Web jargon. Can anyone point me to an example? TVMIA Mark This e-mail message has been scanned and cleared by MailMarshal at www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal www.gen-i.co.nz This e-mail message has been scanned and cleared by MailMarshal at www.gen-i.co.nz ## This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz ## --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
RE: [DUG]: XML Parser
Is XML a little over hyped? I can't see it taking over the world. All I intend to use it for is program configuration files, without using windows' registry. (Go Kylix) Way overhyped IMHO. For communication protocols and non-database persistence its very good though. _ This e-mail message has been scanned and cleared by MailMarshal at http://www.gen-i.co.nz _ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
RE: [DUG]: Is Everyone dead or something ?
Delphi is dead, long live VB??? :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 22, 2000 4:16 AM To: Multiple recipients of list delphi Subject: [DUG]: Is Everyone dead or something ? Very few messages today ! someone should start a thread that is contriversial something like.Microsoft is the best company in the worldJUST an example. hehehehe Cheers, Jeremy Coulter --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" _ This e-mail message has been scanned and cleared by MailMarshal using McAfee VirusScan (Ver 4.x) at http://www.gen-i.co.nz _ _ This e-mail message has been scanned and cleared by MailMarshal at http://www.gen-i.co.nz _ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
RE: [DUG]: Kylix killer
Title: RE: [DUG]: Kylix killer Looks interesting, but its not a ASP language like ActivePerl, JScript, or VBScript. -Original Message- From: Leigh Wanstead [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 5:29 PM To: Multiple recipients of list delphi Subject: Re: [DUG]: Kylix killer Dear Alex, Is there any chance Borland will produce Delphi-script for ASPs ? Just check http://www.dwscript.com Best Regards Leigh - Original Message - From: Alex Kouznetsov [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 5:03 PM Subject: Re: [DUG]: Kylix killer Delphi may too, one day. Nothing confirmed tho, but Borland usually support everything MS does in windows - its pretty much always been the case. Is there any chance Borland will produce Delphi-script for ASPs ? Alex -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of unsubscribe delphi _ This e-mail message has been scanned and cleared by MailMarshal using McAfee VirusScan (Ver 4.x) at http://www.gen-i.co.nz _ This e-mail message has been scanned and cleared by MailMarshal at www.gen-i.co.nz
RE: [DUG]: Looking for a job in Wellington
Sometimes I wouldnt mind a "back" button for life in general :-) Good to know the delphi job market is still going strong. -Original Message- From: Leo Ramakers [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 27, 2000 10:22 AM To: Multiple recipients of list delphi Subject: Re: [DUG]: Looking for a job in Wellington With all these browser wars going on I would have thought that decent browsers (or even MSIE!) would have an 'unsend' button by now. Leo PS Steve - I passed your email on also. Kurt wrote: D'OH! Utmost apologies to all, especially Steve (although you may be interested in that I have passed (well, will be passing) this to my manager . No promises, as everything is crazy here at the moment), this was not intended for the list. Cheers, and in future I will _Check_ who I'm sending to. Kurt (don't hit send, don't hit send, don't hit send...). Kurt wrote: Ian, Are you still interested in this? Or should I pass it directly to Graeme now? Steve Rennell wrote: Hi all, My wife has just started a new job in Wellington, and I'm looking for work up there, moving from Christchurch and available from Early November. I've been working for Peter Hyde ([EMAIL PROTECTED]) at SPIS for the last 4 years, and he has said he is happy to be a referee if you'd like to contact him. I've been programming in Delphi on a wide range of projects, as well as all the other things that come up around the office, including NT admin and server monitoring. I'm happy to send a CV on request. Regards Steve Rennell BSc, CBC --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" ## This e-mail message has been scanned and cleared by MailMarshal using McAfee VirusScan (Ver 4.x) at http://www.gen-i.co.nz ## --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
RE: [DUG]: HTML client
If it was well-formed HTML, you could use an XML parser. The MS XML DOM also has an easy-to-use component to do HTTP gets and posts. Better yet would be if the web-site you are trawling the data from made the data available as XML. -Original Message- From: Nello Sestini [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 12:46 PM To: Multiple recipients of list delphi Subject: Re: [DUG]: HTML client Build an ISAPI filter (look it up in Delphi docs). 'Tis precisely what they're designed for ... Thanks - I have looked at this actually - and you're right it is the "hook" in the right place. But - what I was hoping to find was something with the machinery for parsing the "raw" HTML responses that the filter intercepts from the server.I can tweak them however I like - but I have to take the raw HTML apart myself. It is not rocket science to parse tags - but it is a pain and a wheel I'd rather not reinvent if there is an accepted way of doing it (other than rolling your own.) I would have thought that with all the web robots around that this sort of trick would have found it's way into a component somewhere. (the other problem with ISAPI-anything is marriage to an IIS server but could live with that if necessary) thanks again ns --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
[DUG]: Help
Hi all. Im having some trouble type-converting OleVariants (OleDeviants would probably be more correct). I have an OleVariant reference which i know points to a IStream object. How can I convert this to a variable of IStream? i.e. var ref1 : OleVariant; ref2 : IStream; begin ref2 := IStream (ref1); // doesnt work end; Thanks in advance, Wilfred. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
RE: [DUG]: Help
That did the trick. Thanks. -Original Message- From: Max Nilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 29, 2000 10:03 AM To: Multiple recipients of list delphi Subject: RE: [DUG]: Help Wilfred Verkley asked: Im having some trouble type-converting OleVariants (OleDeviants would probably be more correct). I have an OleVariant reference which i know points to a IStream object. How can I convert this to a variable of IStream? i.e. var ref1 : OleVariant; ref2 : IStream; begin ref2 := IStream (ref1); // doesnt work end; I've been there and suffered with this small section of Delphi. As far as I can make out from testing the only things that you can safely convert a Variant or OleVariant into are IUnknown and IDispatch, which are the interface types that variants can store. So the cleanest way to do what you want is something like: var ref1: OleVariant; unk1: IUnknown; ref2: IStream; begin unk1 := ref1;// clean convesion to IUnknown if Supports(unk1, IStream, ref2) then ; // Life is good else raise Exception.Create('Who passed me that stuff!'); end; you might even be able to get away with simply if Supports(ref1, IStream, ref2) then as the OleVariant should be cleanly converted into an IUnknown and then fired down into the Supports utility function. Cheers, Max. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
RE: [DUG]: Mail Component
If you dont mind using a COM component, there is a very good free SMTP email component at http://dimac.net/. Its used a lot on ASP pages, but is easily used by VB, delphi etc as well (400,000 programmers supposedly). It has a nice clean interface and has all the functionality you would ever need. One nice feature is the ability to send HTML mail. Wilfred. -Original Message- From: Eion McIntosh (CHCH) [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 8:11 AM To: Multiple recipients of list delphi Subject: RE: [DUG]: Mail Component Hi We use a component call TEmail. We found it works quite well and is very simple to use. We use it to send specifically formatted message to other staff members and have recently used to send out messages ,with attachments, outside the company. Works with Delphi and C++. It can be found on the Delphi Superpage. Just search for TEmail and you'll find it. Its also free. Eion McIntosh PPCS Ltd -Original Message- From: Neven MacEwan [SMTP:[EMAIL PROTECTED]] Sent: Friday, 25 August 2000 19:18 To: Multiple recipients of list delphi Subject: [DUG]: Mail Component Hi all Can anyone reommend a Mail Component (MAPI)? TIA Yes Max I know you've written one... Regards Neven N.K. MacEwan B.E. EE Ph 649 574 0027 Fax 649 570 2706 Mobile 025 749 062 [EMAIL PROTECTED] [EMAIL PROTECTED] -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: HTML Creation
A technique ive used is to write a very simple ISAPI DLL that sends the HTTP request to a separate application using a named pipe, receives the response, then closes the connection. This separate application is always running and can have multiple threads listening on that pipe to handle concurrent HTTP requests. The windows named pipe mechanism will automatically connect to a listening named pipe server that is "idle". The code isnt much different from ISAPI or CGI code, but the main advantage is that the application is in a separate process to IIS, and you can cache resources like database connections or query results. If you had an existing server-based application that was always up, you could incorporate it into that. Ive had to write a fair bit of extra code to achieve the same level of functionality as all the objects provided by ASP though. Query parsing, cookies, session management etc. Wilfred. -Original Message- From: Dennis Chuah [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 26 July 2000 10:03 To: Multiple recipients of list delphi Subject: RE: [DUG]: HTML Creation Eion, I would concur with Nic - dump the section of the book - forget CGI and use any one of the 3rd party tools. There are a couple that is not on Nic's list: Cold Fusion - written in Delphi, script like, now can call Delphi code. Probably THE favourite Delphi web tool. ASP Express - (its free, you pay if you want the source) written in Delphi, extension to ASP and lets you design forms using the IDE (Nice). Haven't used it in a production environment. My opinion on the other Delphi technologies: ASP - full of VB scripts that call COM objects, which you would write in Delphi. Good for simple low volume sites - need a lot of RAM if you have a lot of users. Has a number of known security holes, especially if you try to connect to ADO directly from vbscript. Possible to crash IIS from the COM objects. WebHub - still my preference. Written in Delphi (100%), script like and calls Delphi code. Supports many technologies, including ISAPI and CGI. Good separation of HTML from code. Your web application runs in a separate process space from IIS, so its not possible to crash it. Steep learning curve vendor not very stable right now. Free deployment license for smaller sites. ISAPI DLL - steer clear of this if possible. Your application runs in the same process space as IIS. It is a nightmare to debug, and if you get anything wrong, you stand a good chance of crashing IIS! Need to write multi-user, multi-threaded code. CGI - Very slow and resource intensive - every page request results in your app being started and stopped. Can result in huge number of instances of your application running at any one time. Basically, with the last 2 options, you have to do everything yourself - its like writing a windows app using purely WinAPI. Regards, Dennis. ps. Tell your VB contractors to start using a *REAL* language. -Original Message- Thanks for that. I only used CGI as it was the first example in the good and it recommended that this wasn't a good option to use anyway. We currently are using Delphi 4 professional. My real bone is that some contract developers we are currently are using are using VB and they really would want me to also. YUK!!! We currently has a delphi app which runs once each day and everything we need is in that so I DON'T want to rewrite in VB Eion -Original Message- From: Nic Wise [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, 25 July 2000 16:23 To: Multiple recipients of list delphi Subject:RE: [DUG]: HTML Creation We are just in the process of starting to look at how to creating web pages out of Delphi. We have a copy of Mastering Delphi by Marco Cantu with an sample program (see below) for creating as sample web page with the current time on the fly. Dude, dont waste your time with CGI - its not worth it. Here's good options if Delphi is a requirement (in _my_ order of preference, which is not other people's): ASP (Active Server Pages - microsoft.com? comes with IIS3,4,5 - need the enterprise version of Delphi 5 tho if you want to write com "objects" for it) WebHub - www.href.com WebModules (friendly ISAPI's - in Delphi 5 enterprise or upsell for about $450 or so on top of professional) ISAPI's (DLL's that link into IIS and a few other web servers. Very "raw".) And, if you dont require Delphi as a language: JSP (JavaServer Pages - my preference) Servlets PHP (ouch - oops, sorry Mark) etc. Just please, dont use CGI - its a development and performance nightmare! Nic. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --
[DUG]: ADO+
Has anyone seen this? http://msdn.microsoft.com/vstudio/nextgen/technology/adoplus.asp The interesting bit is that in Visual Studio you can now programmatically treat Tables as "objects". instead of : IF TotalCost Table("Customer").Column("AvailableCredit") you can now write it as : IF TotalCost Customer.AvailableCredit I wonder *how* the implemented this feature. Is it part of the VB language? or something more fundamental in COM itself? Could Delphi take advantage of it? Wilfred. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: quickie?
function loadStringFromFile (const filename : string) : string; var f : TFileStream; begin f := nil; try f := TFileStream.create (filename, fmOpenRead); setLength (result, f.size); f.read (PChar (result)^, f.size); finally f.free; end; end; :-) -Original Message- From: Matthew Comb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 20 June 2000 16:46 To: Multiple recipients of list delphi Subject: [DUG]: quickie? Chocolate fish to the first person who can tell me the correct way to get data from a filestream to a string ?? Cheers, Matt. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: So what do people think of the Corel/Inprise/Borland not thing?
I wish they would. Its a minor thing, but its nice to have a library of images for buttons, menu items etc. The images currently provided havnt changed since delphi 1.0. -Original Message- From: Dennis Chuah [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 17 May 2000 14:52 To: Multiple recipients of list delphi Subject: RE: [DUG]: So what do people think of the Corel/Inprise/Borland not thing? Darn, I was looking forward to 10 clip art and fonts with my next Delphi CD. Dennis. -Original Message- No comments so far. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
[DUG]: IXMLHttpRequest
Has anyone used this? Its a nice little component that lets you do an HTTP post of any streamable content (but primarily meant for XML documents). With Delphi 3.0, im getting a exception on the NT boxes at work on the "open" method, yet it works fine on my Win98 box at home. Im having no problems with VB. i.e. var r : IXMLHttpRequest; begin r := CoXMLHttpRequest.create; r.open ('POST', 'http://localhost/msxml/test.asp', false, 0, 0); r.send ('test'); memo1.lines.add (r.responseText); end; I realise the error is probably not specifically related to IXMLHttpRequest (why does VB work alright?), but does anyone know what I might me doing wrong in Delphi to get these errors? (Please help me find an answer so I dont have to use VB...) Thanks, Wilfred. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: IXMLHttpRequest
IXMLHttpRequest is part of the XML library that comes with IE 5, you can import the type library from system32/msxml.dll. The XML library is quite good, and ive had no troubles with it in Delphi except for this. CoXMLHttpRequest is the "factory class" (?) that is used to create instances of IXMLHttpRequest. Its inside the type library unit delphi automatically creates (MSXML_TLB.pas). VB has no problem with this component on NT, so it leads me to think its something Delphi (3.0?) specific. Thanks, Wilfred. -Original Message- From: Myles Penlington [mailto:[EMAIL PROTECTED]] Sent: Monday, 8 May 2000 11:52 To: Multiple recipients of list delphi Subject: RE: [DUG]: IXMLHttpRequest I maybe on the wrong track here .. Are you sure it is the Open and not the actual create?? I could not find a definition of "CoXMLHttpRequest" either in Delphi or on the MSDN site. But - what installs the "CoXMLHttpRequest"? Is it a special VB library call? -Original Message- From: Wilfred Verkley [SMTP:[EMAIL PROTECTED]] Sent: Monday, 8 May 2000 10:49 To: Multiple recipients of list delphi Subject: [DUG]: IXMLHttpRequest Has anyone used this? Its a nice little component that lets you do an HTTP post of any streamable content (but primarily meant for XML documents). With Delphi 3.0, im getting a exception on the NT boxes at work on the "open" method, yet it works fine on my Win98 box at home. Im having no problems with VB. i.e. var r : IXMLHttpRequest; begin r := CoXMLHttpRequest.create; r.open ('POST', 'http://localhost/msxml/test.asp', false, 0, 0); r.send ('test'); memo1.lines.add (r.responseText); end; I realise the error is probably not specifically related to IXMLHttpRequest (why does VB work alright?), but does anyone know what I might me doing wrong in Delphi to get these errors? (Please help me find an answer so I dont have to use VB...) Thanks, Wilfred. -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Sockets..
Most Delphi WinSock components will do these things, but have a look at ICS. It can do all these things, is free and well supported, and has a lot of examples. http://users.swing.be/francois.piette/icsuk.htm -Original Message- From: Matthew Comb [mailto:[EMAIL PROTECTED]] Sent: Monday, 8 May 2000 15:03 To: Multiple recipients of list delphi Subject: [DUG]: Sockets.. Hi people, just a follow up to my earlier post. What is the best connection method (set of components?) using TCP\IP (or not??) That can do the following. 1. send text in both directions. 2. send streams in both directions. 3. Maintain a connection and know when disconnected. Any help would be appreciated. Nic, your a bit of a wizz at this sort of stuff as I recall, Matt. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Active-x
I'd be thinking about either another delivery mechanism (custom APP that talks HTTP maybe, ala Virtual Spectator), or something like Flash or Director, which is a little more trust-worthy than ActiveX. Out of curiosity, has anyone ever deployed an Internet application with a simple telnet client, or some kind of terminal like X-Windows? --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Beautiful buttons
IMHO, keep the buttons but have keyboard shortcuts, and preferably also something on the menu bar if its not a dialog. MS usually follows this convention. -Original Message- From: Terry Johnson [mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 March 2000 10:07 To: Multiple recipients of list delphi Subject: [DUG]: Beautiful buttons I'm working on an application that is following a certain 'look'. Using the flat transparent flyover style buttons is nice because the cute graphic sits nicely on the background. However, these buttons can not be tabbed to, meaning that a mouseless or mouse hating user would not be able to use the app unless another mechanism was available, and that is messy. So, do I put up with the grey, and cover as much as possible with a glyph, or do I have any other alternatives? Cheers, Terry --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Timing less than 1ms
If your only testing, you could just repeat the test x times, and then divide the getTickCount interval by x. -Original Message- From: Matthew Comb [mailto:[EMAIL PROTECTED]] Sent: Friday, 10 March 2000 10:57 To: Multiple recipients of list delphi Subject: Re: [DUG]: Timing less than 1ms I believe gettickcount is not that accurate close to 50 milliseconds or something. Timegettime in mmsystem is far more accurate but still may not give you the accuracy that you need. Cheers, Matt. - Original Message - From: "Luke Pascoe" [EMAIL PROTECTED] To: "Multiple recipients of list delphi" [EMAIL PROTECTED] Sent: Friday, March 10, 2000 8:39 AM Subject: [DUG]: Timing less than 1ms I'm timing some disk access, and I need a division of time less than 1 millisecond (GetTickCount) Is there any way to do this? Luke Pascoe Programming Ihug -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: FAQ's etc??
Is there some resources available on the net to learn more about MTS, preferably Delphi MTS? Thanks, Wilfred. -Original Message- From: Max Renshaw-Fox [mailto:[EMAIL PROTECTED]] Sent: Thursday, 10 February 2000 20:30 To: Multiple recipients of list delphi Subject: RE: [DUG]: FAQ's etc?? In two words... Use MTS (otherwise you get serious hassles with transactions). MSSQL7 still uses DbLib, unless you use ADO which is a whole different learning curve. That means only one cursor per connection which means speed and transaction issues - or lots of code to do multiple sessions - and transaction hassles. MTS is surprisingly easy to do in Delphi (I mean really - really easy) and, unless you run it on Win95/8 there are no downsides I've come across yet. I'd still use another back-end tho'. Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On To: Multiple recipients of list delphi Subject: [DUG]: FAQ's etc?? G'Day All, Can someone point me in the direction of some FAQ's, Tips Tricks, Considerations when setting up MS-SQL7 to be accessed via Delphi 5 using the BDE? I know how to do the connection etc. I'm just looking for some real world experiences. TIA --Donovan Donovan J. Edye [www.edye.wattle.id.au] Namadgi Systems, Delphi Developer Web: www.namsys.com.au E-Mail: [EMAIL PROTECTED] Voice: +61 2 6285-3460 Fax: +61 2 6285-3459 TVisualBasic = Class(None); --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Server time
Hopefully Microsoft will have killed of UNIX by then :-) -Original Message- From: Matt Powell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 9 February 2000 12:54 To: Multiple recipients of list delphi Subject: Re: [DUG]: Server time Yep - Unix people are going to expect grief around 2036 (or 2048?). "2048 - the REAL Y2K..." - Matt ;) --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Inprise/Borland is merging with Corel, and will be called Corel f rom now on...
Is this a good thing? The benefits of Linux aside, I dont really like the Idea of Borland/Delphi losing its MS-Windows focus. -Original Message- From: Mark Vrankovich [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 8 February 2000 09:53 To: Multiple recipients of list DELphi Subject: [DUG]: Inprise/Borland is merging with Corel, and will be called Corel f rom now on... Goto http://www.borland.com/about/press/2000/inprise_corel.html for story. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Docs
MSDN covers much more material, but I prefer first searching the help files that come with Delphi any day. -Original Message- From: Myles Penlington [mailto:[EMAIL PROTECTED]] Sent: Friday, 17 December 1999 13:32 To: Multiple recipients of list delphi Subject: RE: [DUG]: Docs Probably better using the MSDN online search, as the Windows SDK help file as supplied with Delpi does not cover the messages for the Common Controls eg TListView etc. Welcome to the lost world of MS -Windoze programming ... -Original Message- From: Matt Powell [SMTP:[EMAIL PROTECTED]] Sent: Friday, 17 December 1999 10:45 To: Multiple recipients of list delphi Subject: Re: [DUG]: Docs I don't want to cause a 'virtual riot' but can some-one recommend a book/help file for all the Window/Delphi Messages The Windows SDK help file? It comes with Delphi... - Matt -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: DirectX / OpenGL....
Its been a while since ive done this stuff, but IMHO, OpenGL is still a better API then DirectX, and there is a lot of 3rd party support for it. Go DirectX if you want to get good integration with windows. Direct3D *is* supported on NT4 but only up to DirectX 3. Here are some links: Delphi Graphics Page: http://www.delphi-jedi.org/DelphiGraphics/jedi-index.htm (good starting point for delphi graphics stuff in general). Mike Lischke's Home Page: http://www.lischke-online.de/ (author of GLScene, a really good Delphi OpenGL toolset). DelphiX: http://www.ingjapan.ne.jp/hori/index-e.html (some *very* good DirectX components for Delphi) SignSoft: http://www.signsoft.com/ (more Delphi OpenGL components, kinda like GLScene). Wilfred. -Original Message- From: Donovan J. Edye [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 December 1999 10:29 To: Multiple recipients of list delphi Subject: [DUG]: DirectX / OpenGL G'Day All, Once again this is an information finder / understanding request. These are the params: - I am not a grahics person - I am looking to do some 3D drawing etc with texture mapping, animations etc. Which is the best path OpenGL or DirectX?? I am basically looking for some components that will do most of the hard stuff for me. I see that there are some comps called DelphiX which appear to be highly regarded. I am questioning though whether DirectX is the correct way to go aside from it being a M$ centric technology only. Any FAQs (Explaining the difference between Dx OGL), pointers, advice etc. would be appreciated --Donovan Donovan J. Edye [www.edye.wattle.id.au] Namadgi Systems, Delphi Developer Web: www.namsys.com.au E-Mail: [EMAIL PROTECTED] Voice: +61 2 6285-3460 Fax: +61 2 6285-3459 TVisualBasic = Class(None); --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Problems with TImage.
Try using a consistent palette for all your bitmaps which includes the standard 16 window system colors. I personally like Paint Shop Pro for fiddling with images to get them to work best in 256 color mode. -Original Message- From: Stacey Verner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 10 November 1999 13:40 To: Multiple recipients of list delphi Subject: [DUG]: Problems with TImage. We have some images which display fine in 16bit or higher colour modes, but if I use 256 color mode the images seem to be displayed using the base 16 colours of windows. The images contains gradients of red, green and blue seperately. I have saved the images using 256 colours and also using 16 shades of blue, but still no luck. Any tips? Stacey Verner Ph: +64-9-4154790 Software DeveloperFax: +64-9-4154791 CJN Technologies Ltd. Email: [EMAIL PROTECTED] PO Box 302-278, North Harbour, Auckland, New Zealand 12 Piermark Drive, North Harbour Estate, Auckland, NZ Visit our website at http://www.cjntech.co.nz/ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Scripting??
There is a very nice delphi example on how to use the Microsoft scripting component on the delphi super page. The file is called awscript.zip Wilfred. -Original Message- From: Donovan J. Edye [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 3 November 1999 13:34 To: Multiple recipients of list delphi Subject: [DUG]: Scripting?? G'Day All, We would like to: 1) Add scripting to our own programs (C++ Delphi) 2) Script other applications such as Photoshop Can someone point me in the direction of some info, FAQ's etc.? Is M$ Scripting Host the way to go?? TIA --Donovan Donovan J. Edye [www.edye.wattle.id.au] Namadgi Systems, Delphi Developer Web: www.namsys.com.au E-Mail: [EMAIL PROTECTED] Voice: +61 2 6285-3460 Fax: +61 2 6285-3459 TVisualBasic = Class(None); --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: TStatusBar problem
Out of curiousity, what is that "skins" component? -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 26 October 1999 19:38 To: Multiple recipients of list delphi Subject: RE: [DUG]: TStatusBar problem will not be fixed by Borland. Hopefully changing to standard panels will sort the problem out. Right, that answers that then, it is likely the component you are using. I have not had problems with hints until I started using a rather good 'Skins' Component. If I do a project without it, then the hints return. I suspect if you try another project without the offending panel the same will occur esp since ur using D3. Al+ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Colour Problem
From memory TColor=longint It stores a color in BGR format (ie $FF=blue, $00FF00=green, $FF=red), where each color component is one byte, with the extra high-order byte holding information about the system color it represents (?). A word, being only 16-bit aint enough to hold a TColor constant. Your example of $ is green and red mixed together making yellow. Wilfred. -Original Message- From: Coulter, Jeremy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 October 1999 14:12 To: Multiple recipients of list delphi Subject: [DUG]: Colour Problem Hi all.well now I have established the list IS still working..lastnight I was doing some stuff with colours I found that if I tried to set a variable with clWhite, I got a constant out of range error. The variable is of type WORD, dould I change this to longint instead ?? Also, if I set the colour and saved it to the variable with $ (I think it was) it always defaulted to Yellow ! BUt is my suspission about using a longint rather than a word founded ?? Thanks, Jeremy Coulter Application Developer Application Development Centre Compaq Computer New Zealand Ltd. Phone: 64 3 371 5724 Fax:64 3 371 5724 Mobile: 64 0212533214 E-mail: [EMAIL PROTECTED] Personal Email: [EMAIL PROTECTED] --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
[DUG]: Browsing for files
Hi Is there any way to show a win32 file folder as a control in delphi 3(+)? Sort of like the old TFileListBox (but nicer). I need to be able browse for files from within my form, rather then using the common file open dialog. Thanks, .-- Wilfred Verkley Software Developer Software Development Wang NZ Ltd DDI 9-3087788 Fax 9-3064600 Email [EMAIL PROTECTED] --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: URL links
Most apps or components where ive seen it done, its something like this: shellExecute (0, 'open', 'mailto:[EMAIL PROTECTED]?Subject=App%20Version%20Bug', '', '', SW_SHOW); -Original Message- From: Derricutt, Mark [mailto:[EMAIL PROTECTED]] Sent: Monday, 18 October 1999 11:59 To: Multiple recipients of list delphi Subject: [DUG]: URL links Whats the easist way to run a URL from within Delphi? I want to add a "submit bug" command to my app that runs a URL like , should I use something like CreateProcess to do this (I've never understood CreateProcess anyway). -- Mark Derricutt, He that brings forth electronic life. Getting jiggy with Mullmuzzler - Keep It To Yourself --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: URL links
Sorry, should have said to include "shellapi.pas". -Original Message- From: Mark Derricutt [mailto:[EMAIL PROTECTED]] Sent: Monday, 18 October 1999 12:29 To: Multiple recipients of list delphi Subject: RE: [DUG]: URL links On Mon, 18 Oct 1999, Wilfred Verkley wrote: shellExecute (0, 'open', 'mailto:[EMAIL PROTECTED]?Subject=App%20Version%20Bug', '', '', SW_SHOW); Thanks, mmm, delphi's complaining shellExecute is an unknown identifier :( --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Hard drive serial Number
GetVolumeInformation, in win32.hlp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 31 August 1999 09:33 To: Multiple recipients of list delphi Subject: [DUG]: Hard drive serial Number Anyone know off the top of there head the function for getting the hard drive serial number of a win9x computer? James --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Hard drive serial Number
HD Serial numbers arnt always unique I think. Batches of hard-drives may have the same number, you may discover this when you buy a batch of computers from a supplier. This caused problems with a copy-protection scheme I developed once. One registration key would work on several machines. -Original Message- From: Matthew Comb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 31 August 1999 10:36 To: Multiple recipients of list delphi Subject: Re: [DUG]: Hard drive serial Number Just as an add to the HD Serial topic. I used this with great success in making sure that our software was only run on our machines. I doctored around with the serial number and recorded it in the registry and then when the software runs I ran the same algorithm and compared it to the value in the registry, Shutting the machine down if it was not the same value. The only problem I came across was that I found one machine with a hard disk that had a hyphen '-' in the serial number and thus was not reported as an integer - screwed my algorithm up (Very sloppy programming). Just thought you might want to be aware of this. Matt. - Original Message - From: Chris Crowe [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Tuesday, August 31, 1999 10:20 AM Subject: RE: [DUG]: Hard drive serial Number function GetHDSerialNumber: LongInt; {$IFDEF WIN32} var pdw : pDWord; mc, fl : dword; {$ENDIF} begin {$IfDef WIN32} New(pdw); GetVolumeInformation(nil,nil,0,pdw,mc,fl,nil,0); Result := pdw^; dispose(pdw); {$ELSE} Result := GetWinFlags; {$ENDIF} end; Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, August 31, 1999 9:33 AM To: Multiple recipients of list delphi Subject: [DUG]: Hard drive serial Number Anyone know off the top of there head the function for getting the hard drive serial number of a win9x computer? James -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz -- - New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Wordwraping in TStringGrid
You could use a DrawGrid instead and the win32 api call DrawText. From win32.hlp: "The DrawText function draws formatted text in the specified rectangle. It formats the text according to the specified method (expanding tabs, justifying characters, breaking lines, and so forth). " Wilfred. -Original Message- From: gajo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 17 August 1999 15:00 To: Multiple recipients of list delphi Subject: [DUG]: Wordwraping in TStringGrid Hi there! I have a StringGrid with about 150 cells. The editing and all work fine, but how can I make the text wrap when it reaches the cell border? I could replace those 150 cells with TMemos, but that would take too much time and space. I have also checked the DSP page and couldn't find a component that can do this. So, is there a way to wrap text inside the TStringGrid's cells? Gajo Csaba --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: TCP/IP Socket messages
One of the easiest ways ive found out to do it is just to have a TStringList as an communication input buffer. This will automatically parse the CrLf separators in the incoming text. i.e. OnCSocketDataAvailable ... buffer.text := buffer.text + incomingStr; while (buffer.count 1) or (copy (buffer.text, length (buffer.text) - 1, 2) = #10#13) then begin processMessage (buffer.items [0]); buffer.delete (0); end; I hope thats what you mean :-) Or else use UDP, which ensures each bit of information you send is in its own packet. This has its own problems though... Wilfred. -Original Message- From: Steven Wild [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 10 August 1999 13:23 To: Multiple recipients of list delphi Subject: RE: [DUG]: TCP/IP Socket messages The way to get around your problem is to put your messages into your own 'packets'. This means you start each message with a byte or two which determine the size of the message. When you receive a message you can read this, then wait for the right size to be imported into your buffer. Then you extract the right size of data, and process it. There may be some data in the buffer - which is the start of the next message. Hope this helps. -- I should have mentioned in my original email that we are using text based messages from TClientSocket / TServerSocket i.e CSocket.SendText('This is my text'); Rob Steven Wild Director Wild Software Ltd P O Box 33-216 Christchurch, NZ Ph Fax 64 3 377-0495 ___ Chreos Business Systems ___ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Getting the actual filename
Thanks. I did search the help, and I tried both extractFilePath extractFilename but they dont remove the '..' from the path. expandFilename works perfectly. -Original Message- From: Chris Crowe [mailto:[EMAIL PROTECTED]] Sent: Monday, 2 August 1999 22:36 To: Multiple recipients of list delphi Subject: RE: [DUG]: Getting the actual filename ExpandFilename() Comes to mind.. ExpandFileName returns the full path of Filename. Unit SysUtils Category file name utilities function ExpandFileName(const FileName: string): string; Description The ExpandFileName function converts the relative file name into a fully qualified path name by merging in the current drive and directory. A fully qualified path name includes the drive letter and any directory and subdirectories in addition to the file name and extension. ExpandFileName does not verify that the resulting fully qualified path name refers to an existing file, or even that the resulting path exists. Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Wilfred Verkley Sent: Monday, August 02, 1999 5:12 PM To: Multiple recipients of list delphi Subject: [DUG]: Getting the actual filename Heya, I want to check whether a file name is "under" a certain directory. i.e. is "c:\data\templates\file.txt" under the "c:\data\templates" directory? I would just use a simple string compare however the problem is the user can type in a name like this as well: "c:\data\templates\..\..\topsecret\file.txt" Is there an existing function to resolve the actual filename or path? Thank you, Wilfred. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
[DUG]: Getting the actual filename
Heya, I want to check whether a file name is "under" a certain directory. i.e. is "c:\data\templates\file.txt" under the "c:\data\templates" directory? I would just use a simple string compare however the problem is the user can type in a name like this as well: "c:\data\templates\..\..\topsecret\file.txt" Is there an existing function to resolve the actual filename or path? Thank you, Wilfred. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Open GL question
This is completely of the top of my head, but I think you want to get a hold of the transformation matrix used to map the 3D co-ordinates onto the screen. Use this yourself to transform your own 3d points to test them. Have you got the red and blue books? They are excellent for learning OpenGL. There are a couple of good OpenGL resources for OpenGL on the net too - Look up the delphi graphics page, http://www.delphi-jedi.org/DelphiGraphics/jedi-index.htm - GLScene by Mike Lischke is an excellent delphi object wrapper over OpenGL, http://www.mind-link.com/glscene/ . I learnt a lot from that. - And of course, the official home page, http://www.opengl.org - There's some good tutorials on the MSDN as well. Enjoy, Wilfred. -Original Message- From: Colin Fraser [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 6 July 1999 11:18 To: Multiple recipients of list delphi Subject: [DUG]: Open GL question Hi all, I am just playing round (a little) with open GL. One thing that I can't find out how to do is to get a 2D co-ordinate (in pixels of the window client area) of a point in 3D space. I want to know this so that I can tell when an object flies off my window. Anyone have any ideas or pointers?? Regards Colin Fraser --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: Open GL question
Sorry, "Opengl Programming Guide : The Official Guide to Learning Opengl, Version 1.1" "Opengl Reference Manual : The Official Reference Document for Opengl, Release 1" Called the "red" and "blue" books respectively. -Original Message- From: Nahum Wild [mailto:[EMAIL PROTECTED]] Sent: Thursday, 8 July 1999 11:40 To: Multiple recipients of list Delphi Subject: RE: [DUG]: Open GL question There also could be relavent information here - http://cg.cs.tu-berlin.de/~ki/engines.html This is a list of 3D engines sorted into lots of categories including a "Written in/for Source" section with a Delphi entry under it. Maybe someone elses 3D engine written in Delphi, source provided, does what you want??? Wilfred, what are the "red and blue books"? Nahum SwichTec Power Systems Christchurch. -Original Message- From: Wilfred Verkley [mailto:[EMAIL PROTECTED]] Sent: Thursday, 8 July 1999 11:18 To: Multiple recipients of list Delphi Subject: RE: [DUG]: Open GL question This is completely of the top of my head, but I think you want to get a hold of the transformation matrix used to map the 3D co-ordinates onto the screen. Use this yourself to transform your own 3d points to test them. Have you got the red and blue books? They are excellent for learning OpenGL. There are a couple of good OpenGL resources for OpenGL on the net too - Look up the delphi graphics page, http://www.delphi-jedi.org/DelphiGraphics/jedi-index.htm - GLScene by Mike Lischke is an excellent delphi object wrapper over OpenGL, http://www.mind-link.com/glscene/ . I learnt a lot from that. - And of course, the official home page, http://www.opengl.org - There's some good tutorials on the MSDN as well. Enjoy, Wilfred. -Original Message- From: Colin Fraser [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 6 July 1999 11:18 To: Multiple recipients of list delphi Subject: [DUG]: Open GL question Hi all, I am just playing round (a little) with open GL. One thing that I can't find out how to do is to get a 2D co-ordinate (in pixels of the window client area) of a point in 3D space. I want to know this so that I can tell when an object flies off my window. Anyone have any ideas or pointers?? Regards Colin Fraser --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
RE: [DUG]: End of the world as we know it.
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: [DUG]: End of the world as we know it. 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 - --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
[DUG]: Borland Visual Solutions Pack
Does anyone know what the QueBuilderFrm and QueCardFrm units did in the Borland Visual Solutions Pack for Delphi 1.0? What could we use to replace it in later versions of Delphi? Thanks in advance, Wilfred. --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
[DUG]: Year 2000
Hi Guys, Im going to have to check a delphi 1 application for year 2000 compatibility. What kind information or resources are there available for this? Has anyone done similar work? Thank you, .-- Wilfred Verkley Software Developer Software Development Wang NZ Ltd DDI 9-3087788 Fax 9-3064600 Email [EMAIL PROTECTED] --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
[DUG]: Unicode parameters
I have a photo processing ActiveX component (PhotoPro Gold by pegasus) which has a method called "loadBlob" which takes a unicode string containing a picture and displays it. Here is the signature: procedure TPhotoProGold.LoadBlob(var pBlobData: WideString; BlobSize: Integer); Here is the VB code that works. Dim BlobSize As Long Dim ReadData As String BlobSize = Data1.Recordset(DBField$).FieldSize() If (BlobSize 0) Then ReadData = Data1.Recordset(DBField$).GetChunk(0, BlobSize) Photo1.LoadBlob ReadData, BlobSize ' End If My question is, how do i do this in either Delphi? I have a pointer to the picture in memory. How do I convert this to a valid unicode string to pass it as a parameter to the loadBlob method on the PhotoProGold component? Ive tried the various string conversion functions but I didn't get any to work. I think in VB this conversion is automatic? Merry Xmas, .-- Wilfred Verkley Software Developer Software Development Wang NZ Ltd DDI 9-3087788 Fax 9-3064600 Email [EMAIL PROTECTED] --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
[DUG]: Detecting a Windows Shutdown
This question may have been asked before but... Does anyone know how to detect if windows is shutting down? I want to display a warning/confirmation message when the user shuts down a specific application, but not have this message displayed when windows itself is being shut down. Cheers, .-- Wilfred Verkley Software Developer Software Development Wang NZ Ltd DDI 9-3087788 Fax 9-3064600 Email [EMAIL PROTECTED] --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz