Re: Program files dir

2005-04-25 Thread Francois Piette
the path to program files is in the environment variable 'ProgramFiles' and you can get the value by using the function GetEnvironmentVariable I don't think it's the right way to get this information. Special folders doesn't have the same name in all languages. Better to use

Re: Program files dir

2005-04-26 Thread Francois Piette
I agree with the first part Francois but I don't see how SHGetSpecialFolderLocation returns the ProgramFiles Dir. What CSIDL_ constant is that? CSIDL_PROGRAMS is not it. Maybe there are some new constants that my help doesn't show. The doc is at:

Re: delphi-java

2005-04-30 Thread Francois PIETTE
i have to developpe a network application with a delphi server application and a java client communication with it can some one send me a sample of a java-delphi communication ? You can use TCP/IP and sockets in both Java and Delphi. For Delphi, you can use TWSocket and TWSocketServer

Re: socket problem

2005-05-05 Thread Francois Piette
I create a socket in my source code : ServerSocket1: TServerSocket; but when i compile or save he tell me that there is no correspondent component and when i execute and try to create a server socket: ServerSocket1.Port := 90; he show me this message : violation access at the adress

Re: How to fetch environment variables correctly

2005-05-10 Thread Francois Piette
I use this code: {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} {* Get environment variable value. Just a wrapper around Win32 API *} function GetEnv(const Name : String; var Value : String) : Integer; var Buffer : array [0..1023] of char; begin

Re: How to fetch environment variables correctly

2005-05-11 Thread Francois Piette
How can I get all environment variables reliable? I need to store them temporarily and pass them later on as environment block to CreateProcess(). Is it save to call GetEnvironmentVariable() on each returned name? Why not use Windows API function GetEnvironmentStrings ? It returns a pointer

Re: socket

2005-05-11 Thread Francois Piette
but i'm blocked my javacode And what is your problem/question ? -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: Barhouf [EMAIL PROTECTED] To: Borland's Delphi

Re: How to fetch environment variables correctly

2005-05-11 Thread Francois Piette
Please see my previous post, I use it but.. obviously you have to check the result, because on my system it randomly returns one item that is not a valid name/value pair i.e. =::=::\. You have not shown your code. The environment string is terminated by a double-nul byte. Here is another code

Re: socket

2005-05-13 Thread Francois Piette
My question is: I found a way to send an object/structure(serializable) with socket in java and now I want a technic to receive this object with socket in a delphi application javacode: Socket s = new Socket(localhost,2002); OutputStream os = s.getOutputStream(); ObjectOutputStream oos =

Re: java type

2005-05-13 Thread Francois Piette
hi I send data from a java application to a dlphi one using sockets, but when I send a string for example '3' delphi read it '3'#$D#$A It means that you Java code send a line (that is append a CR/LF pair [#13#10 is CR/LF] to the data you gave). and when i print it on a TEdit it show me

Re: java type

2005-05-15 Thread Francois PIETTE
a myriad of ways achieving the same goal... -- [EMAIL PROTECTED] The author for the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be --- Francois Piette [EMAIL PROTECTED] a écrit: hi I send data from a java application

Re: Sending email

2005-07-27 Thread Francois Piette
Recently I fall into an urgent need for adding a send mail button to one of my applications for sending some reports to a predefined set of email addresses. Does any1 has any experience about how this can b done? You can use a SMTP component such as the one you can find in ICS. ICS is

Re: Delphi Apps Memory usage

2005-08-11 Thread Francois Piette
A Delphi application with only one form and nothing else takes 6MB memory if it's compiled with Delphi 2005, or 3.6MB if compiled with Delphi 5. That's very big for an application that does nothing. On my system, such an application takes 1988KB/472KB and 336/472KB after minimize. The first

Re: HTML Bandwidth Limitations

2005-10-05 Thread Francois Piette
Is there any component or delphi program to download files (http or ftp) and controling bandwidth!? So I could measure and limit transfering data from and to internet?!... Yes, ICS HTTP client component has a bandwidth limitation feature. You can download full source code from

Re: HTML serving

2005-10-05 Thread Francois PIETTE
I have seen some nifty apps that have a web server built in so that they can be configured from a distance. I would like to program such an application, can anyone give me a clue where to start? Easy ! Use HTTP server component in your application. There is one in ICS. Download full source

TStringGrid and Keyboard

