Questions for delphi


1801

Did P/Invoke environment change in .NET 4.0?

I've started upgrading a .NET 2.0 WinForms application to .NET 4.0. Well, OK, the upgrade process was just a matter of switching platform target, but making it actually work. I assumed that's all...
2343

Delphi code to show friendly message if you don't have permission to do something that requires admin priveleges such as install a service

A customer is reporting an error from our application during installation which indicates that the code in 'IsWindowsAdministrator' below is returning FALSE when the installation is performed by a ...
1846

Getting stuttering during rendering of my DirectShow filter despite output file being “smooth”

I have a DirectShow application written in Delphi 6 using the DSPACK component library. I have two filter graphs that cooperate with each other.
5554

Programmatically specify which version of .NET to load

My application is a native, non-.NET application. However, at times it may need to invoke some .NET services through COM. Sometimes it needs to load a specific version of .NET to accomplish what it
3206

Screen recorder

I'm interested in a library(for windows) written in Delphi/Pascal or C++ that allows me to record(to a video format) desktop screen, requirements:
7616

Widestring to string conversion in Delphi 7

my app is a non-unicode app written in Delphi 7.
1436

Need a component/library that allows me to export to PSD (Adobe Photoshop's)

Does anyone know of a library/component for Delphi that allows exporting graphics to a multilayer PSD?
7337

How to make OpenDialog show modal in Firemonkey?

When I'm calling an OpenDialog from my form on ButtonClick event. The dialog does not shows as modal and is also displays in taskbar (in WindowsXP). I can return to main form and click Open again and
226

Reposition rectangle after zooming

I have a rectangle defined by R1:x1,y1-x2,y2 and after applying zoom, I get the
2884

What is an efficient way of deleting a large block of items from the start of a TList in Delphi

Delete (0) from a TList is expensive because all the subsequent items need to be moved down. If I need to delete a large number of items from the start of an even larger list what's the fastest way?
5300

Borland / Delphi alternative to __super keyword

Keyword __super is Microsoft specific. It is used to access virtual methods of parent class. Do you know alternative keywords for borland c++ / delphi compilers?
1002

Installing component in dclusr.dpk breakes other components

First I've installed RX library 2.75 and some others.
844

TIdTCPServer reconnection for the same login user

My server build on TIdTCPServer should be capable for only one single connection for one user at the same time. I searched a lot but I can't find resolve.
1080

Printing only in the final page with QuickReport

Here is another question of ancient programming languages, if anybody knows how to print a calculated value only in the last page with Delphi 7 and QuickReport?
6291

Auto update a service

I have written several services in Delphi now, but I want to add the facility of auto updating the service either from a LAN unc path or from a http server. I have been pondering this and I am inte...
816

Call TObject.GetInterface free object

I'm trying of execute a code like this:
3794

delphi: inaccessible value on var parameter

I have this example method below
4262

'Exports' naming convention - how does it work?

What rules apply to the name that ends up in the exports section of an PE (Portable Executable)?
8951

delphi assign to const?

this site : http://www.drbob42.com/delphi/wizards.htm
110

what is the difference between opendialog and Tntopendialog (Delphi 7)

I have come across components TntOpenDialog , TntSaveDialog etc. What is the additional features provided by these components over standard Windows components? I could not find help about it , so any
458

How to insert xml prolog using SimpleStorage to generate gpx file?

I plan to adopt once and for all handy a tool for handling the creation of gpx files.
4719

How to find and remove unused Delphi packages from a project

How to find and remove unused Delphi runtime packages from a project that uses packages?
108

The intersection of the straight line and the triangle sides

Required points are red. I draw this using delphi. with Image1.Canvas do begin Image1.Canvas.Pen.Color :=RGB(255,0,0); MoveTo(30,3); // 1 LineTo(260,10);// 1-2 LineTo(100,100);//2...
2836

Delphi XE4 Indy compatibility issue between TBytes and TidBytes

Today I try to compile my XE3 project in XE4. First problem that I face is with Indy's FTCPClient.Socket.ReadBytes() method.
3118

What to use to build an installer using Delphi 7?

(NOTE: Added 'important edit' below to basically re-ask this question in a different way)
7851

Can I overload operators for my own classes in Delphi?

I faced a little trouble - I do not know if I can define my own operators for my classes.
4869

How do I delete a TStringGrid row?

I have a TStringGrid, and I want to delete the selected row. Basic things I've tried only delete the last row. How do I delete an arbitrary row?
7492

Delphi 2006 translate from/into French/Dutch/German with a single ansi codepage

I need to make some translations from/into the French/Dutch/German languages using Delphi 2006 (without any third party units/components).
8386

Create a form within a new Desktop using CreateDesktop/SwitchDesktop

I need to create a system modal form for an utility that should block the entire windows until certain values are entered. So I'm experimenting with creating desktops and switching. So far, creatin...
4624

How Import (merge) a reg file using delphi?

I have several .reg (Windows registry) files (generated by an external application) that need to merge into the windows registry. Now i'm using the ShellExecuteEx function to call the regedit.exe
1795

E2010 Incompatible Types, why?

I'm getting this error:
2541

Delphi 2010 - MSMQ and event log

Does anyone have a sample of how to use MSMQ in delphi 2010 to comunicate between 2 delphi applications? I also wanted to log an event on windows event log, but I dont know how to.
9103

Default implementations of Abstract methods

I am dealing with a large codebase that has a lot of classes and a lot of abstract methods on these classes. I am interested in peoples opinions about what I should do in the following situation....
8184

Is it safe to type-cast TArray<X> to array of X?

Today I discovered a compiler bug (QC#108577).
7698

VertScrollBar.Visible always returns TRUE

I have a custom control derived from TScrollBox. At run time, I need to know weather the vertical scrollbar is visible or not. If I interrogate the Visible property it always returns true, no matte...
5226

How can I convert unicode characters to ascii codes in delphi 7?

Yes we're talking about ASCII codes. My appologies I'm not the Delphi dev here.
1864

How to make a remote procedure call (SOAP client)?

I have never used SOAP before. Now someone has given me a link to WSDL file and told me to develop an application that makes remote procedure calls to web services which are defined by the WSDL fil...
9173

MS ACCESS Database Password - How secure?

I have a program written in Delphi 7, which uses a MS Access 2000 database as the backend.
1006

Controlling Wordpad in Windows using messages

I am trying to find a reliable way to control windows Wordpad, which I successfully embedded in application as a child window.
4287

Execute a command inside thread/timer only once but keep thread/timer running?

This is part of the code inside a thread (or it could be a timer, doesn't matter):
1363

Why is CharInSet faster than Case statement?

I'm perplexed. At CodeRage today, Marco Cantu said that CharInSet was slow and I should try a Case statement instead. I did so in my parser and then checked with AQTime what the speedup was. I foun...
739

How does one escape characters in Delphi string

Delphi strings use single quotes, for example 'a valid string'. How does one specify the ' character within a literal string? How would one refer to the null byte (Unicode code point U+0000)?
374

LZMA Or 7zip in Delphi

Is there any Library in Delphi to handle LZMA (or 7zip)files including creating self extracting EXEs
6536

Custom component redraw issue with Delphi

I have written a new custom component derived from TLabel. The component adds some custom drawing to component, but nothing else. When component is painted, everything works fine. But when the redr...
8357

Strange AV while loading an icon from the resource stream

I'm adding icons to my project via Resources and Images dialog, and decided to walk away from TIcon.LoadFromResourceName because it does not perform any error checking. I wrote seemingly equivalent...
6472

Is there any way to get RTTI hints for a real48 and shortstring variable in a structure where FieldType is nil in TRttiField?

I have discovered what I think is an odd oversight (probably intentional) on the part of the Extended RTTI feature in Delphi.
8390

Delphi 2010 lock the menu at the top?

Every so often, I accidentally move the panels at the top of my IDE.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.