Quantcast
Channel: CCNA final exam 2013, Java, PHP, Cshap, html, flash, javascript, Facebook » delphi
Browsing all 23 articles
Browse latest View live

x86 code generator framework for Delphi

Has anyone come across a framework or library for Delphi to simplify the generation of x86 code? I am not looking for an assembler, but rather a framework that abstracts the code generation process...

View Article



Persistent Objects in Windows XP/Delphi 7

Hi Folks: I am trying to make an AlarmSystem in Delphi 7, Windows XP. I have to register alarms in a Database (MS SQL Server 2000). But what if the server is down??? Well, I can imagine that I have to...

View Article

How to get the cpu usage per thread on windows (win32)

Looking for Win32 API functions, C++ or Delphi sample code that tells me the CPU usage (percent and/or total CPU time) of a thread (not the total for a process). I have the thread ID. I know that...

View Article

How Can I Best Guess the Encoding when the BOM (Byte Order Mark) is Missing?

My program has to read files that use various encodings. They may be ANSI, UTF-8 or UTF-16 (big or little endian). When the BOM (Byte Order Mark) is there, I have no problem. I know if the file is...

View Article

Why would a Delphi programmer use Lazarus as the IDE instead of using...

I’ve been very happy with the Delphi IDE for programming in Delphi. But I’ve heard about the Lazarus programming environment, and I’ve also heard that some Delphi programmers use it instead of the...

View Article


What should I use? UTF8 or UTF16?

I have to distribute my app internationally. Let's say I have a control (like a memo) where the user enters some text. The user can be Japanese, Russian, Canadian, etc. I want to save the string to...

View Article

What is the better way to check for an empty string in Delphi?

A common condition that all programs should do is to check if string are empty or not. Take the below statements: (1) if Length(Str)=0 then // do something (2) if Str='' then // do something

View Article

How to Create an Outlook Plugin using Delphi?

I'm working on a database project and I need to create Outlook 2007 plugin that saves the current previewed message into my database. Can someone give me a step-by-step guide on how to create an...

View Article


how to refactor a Delphi unit with 10000 lines with no documentation?

I have been assigned the task to refactor a Delphi unit. Wow. 10000 lines of code, no documentation, tons of copy and paste code. THere are many methods made with copy and paste that could be...

View Article


Image may be NSFW.
Clik here to view.

Simple anti-aliasing function for Delphi 7

I need a very simple function to draw a bunch of lines with anti-aliasing. It has to follow Delphi paradigm: self contained and SYSTEM INDEPENDENT (no DLL hell), fast, simple. Anybody knows such a...

View Article

Pause a thread for less than one millisecond

In a messaging client test application, the producer thread needs to be throttled to avoid flooding the server. As the transfer rates are around 25,000 messages per second (40 microseconds per...

View Article

Faster DirectoryExists function?

I use DirectoryExists (const PathName : String); to check if a directory is reachable from a computer or not. But if the directory does not exist and the path name is a network path, i.e....

View Article

How do I get Welcome Page browser navigate to some URI from within OTA...

What I'm trying to do is to create an ability to view (not to edit) the HTML pages included into project. The Welcome Page already has embedded web browser, so it appears to be a good candidate for...

View Article


How can I disable a service via Delphi?

I use a routine that can start and stop services via Delphi but I also need to be able to disable them, is it possible? Incoming search terms:dwStartType delphi

View Article

Is it better to use TThread's “Synchronize” or use Window Messages for IPC...

I have a rather simple multi-threaded VCL gui application written with Delphi 2007. I do some processing in multiple child threads (up to 16 concurrent) that need to update a grid control on my main...

View Article


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)?

View Article

Can 64 bit Delphi targets statically link to compiled C object files?

My 32 bit Delphi 2010 application links to a number of C object files using the $LINK compiler directive. Can I do this in Delphi XE2 when targetting 64 bit? I am currently compiling using bcc32...

View Article


How can I get TStringList to sort differently in Delphi

I have a simple TStringList. I do a TStringList.Sort on it. Then I notice that the underscore “_” sorts before the capital letter “A”. This was in contrast to a third party package that was sorting the...

View Article

Should I change my Image Base?

In Delphi the Image Base linker option defaults to 00400000. Per the help: Specifies the preferred load address of the compiled image. This value is typically only changed when compiling DLLs. Default...

View Article

How best to add Plugin Capability to a Delphi program

I am looking to add the capability for users to write plugins to the program I have developed in Delphi. The program is a single executable with no DLLs used. This would allow the user community to...

View Article
Browsing all 23 articles
Browse latest View live




Latest Images