2005-10-19 Thread Francois Piette
The situation: I have a TFrame with a TStringGrid and a TBitBtn. TBitBtn has an accelerator key (Let's say it is 'A'). TStringGrid has those options: goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goColSizing, goColMoving and goRowSelect. Note that goEditing is not

Re: TStringGrid and Keyboard

2005-10-20 Thread Francois PIETTE
PROTECTED] On Behalf Of Francois Piette Sent: Wednesday, October 19, 2005 1:55 AM To: delphi@elists.org Subject: TStringGrid and Keyboard The situation: I have a TFrame with a TStringGrid and a TBitBtn. TBitBtn has an accelerator key (Let's say it is 'A'). TStringGrid has those options

Re: getting application handle form exe file name

2005-10-25 Thread Francois PIETTE
Suppose I started 2 times notepad.exe on my computer. How can I get the handle of those two applications (knowing only the exe name) without using findwindow to search for the main window caption ? Use CreateToolHelp32Snapshot, Process32First and Process32Next (unit TLHelp32) to iterate thru

Re: catching TForm Paint message

2005-11-02 Thread Francois PIETTE
How can I temporarly catch the Windows PAINT message for a TForm? I want to suppress any painting before rearranging panels and splitters in the form, because otherwise the transition is not smooth. Use LockWindowUpdate API function. Grenoble, France, Europe Pour un francophone, il y a une

Re: Mail Clients Authentication

2005-11-13 Thread Francois PIETTE
I'm trying to make an e-mail client. Thanks to Rainer, and others on this list, I've got a better sense of authentication. Some servers require authentication, others do not. I guess this is something often dealt with as a user setting--when setting up an e-mail program, the user enters

RE: Delphi calling webserver using HTTP

2005-11-22 Thread Francois Piette
All I want to do is to call the webserver with some parameters and then let it execute and after a while return some data. Is there any standardcomponents in Delphi that I can use or is there any 3rd part components that is better? You can use any HTTP client component. For example Indy or

Re: TCollection in component problem

2005-11-24 Thread Francois Piette
A component has two properties of type TCollection, ACollection and BCollection. In BCollectionItem I want a property of type ACollectionItem selectable in the property editor interactively. Is this possible? If yes how? You have to write a custom property editor because TCollection is not a

Re: any OpenSSL compatible implementations?

2006-02-10 Thread Francois Piette
I need to use public key encryption between a client written in Delphi and a server written in C/C++ on Linux. RSA becomes the natural choice. I only find one open source implementation of RSA for Delphi, which is TurboPower's LockBox. The server side uses OpenSSL. The problem is, for some

Re: any OpenSSL compatible implementations?

2006-02-11 Thread Francois PIETTE
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francois Piette Sent: Friday, February 10, 2006 2:49 AM To: Borland's Delphi Discussion List Subject: Re: any OpenSSL compatible implementations? I need to use public key encryption between a client written

Printing with TWebBrowser and embedded Word document

2006-02-23 Thread Francois Piette
I have a Delphi application which use a TWebBrowser component (IE). This component is used to navigate to a web page which contains a frameset. One of the frames display a Word document loaded into a Word instance loaded by IE into that frame. I want to print (or open Word print dialog) the

[BDS2006] Changing default font in VCL forms designer

2006-02-25 Thread Francois Piette
The defualt font in the VCL designer is tahoma. I would like to have arial or something else. I don't see any configuration parameter for that. Any idea ? -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite,

[ICS] New V5 beta available

2006-03-10 Thread Francois Piette
There is a new ICS-V5-BETA version available for download at http://www.overbyte.be. As usual it is freeware and include full source code. The main change is the support for basic and digest authentication methods in the HTTP server component. WebServ demo has been updated to demonstrate this

DICOM upper level protocol

2006-04-24 Thread Francois Piette
Im' looking for a Delphi implementation of the DICOM Upper Layer Protocol. There are some source code C/C++ implementation (for example this http://www.xs4all.nl/~ingenium/dicom.html and this http://www.codeproject.com/internet/dicom_server_1.asp) and before translating those to Delphi, I want to

Re: Telnet, Indy9, text file conversion;

2006-07-31 Thread Francois Piette
Also, I was wondering, could I use a Telnet component in my Delphi App. to directly access the 4001 port and pull the data directly into my database. You can use ICS, Indy or Sinapse telnet component to do that. ICS also has a TTnScript component which is some kind of basic scripting which

Re: Drag and drop files with IE

2006-08-30 Thread Francois Piette
I want to write a web application using Delphi at server side and IE at client side. Ideally the client should be able to drag and drop files onto a HTML form opened in IE. Dropping a file on an IE form make IE open that file. That's not what I want to do. I want to have a file input

Re: Advice on Closing TtcpClient

2006-10-21 Thread Francois PIETTE
suggesting I look elsewhere for an equivalent which works - any suggestions? ICS - Internet Component Suite. Freeware with full source code. Download from http://www.overbyte.be Works with all Delphi versions. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL

Which languages are you working in ?

2006-11-01 Thread Francois PIETTE
At the bottom of the page: http://www.codeproject.com/ I selected Delphi of course ! -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be ___ Delphi mailing list - Delphi@elists.org

Re: Help on ICS's HTTP client component

2006-11-09 Thread Francois Piette
This message is a re-post of a message sent to the delphi-talk list. You should really post your message to ICS support mailing list (twsocket@elists.org). Of course you must first subscribe to the list ! Please goto http://www.elists.org/mailman/listinfo/twsocket. I'm having some trouble

Re: It will .Net eat other languages?

2006-11-09 Thread Francois Piette
Is time for me to drop Delphi and start learning that .Net stuff? You can write .net application using Delphi today ! You don't need to abandon Delphi to write .NET applications. Just continue to use Delphi ! btw: Reading your post, I think you are confusing .net with a language (C# ?). But

Re: Re[2]: Which languages are you working in ?

2006-11-11 Thread Francois PIETTE
Robert, I think you missed the fact that this advertisement is a very very old one ! It was taken for Borland Developer Conference in 1995. All BDC started with some kind of funny video clip. It is there only for kidding. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message -

Re: Visibility and Scope

2006-12-31 Thread Francois Piette
Use an include file containing the definition for the enum. You'll then have two definition for the enum. You'll probably have to cast one into the other. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite,

Re: Secure FTP in Delphi 6.0

2007-01-21 Thread Francois Piette
Does anyone know of a SFTP component for Delphi 6.0? Do you need SFTP or FTPS ? SFTP is FTP over SSH. FTPS is FTP over SSL. SSH is a terminal emulation protocol which is sometimes used for tunnelling other applications such as FTP. SSL is the Secure Socket Layer (Also known as TLS) which is a

Runtime package version

2007-02-01 Thread Francois Piette
I have a D7 program using runtime packages (rtl70 and vcl70). Is there a way to programmatically know which file is actually loaded and get his version info resource ? This is to solve a problem when an old and a new rtl70/vcl70 versions exists on a given system (D7/SP1 doesn't like to work with

Re: Runtime package version

2007-02-04 Thread Francois PIETTE
I have a D7 program using runtime packages (rtl70 and vcl70). Is there a way to programmatically know which file is actually loaded and get his version info resource ? This is to solve a problem when an old and a new rtl70/vcl70 versions exists on a given system (D7/SP1 doesn't like to work

Re: Runtime package version

2007-02-04 Thread Francois PIETTE
I have a D7 program using runtime packages (rtl70 and vcl70). Is there a way to programmatically know which file is actually loaded and get his version info resource ? This is to solve a problem when an old and a new rtl70/vcl70 versions exists on a given system (D7/SP1 doesn't like to work

Re: Help with media player needed

2007-02-22 Thread Francois Piette
Why not import the Windows Media Player (WMP.DLL) into Delphi and then use it ? You can then do something like this: FMediaPlayer:= TWindowsMediaPlayer.Create(Self); FMediaPlayer.Visible:= FALSE; FMediaPlayer.uiMode := 'invisible';

Re: memory leak in Delphi

2007-03-02 Thread Francois Piette
It is not because a leak concern a memory allocated from a system.pas function that it is a bug into Delphi code. Could you tell use what are the leaks you've found ? fyi: I'm using FastMM features to detect leaks in my Delphi 7 program and I have no problem at all. All leaks found where my own

Re: Delphi 2005...

2007-03-06 Thread Francois Piette
Is anyone on the list using Delphi 2005? I don't. I'm already using Delphi 2007 :-)) -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be ___ Delphi mailing

Re: Delphi 2005... Delphi 2007

2007-03-09 Thread Francois Piette
Is anyone on the list using Delphi 2005? I don't. I'm already using Delphi 2007 :-)) Is Delphi 2007 available as trial? It is not available as trial nor commercial. It is simply that I'm a fieldtester for Delphi 2007 and highlander for months. I've been grante the right by

