A have two keyboards in a pc.
One is used to type in TMemo1 and the other in TMemo2. Both are allowed to type at the same time. The problem is I cannot distinguish what keyboard-one has typed and what keyboard-two has typed.
Please help!
(I'm new to delphi and DLLs, so please go easy on the technical stuff.)
...
Hi,
While searching in the net i got few lines of code in VB for extracting an image from EMF File.
I tried to convert that into Delphi but doesnt work.
Help me in converting this code to delphi.
Public Function CallBack_ENumMetafile(ByVal hdc As Long, _
ByVal lpHtable As Long, _
...
I am looking for a way to develop a plugin for Delphi 2010IDE and have yet to find any information on that topic, not even on how to get started.
What I want to accomplish is some kind of auto-spellchecker wich can be given a list of common typos (flase instead of false, .cerate instead of .create and the like) and replace them with the...
I'm using the line below to have MSBuild build a Delphi 2010 groupproj:
MSBuild C:\src\myprojgroup.groupproj /target:Build /p:config=Release
I can't figure out how to modify the line above so that I can pass this argument
-EC:\mypath
to the compiler (bcc32.exe).
I've spent a fair amount of time trying to find this on the we...
I have a simple string which is delimited by some character, let's say a comma. I should be able to create a TStringList and set it's delimiter to a comma then set the DelimitedText to the text I want to parse and it should be automaticlly parsed.
The problem is when I look at the output it also includes spaces as delimiters and chops ...
I want to know how to convert big-endian numbers to native numbers in Delphi. I am porting some C++ code in that I came across:
unsigned long blockLength = *blockLengthPtr++ << 24;
blockLength |= *blockLengthPtr++ << 16;
blockLength |= *blockLengthPtr++ << 8;
blockLength |= *blockLengthPtr;
unsigned long dataLength = *dataLengthPtr++...
I am trying to wrap up a TFrame descendant as an ActiveX control, but don't seem to be able to get the control to show up in the ActiveX Control wizard. Is this approach possible, and if so, are there any working examples that I can be pointed at.
I have tried to follow the instructions here, but as I said the control show in the list o...
I cannot read from the registry unless I run my application in administrator mode. I am building a preview handler, using the IPreviewHandler interface, and I require GUIDs for file types located in HKEY_CLASSES_ROOT.
How can I access this information without elevating my application to adminstrator. I am using Delphi but happy for ...
I have got a dll that I load in my program which reads and writes its settings to the registry (hkcu). My program changes these settings prior to loading the dll so it uses the settings my program wants it to use which works fine.
Unfortunately I need to run several instances of my program with different settings for the dll. Now the ap...
I am new to component building, and I have noticed that other components have a comment on top of their units like agreement, terms and condition etc. whether its free or commercial.
How important is to register(license) your own component and how/where? and when do you need to register it?
How about freeware? Must have a license too?...
HI:
I've a Delphi 7 program that I wrote many years ago, but I've lost the source code. It's a small program but very useful for me.
I've tried to 'install' it again in a new Windows XP computer, just copying the folder with de data (.db paradox files), and configured the BDE connection.
When the programm starts I receive an "Unknown...
As we all known, when we call a constructor of a class like this:
instance := TSomeClass.Create;
The Delphi compiler actually do the following things:
Call the static NewInstance method
to allocate memory and initialize
the memory layout.
Call the constructor method to
perform the initialization of the class
Call the AfterConstructi...
Hi there,
I'm a total newbie regarding to DLL. And I don't need to creat them I just need to use one.
I've read some tutorials, but they weren't as helpful as I hoped.
Here's the way I started:
I've downloaded the SDK which I need to use (ESTOS Tapi Server).
I read in the docs and spotted out the DLL which I need to use, which is the EN...
I tried to translate some new part of winuser.h header to Delphi.
Why this structure is expected to be 48 bytes (only this size was accepted by the corresponding function). With 4-bytes boundary, it looks like it should have 40 bytes.
typedef struct tagGESTUREINFO {
UINT cbSize;
DWORD dwFlags; ...
Hi,
I'm encountering a big problem when i'm trying to make a recursive search function inside a thread (using delphi 7) bellow is the code:
TParcFicDir = class(TThread)
private
several variables..
protected
procedure Execute; override;
public
constructor Create(CreateSuspended: Boolean);
constructor TParcFicDir.Create(Cr...
Delphi 7
SQLSERVER 2000
I am having a problem with a legacy application that I am unable to recompile, because when i do I lose the ability to retrieve documents from a text field they are stored in and write to disk, I only get the first 8 bytes. I have a much larger application, but a really simple app is recreating the issue.
Code ...
I've created a Windows library with an implementation of nsIModule (and nsIProtocolHandler) a while ago. I've only recently got round to debugging it some more, but FireFox doesn't run my library any more. I've tried to register my module again, with regxpcom and deleting xpti.dat and compreg.dat, but my contract-id doesn't get listed. I...
Hello
I'm trying to create a DLL that will later be used in Inno Setup.
I managed to create a DLL using Pelles as an IDE, with the following code:
#include <windows.h>
__declspec(dllexport) int sumT(){
return 2;
}
Then I call map the DLL to a function in Inno Setup, using the following Delphi code:
function Hellow() : Integer ;
...
I want to get the structure information of a module (pascal unit) by ToolsAPI. just like the structure view of the IDE does.
Classes, Records, Interfaces, Variables/Constants, etc
Members, Parameters, etc.
Is there already an easy & efficient way to get these metadata?
...
Hello !
i have a simple program with one procedure.
Procedure TForm1.btnKeywrdTransClick(Sender: TObject);
Var
i, ii : integer;
ch_word, zword, uy_word: widestring;
Begin
TntListBox1.items.LoadFromFile('d:\new folder\chh.txt'); //Chinese
TntListBox2.items.LoadFromFile('d:\new folder\uyy.txt'); //Uyword
TntListBox...