delphi

List network printers with oracle sql

Is there way to list all printers on a domain? note:I can use delphi 4 or oracle 11g ...

How to correctly set "Directories/Conditionals" and "Library" path

How to set "Directories/Conditionals" in Project Options and "Library" path in Environment Options? Delphi help don't say much about these very important settings. I have all kind of strange errors because of wrong dependencies between my VCLs. 1. I have merged a large set of 3rd party controls in a package called ThirdPartyPackages_D...

Using SystemParametersInfo SPI_GETICONTITLELOGFONT

I am currently using the function SystemParametersInfo to retrieve SPI_GETICONTITLELOGFONT. According to the MSDN documentation this is the http://msdn.microsoft.com/en-us/library/ms724947(VS.85).aspx "Retrieves the logical font information for the current icon-title font" But this always retrieves 'Segoe UI' even when I change my ...

Delphi 7 Soap WCF Service using basicHttpBinding

I added a basicHttpBinding to an existing Service I have in production in order to expose it for use in Delphi. When I try to use the WSDLImporter from Delphi 7 on the wsdl file, it doesn't work right. A section in the resulting tlb says // ************************************************************************ // // The following ty...

Event aggregator - cast object to interface

Hello! How to find out if object supports IHandle<T> and is there any possible workaround to achieve this in delphi (2010, XE)? Also has anybody seen a nice implementation of event aggregator for delphi? IHandle<TMessage> = interface procedure Handle(AMessage: TMessage); end; EventAggregator = class private FSubscribers: TList<TObj...

Regarding Ribbon controls in delphi

Hi How can i save the current state of Ribbon So that i can load ribbon with the same state while opening the exe next time using Delphi? ...

Display Artefacts when Switching Pages in TMS TAdvOfficePager

Hi, I'm using TAdvOfficePagercomponent from TMS Software. Inside each page I use a frame. When switching between pages I get some ugly display artefacts like this: The controls from the old page and the controls from the new page are both visible for some time. Is there anything I can do about this? Note: There's nothing happening ...

Game trainer development

Hello, currently I am trying to develop a game trainer in delphi. I've got the following code: var WindowName : integer; ProcessId : integer; ThreadId : integer; buf : PChar; HandleWindow : Integer; write : cardinal; Const WindowTitle = 'Starcraft'; //Whatever Those are my variables, and now my function:...

How to proceed after Delphi 2010 "Debug session in progress. Terminate?" message?

I am getting a lot of occurences of the message "Debug session in progress. Terminate?" when trying to re-run my application after routine editing in Delphi 2010. My Application has already been run (maybe several times) and quits without any problem back into my editing mode, yet after completing my edit sometimes the Run option is disa...

Should "Library path" point to the source files of packages?

Should "Library path" point to the source files of packages? Delphi 7 documentation says yes. But other people say no: "The "Library" path should lead to compiled files (.dcp, .dcu) and (if needed) resource files (.res, .dfm) only". Update: The thing is that if you DON'T add the path to your packages in the "Library path" then every sin...

Delphi: Return value might be undefined, despite setting it after begin

Hi, can anyone tell me why I get "Return value ... might be undefined" here: function TXMLAcceptorBCOLSubmission.createRecordsInBCFEEPAR(AXML: TRipXMLElement): String; var ... begin Result := ''; ...

How to get the "Text" of a html page ? (Webbrowser - Delphi)

Hi , I'm using WebBrowser to get source of html pages . Our page source have some text and some html tags . like this : FONT&gt;&lt;/P&gt;&lt;P align=center&gt;&lt;FONT color=#ccffcc size=3&gt;**Hello There , This is a text in our html page** &lt;/FONT&gt;&lt;/P&gt;&lt;P align=center&gt; &lt;/P&gt; Html tags are random and we can not ...

Using the Microsoft Help Viewer 1.X from Delphi

Has anyone got any hints that will allow me to integrate the Microsoft Help Viewer with a Delphi Application (2009 onwards). Thanks ...

Error message blocking TWebBrowser refreshes

Hi, I'm using a TWebBrowser in my Delphi app. When an Internet Explorer Script Error dialog pops up it blocks automated refreshes ("the requested resource is in use"). Is there a way to automagically close the error dialog? TIA Steven edit One possible solution is to use the Mozilla ActiveX Control instead of IE's (Firefox never shows...

How to Create an approximation of a 2-d Arc with line segments?

I have a poly-line-contour consisting of line segments and arcs of circles which i want to extrude to prisms. As my extrusion functions only support straight-edge polygons, i need to approximate the arcs using line segments. The arcs are defined through a starting point, center point and sweep angle (CCW). The sweep-angles i need to d...

How do I make Beyond Compare ignore certain differences while comparing versions of Delphi Form Files

I use Beyond Compare (version 3.1.10) to compare different versions of Delphi Form Files, but I don't want to see differences concerning ExplicitTop, ExplicitLeft, ExplicitHeight and ExplicitWidth. Details: These lines will always begin with a number of whitespace characters, then "ExplicitXXX = " and a number. Older versions of Delphi...

SysUtils.StrScan() function for string type? where?

While SysUtils.StrScan() takes PWideChar const as the parameter, is there a StrScan() like built-in function for string/Unicodestring type? Thanks in advance. ...

Compiler directive to make string <> UnicodeString

In Delphi 2009 and later versions, string type implicitly equal to UnicodeString type. My discipline now is to use explicit UnicodeString type for my recent base units to eliminate the confusion. Is there a compiler directive that will make string <> UnicodeString in the unit where it was stated? ...

GetTokenInformation() first call. What for?

Looking at MSDN documentaion for GetTokenInformation() and the Getting the Logon SID example, GetTokenInformation() needs to be called twice. The first call is to get the buffer size. So, buffer size of what? Just say I use TokenUser as its second parameter, I see that the dwReturnLength returned by first call is not the size of TOKEN_U...

Mask Password Input in a Console App

I am writing a console application using BDE 2006 and I want it to be able to prompt for a password string and mask it with "*" as the user is typing. I have looked around but I could not find examples of how to do this. Everything I saw was how to do this in TEdit. Any pointers on how to accomplish this? Thanks in advance, Nic ...