Re: Delphi 2005... Delphi 2007

2007-03-12 Thread Francois Piette
'Delphi 7' is back. This is a great news. I was really waiting for it and I started to loose my trust in Borland. Imagine that I paid for Delphi 2005 and still used Delphi 7. Something was wrong all those years at Borland's home. From what I have seen on the Internet, lots of people were

Re: vcl runtime

2007-04-07 Thread Francois PIETTE
In the project options, in the packages tab, check (or uncheck) the build with runtime packages and edit the list of packages you want to be used at runtime. Any package not listed there will be compiled into your application. If you uncheck build with runtime packages then your application

Re: Network Video Streaming

2007-04-18 Thread Francois PIETTE
I am looking for a way to stream live video over network/internet. I came across TVideoGrabber but It is rather expensive for what I want to do. So, if anyone knows of anyway To accomplish that would please let me know. I am using Delphi7. Do you want to use standard protocols or do you

Re: Re[2]: Can a class be split into two files?

2007-04-25 Thread Francois Piette
It's the main form class. For functional classes, I always try to keep them small and manageable. However, in the form class, the GUI control declaration, event and message handlers, and GUI related code will make the class large already. I had understood that. Nevertheless, what I was trying

Re: How to remove .Net from Delphi 2006 ?

2007-05-02 Thread Francois Piette
Does anyone knows how to remove .Net from Delphi 2006 ? You don't. The IDE itself is a .Net application. It should be a Win32 app because I've seen a special version of Delphi 2006 running on Windows without .NET platform. Why it loads up the .NET DLLs by default also puzzles me. Maybe

