Connect with TTcpClient through a http proxy
Hi all, How can i connect to a server through a http proxy server in delphi? What about SOCKS5 proxy? Google doesn't have any suggestion! ...
Hi all, How can i connect to a server through a http proxy server in delphi? What about SOCKS5 proxy? Google doesn't have any suggestion! ...
What component should I use to display a PDF file in a Delphi 2009 application? EDIT: I have been using PDF Viewer by Synactis - a very nice free PDF Viewer But it has no Delphi 2009 support. So I need to designing it out of the product ...
Hi. I have lots of components that worked perfectly under D7. I managed to compile and install them by dragging them into the Delphi 2009 IDE. However, when I try to use those components in a project, the compiler says it cannot find the source code of them. Where I can enter the path to that library? Solution: I dragged and dropped...
I'm trying to write a simple component that will allow you to embed one or more SDL rendering surfaces on a Delphi window, using the SDL 1.3 APIs. It will compile and install just fine, but when I try to use the component in the form designer, it raises AVs whenever I try to access its properties in the object inspector, save the form, ...
I am converting an application from BDE to ADO. Under the BDE, if a query was Open and you called "Sql.Clear", it would automatically close the dataset. However, this is not the case under TADOQuery, where it will raise an exception "Operation cannot be performed on a closed dataset". A lot of our legacy code relies on the old BDE beh...
Hi im using Delphi 2009 not that it has a large affect on what im doing i think I would run into the same if i was still on 2007. I have a scsi call that outputs data to a pointer (wrong way of looking at it but i have trouble explaining that). Originally i used Move to populate a Static Array of Byte with the data that came back, but ...
I work in Delphi 2007 (both win32 and .Net) but the CodeGear IDE frequently annoys me, so if possible I'd like to find a replacemnt. We have a build script so I can compile from the command line and I very rarely do any GUI designing, so the only thing I need is a text editor (with syntax highlighting, Autocomplete/Intellisense ...). I...
In CodeGear Delphi 2007, how can I turn specific warnings and hints off? I am attempting to turn off H2077 - Value assigned to 'varname' never used. ...
I've found that when I take a simple form containing only a ribbon bar and a status bar, it's cutoff. The control you see above the status bar was later removed. The same cutoff occurs whatever control happens to be present. Later I removed the status bar & put a memo control there instead with the same result. without ribbon bar: wit...
In several of my apps I have code similar to the following: if ForceDirectories(ExtractFilePath(lLogName)) then begin AssignFile(lLog, lLogName); try if FileExists(lLogName) then Append(lLog) else Rewrite(lLog); Writeln(lLog, lLogLine); finally {$I-}CloseFile(lLog);{$I+} end; e...
When an object that is created within a function and the function is completed, what happens to the object if it wasn't explicitly destroyed? Do all variables need to be destroyed when they fall out of scope or are they taken care of when they fall out of scope? So for example, what happens to locallist after custom_function has been c...
Preferable free, open source, vcl. For Delphi 2007 or above and win32. ...
Is it possible to load a webpage in a TWebBrowser in a background thread? When the application loads, I want to download a page from the web into a TWebBrowser, but I don't want to block the gui-thread. Any suggestions? Some clarifications: The webbrowser-component is living on a form, and i want to display a page from the web. But I...
I have code like this: type TMyDictionary = TDictionary<int, int>; var myDict: TMyDictionary; k, v: integer; // code to fill the dictionary for k in myDict.Keys do begin v := myDict.Items[k]; // other stuff end; Randomly I see an exception thrown on 'v := myDict.Items[k];' which says k is invalid. Anyone e...
I have an application written in Delphi that compiles in Delphi 2007. I think it was originally written in Delphi 7. Anyway, I need to convert all the core non-GUI code into C++ because I want to release a Mac version of the software. What is the best way to do this? Any shortcuts I can take to speed up the process? EDIT: The code com...
Hi. I was getting advice from Rob Kennedy and one of his suggestions that greatly increased the speed of an app I was working on was to use SetString and then load it into the VCL component that displayed it. I'm using Delphi 2009 so now that PChar is Unicode, SetString(OutputString, PChar(Output), OutputLength.Value); edtString.Text :...
I am trying to create a custom control based on the TCustomComboBox in Delphi 2007, But I am stuck on the first hurdle. I am trying to override the way the drop down is displayed, primarally the text that is displayed, looking at the source for TCustomComboBox in stdctrls.pas it looks like i just need to override DrawItem but it is not...
I have got two WGS84 coordinates, latitude and longitude in degrees. These points are rather close together, e.g. only one metre apart. Is there an easy way to calculate the azimuth of the line between these points, that is, the angle to north? The naive approach would be to assume a Cartesian coordinate system (because these points ar...
procedure TForm1.Button1Click( Sender: TObject ); var arrSize: array[ 0..255 ] of Char; begin {same formating like in statusbar of Explorer} StrFormatByteSize( 70846, arrSize, Length( arrSize ) * Sizeof( arrSize) ); Label1.Caption := 'Result: ' + arrSize; end; StrFormatByteSize requires arrsize to be a PWideChar. How d...
SOLVED I am using delphi 2009. My program listens for usb drives being connected and remove. Ive used a very similar code in 10 apps over the past year. It has always worked perfectly. When i migrated i had to give up using thddinfo to get the drive model. This has been replaced by using WMI. The WMI query requires the physical di...