Re: problems with SizeOf

2007-05-18 Thread Francois PIETTE
Why it returns 16 instead of 15? It is because the data is aligned to word or double-word boundaries for faster access? Yes, it is. How do I get the real size then? Cancel align;ent using packet keyword: TSample = packed record end; -- [EMAIL PROTECTED] The

Re: Open files?

2007-05-28 Thread Francois PIETTE
Does that mean that I may end up with 100s of open files, or will they be closed down automatically, as I leave the subroutine? Yes, you'll have 100s of open files. No file are closed automatically when you leave a subroutine. Is there a way to find out how many open files an application

Re: Compile rc files by IDE?

2007-07-22 Thread Francois PIETTE
I understand that I can manually call brcc32.exe to compile .rc files into .res files. My question is, is there a way to configure Delphi IDE to compile .rc files automatically every time it's changed? Adding .rc files to the project didn't help. As a matter of fact, after adding a few

TXMLDocument and ampersand

2007-07-23 Thread Francois Piette
When I write an ampersand () to the value of an XML node, TXMLDocument replace it with amp; entity which is fine since when reading it back it is transformed to the original ampersand. But my problem is that I want to write CRLF par as #13;#10; to avoid having the CRLF written as is in the XML

Re: TXMLDocument and ampersand

2007-07-24 Thread Francois Piette
Enclose it in a CDATASection. Not sure it would change anything except make the XML even less human readable. My goal is to have the XML the most human readable as possible, with best indentation. -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare

Re: TXMLDocument and ampersand

2007-07-24 Thread Francois Piette
nodexamp;#13;amp;#10;y/node That's not what Francois wants. He wants this: nodex#13;#10;y/node Right ! The XML serializer, though, doesn't normally bother with character entities for normal printable characters like carriage return and line feed. Instead, it outputs this: nodex y/node

Re: Dynamically loading TTabSheets into a TPageControl fromexternalmodules?

2007-08-03 Thread Francois Piette
I currently develope application that uses TPageControl as some kind of container. I use ordinary TForm to be displayed on a tabsheet: simply create a form without window caption, create a new tabsheet, assing tabsheet to form.parent and make the form visible. Closing the form destroy

Re: Passing an array

2007-08-05 Thread Francois PIETTE
I'd like to include my UnitR into the uses of any of my projects, and not have a fixed array size in R's code that I'd have to change to match whatever the calling routine is sending. It seems I should pass the array to R using a pointer to the calling routine's array and an integer

Re: Unserviced messages ?

2007-09-02 Thread Francois PIETTE
I have an application that sends messages to other applications. Also one I have not written. I wonder what will happen, if an application does not have a specific handler for that/those messages? Will a standard handling routine service them, so my application can go on doing its business,

Re: Support for SSL and OFX in Delphi 7

2007-09-14 Thread Francois PIETTE
But it must be supported over an SSL connection, Any suggestions? ICS-SSL support SSL with Delphi 7 and up. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS)

Message Broker

2007-09-20 Thread Francois PIETTE
I'm looking for a message broker, open source and written in Delphi (Other languages are also OK). I already searched and found some interesting projects using Google. I'm asking here just in case someone has a real experience with a given product. My needs are specially oriented toward HL7 and

Re: News about Delphi 2007 + update 3 ?

2007-09-28 Thread Francois Piette
Is anybody who actually uses Delphi (not just playing around, I mean really using it for development work) who can tell me if there still are major bugs in Delphi 2007? I'm using RAD Studio 2007 which include Delphi 2007.Win32 with great success. In the part of the product I use (we all use a

Re: News about Delphi 2007 + update 3 ?

2007-10-01 Thread Francois PIETTE
PROTECTED] On Behalf Of Francois Piette Sent: Friday, September 28, 2007 5:31 AM To: Borland's Delphi Discussion List Subject: Re: News about Delphi 2007 + update 3 ? Is anybody who actually uses Delphi (not just playing around, I mean really using it for development work) who can tell me

Re: Scripting languages

2007-10-12 Thread Francois Piette
Hello Robert, my client has expressed a wish that I could provide such a scripting language with the app I'm now working on that could allow for script writing and running, Any suggestions? Which language has the widest range of abilities? I am using JavaScript within my Delphi

Re: As EXE grows Delphi (7) gets way slower; what to do?

2007-10-16 Thread Francois Piette
I've done the following. Anything else I can do? 1) Have a look at the memory swapping using task manager to see if 1GB is enough or not (should have no swapping at all) 2) Defragment you disk. 3) Have a look at your anti-virus, anti-spyware which could take a long time scann for your files. Try

Re: IIS v5 Integrated Windows Authentication

2007-12-10 Thread Francois PIETTE
I need to extract the username and password(?) using the Integrated Windows Authentication included with IIS v5 for verification within my ISAPI application. Unfortunately the request.authentication string is encoded. Any ideas how I should handle this. I am using Delphi5. Unfortunately

Re: IIS v5 Integrated Windows Authentication

2007-12-11 Thread Francois Piette
, 2007 6:25 AM Subject: Re: IIS v5 Integrated Windows Authentication Francois, I don't need the password, only the username. How do it extract that from the request using Delphi? KK Aw Francois PIETTE wrote: Unfortunately for you but fortunately for all users, Windows authentication

Re: IIS v5 Integrated Windows Authentication

2007-12-16 Thread Francois Piette
that the client has successfully negotiated the NTLM authentication. How do I parse out the username from the above in the server? I have looked at some of your codes in ICS (httpproc.pas) but have not figured out how to parse out the username. Regards, KK Aw Francois Piette wrote: I

Re: Good Delphi books

2007-12-17 Thread Francois Piette
I'm getting back into programming and was wondering if there are some good tutorial/exercise books for Delphi and which ones the group would recommend. Something that gives you examples to try out. Delphi is able to cover such a braod range of application that if you tell us which kind of

Re: [OT] RAD Studio 2007 december update available

2007-12-20 Thread Francois Piette
Just to share this interesting information: RAD Studio 2007 (and by the way Delphi 2007) december update is available from CodeGear registered user website. Direct link: http://cc.codegear.com/item/25238 (This link is only available when logged as a registered user. General link is at

Re: December Update

2007-12-25 Thread Francois PIETTE
Does this patch work with the VCL only version, or will I damage something if I install it? I don't know what VCL only is, but december update is for build 11.0.2804.x (if you have lower version number, first update to update #3, then december update. If you have a higher build, then you

Re: D7 on Vista

2008-03-06 Thread Francois PIETTE
I just got my shiny new works computer. With shiny new Vista Business. Alas, when I try to install my grubby old Delphi 7 it complains that there known compatibility issues. Of course it neglects to tell me just exactly what those issues are, or indeed how I should overcome them. The

Re: Delphi 2007

2008-03-25 Thread Francois Piette
I hadn't paid much attention to this before, but I'm putting the finishing touches on a Delphi Win32 application and am tired of seeing the warning about using FileCtrl. I don't see which warning you are talking about ! If it is about deprecated unit or symbol, you simply have to turn that

Re: Delphi 2007

2008-03-26 Thread Francois PIETTE
There is a way to turn the warning off, however if I'm using something from that unit that IS deprecated, shouldn't there be a replacement for it? That's another matter :-) What is the thing your are using ? -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The

Re: Delphi 2007

2008-03-28 Thread Francois Piette
My reason for questioning this was simply because the warning about it being platform specific doesn't tell you anything useful! It tells you that you are using a unit specific to the platform you are using. That sound clear to me. I suspected that it was referring to Win32, but the way

Re: IDE Pallette

2008-04-03 Thread Francois Piette
There's an old trick that I have forgotten than makes the component pallette in the IDE multi-line. Does anyone else remember it? Moved my development system and now I have one line with a zillion component packages on it. Which Delphi version are you using ? Contribute to the SSL Effort.

Re: Win32 GUI Library?

2008-04-21 Thread Francois Piette
On Sun, Apr 20, 2008 at 3:03 AM, Ross Levis [EMAIL PROTECTED] wrote: KOL http://kolmck.net. I've used this before and it produces very small executables, but still simple to develop programs. Thanks Ross. Yeah. I actually tried it before, too. It's very nice if you want really small exe

Re: dll on Linux

2008-08-10 Thread Francois PIETTE
How can a dll be converted to run on Linux? Recompile with Kylix and make it a .so file. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be

Re: Var question

2008-11-30 Thread Francois PIETTE
Can you tell me to pass nothing to a function/proc that waits for an Var argument ? Let's take the System procedure Val(S;var V;var Code:Integer); Val(S, 0, 0); OR Val(S, Null, Null); doesnt' work of course var S: String; myV : Integer; myCode : Integer; begin Val(S,

Re: Moving from D7 to D2007: couple of IDE issues

2009-01-13 Thread Francois Piette
I'm finally at a point where I'm moving my projects over to D2007 (Vista) from D7 (XP) and getting introduced to the newer IDE. 2. On adding a component to a new form, the component's unit is not automatically added to the USES list. How do I get the unit to be added when I add the

[TWebBrowser] Calling a JavaScript function

2009-02-07 Thread Francois Piette
Hi ! I have the following problem: Having a web page loaded into a TWebBrowser hosted in my Delphi application, I want to have Delphi code execute a JavaScript function embedded in the HTML page. How can I do that ? To help understand what I mean, I've done a sample program (see below) loading

Re: [TWebBrowser] Calling a JavaScript function

2009-02-08 Thread Francois PIETTE
I have the following problem: Having a web page loaded into a TWebBrowser hosted in my Delphi application, I want to have Delphi code execute a JavaScript function embedded in the HTML page. How can I do that ? I use the execScript function of TEmbeddedWB, found at

Re: [TWebBrowser] Calling a JavaScript function

2009-02-08 Thread Francois PIETTE
I have the following problem: Having a web page loaded into a TWebBrowser hosted in my Delphi application, I want to have Delphi code execute a JavaScript function embedded in the HTML page. How can I do that ? One angle - there are probably others - how about doing either directly a load of

Re: [TWebBrowser] Calling a JavaScript function

2009-02-17 Thread Francois Piette
I have the following problem: Having a web page loaded into a TWebBrowser hosted in my Delphi application, I want to have Delphi code execute a JavaScript function embedded in the HTML page. How can I do that ? Answering my own question: procedure WB_ExecScript(WebBrowser: TWebBrowser;

Re: [TWebBrowser] Calling a JavaScript function

2009-02-19 Thread Francois Piette
Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -Original Message- From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf Of Francois Piette Sent: Monday, February 16, 2009 7:25 AM To: Borland's Delphi Discussion List Subject

Re: [TWebBrowser] Calling a JavaScript function

2009-02-20 Thread Francois PIETTE
Cooper EnglishLogicKernel.com Rich AT EnglishLogicKernel DOT com -Original Message- From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf Of Francois Piette Sent: Wednesday, February 18, 2009 12:41 AM To: Borland's Delphi Discussion List Subject: Re: [TWebBrowser

Re: Which SSL? and WHERE from?

2009-05-27 Thread Francois Piette
Help! More than an hour of googling and searching and reading, and I still can't find a coherent version of SSL for Delphi 7 (with Indy). I found a precompiled version of SSL for Indy (wonderful!), but it requires Indy version 10.2.3 or higher. And that I cannot find and do not have! I

Generating audio waveforms

2009-06-13 Thread Francois PIETTE
Hi ! I'm writing a small application which has to generate audio waveform using the sound card (PCM, 11025KHz, stereo, 8 bits). I'm using waveOutWrite and related API function. For now, I have a single buffer. As I understand, audio samples are one byte for left, one byte for right up to

Re: Generating audio waveforms

2009-06-13 Thread Francois PIETTE
I've found the problem. The sound driver was buggy. My code is OK. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Francois PIETTE

Re: Generating audio waveforms

2009-06-14 Thread Francois PIETTE
Are you sure your sound card driver isn't just pre-processing the signal to simulate some conditions (concert hall, rock, etc)? Or do you think there might be some crosstalk interference between the wires? Have you tried changing the output settings in Windows between headphone, speakers, etc?

Re: Generating audio waveforms

2009-06-14 Thread Francois PIETTE
Hi David, I have some source code here: My code was OK: It works perfectly on another computer. I've updated the sound driver of my computer and now everything is OK. Thanks, -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware

Re: Generating audio waveforms (Francois PIETTE)

2009-06-17 Thread Francois PIETTE
I don't think the problem is in your code. Is there a balance control somewhere downstream from your code? Its behaving as a balance control would. Windows? This couldn't be a balance control since balance do not mix channels. Balance is just a way to change volume level ratio between left

Re: Internet Search

2009-06-29 Thread Francois Piette
Is it possible to send name to a search page for telephonenumber on the internet, and get the answer back in the program?? Ex. if you made a program to send Lerberg to www.gulesider.no, and then receive all the answer back in the program afterwards. Yes, you can do that using any HTTP client

Re: Non-unicode issue in D7

2009-06-29 Thread Francois Piette
My D7 app is not Unicode compliant at all. A Thai user is complaining of a strange problem where Thai characters appear correctly in a ListView, but not correctly in a label just above the listview. The label is a Copy of column 1 and 2 from the selected ListView item. The user has Thai as

Re: How to manage changes I make to 3rd party source code in a project?

2009-07-01 Thread Francois PIETTE
In general I really dislike changing 3rd party code because of this. Now, my question is how does one properly manage this? I added documentation in my code to indicate I did this, plus in the 3rd party pas, used a unique line identifier so that I can check for my own code changes, but that

Re: How to manage changes I make to 3rd party source code ina project? Thanks for the suggestions!

2009-07-02 Thread Francois Piette
Thanks, Francois, I agree about letting 3rd party component authors know about fixes. I do this. In this particular case, I could not even find where to do this. Delphi Gems moved the code to Google Code for VirtualTreeview and it was not even available, nor could I find any other links

Re: Retrieving a rendered internet page

2010-04-27 Thread Francois PIETTE
I pull information from a commercial web site with my program. Unfortunately, the site changed its structure and no longer delivers its information in the html code. Instead, it sends Javascript code which creates the viewed page using document.write. So I can no longer get the data simply

Re: Classes in DLLs

2010-08-07 Thread Francois PIETTE
I've been trying to find out this online and am not having much luck finding the answer. Can I compile classes directly into the dll? Or do I need to use a package? A package is a DLL with another extension. A simple DLL has no provision to export classes as such. You can export simple

Re: Recognition ov application window

2010-10-09 Thread Francois PIETTE
I would like to find method how to recognize, the mouse is over my application window. If that window is partly covered by other application, I want to recognize that situation, in other words, that time, I want see some indicator, which tells me, between mouse cursor and my application window is

Re: Writing a simple C# DLL that Delphi (5) can call

2011-05-12 Thread Francois PIETTE
I need Delphi (5) to be able to use a function from a simple C# (Visual Studio 2010 written) DLL. I will be owner of the C# Delphi code so the function name / parameters are controlled by me. From your C# DLL, expose the features you need as a COM object and use Delphi to invoke it. --

Re: Dragging an item in Multi-select listview

2011-09-13 Thread Francois PIETTE
Where would I want to execute the BeginDrag? OnMouseMove and check for left mouse button down? OnMouseDown and check for left mouse button down? francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS)

  1   2   >