I have a DLL and wan't to call it from delphi
extern "C" export_dll_function int RetScreen(int number, char** pbuffer, unsigned long* psize,
IMAGE_RESOLUTION resolution, float zoom, int dx, int dy);
[DllImport("API.DLL", EntryPoint = "_RetScreen")]
public static extern int pRetScreen(int number, ref byte[] pdata, ref long size, int re...
I am creating a server that starts a thread (listening thread). This thread listens for connections and does it's thing. Eventually it may receive some data, that I want to pass to the creator of the server:
My program --> Creates my server --> Creates the listener --> Creates a thread for every client
Now the question is: if I assign ...
Hello,
I need to parse large text (about 1000 pages of word or pdf document)and place some of the text inside this document into database fields
I found that the only thing I can distinguish the text I want to extract is the format , it is always "Helvetica-Condensed" size 12
can I do that ? I know how to use the string functions but ...
How to convert this function to Delphi 2010 (Unicode)?
function TForm1.GetTarget(const LinkFileName:String):String;
var
//Link : String;
psl : IShellLink;
ppf : IPersistFile;
WidePath : Array[0..260] of WideChar;
Info : Array[0..MAX_PATH] of Char;
wfs : TWin32FindData;
begin
if UpperCase(ExtractFileExt...
I am currently developing a delphi application that will need a browse history and am trying to work out how exactly to implement this.
The application has 2 modes. Browse and Details. Both designed as Frames.
After a search an appropriate number of Browse Frames are created in Panel 1 and populated.
From a Browse Frame we can eithe...
I have a COM object written in Delphi, which uses Active Directory Services to return the current logged on user. This is the code I use :
var
SysInfo : IADsWinNTSystemInfo;
begin
SysInfo := CoWinNTSystemInfo.Create;
Result := SysInfo.DomainName + '/' + SysInfo.UserName;
end;
CoWinNTSystemInfo is just a wrapper around Active...
I get this error on many of the TQuery connected to Interbase via BDE. Exact message is:
General SQL Error. Dynamic SQL Error, SQL error code = -804, SQLDA missing or incorrect version, or incorrect number/type of variables.
The message appears as soon as i try to open/edit the TQuery at design time, or when a Post is done at run tim...
I am using Delphi 2009. I have a very simple data structure, with 2 fields:
A string that is the key field I need to retrieve by and is usually 4 to 15 characters in length.
A string that is the data field that may be any size, from 1 character up to say 10,000 characters.
The difficulty is that I may have several million of these re...
How to catch the start and completion of applications (processes) in Win.
How to measure the time of each application?
...
Hello, I need to go through an audio stream of 30 minutes and look for another 30 seconds of audio which is within the first audio. Example: I have a file of 30 seconds and file 2, the recorded broadcast (30 mins.) And i want to find the start position of file 1 in file 2.
Understand?
Excuse my English.
Any help will be important
Thanks...
I'm trying to use the Action Manager and Action Main Menu Bar in Delphi 2010 an I have no idea how to make this work. I've tried looking at the examples that come with Delphi 2010 and I can't seem to figure this out.
I've tried playing around with the examples. I've been able to add an image to the Image List component and set that ite...
I want my code to be as secure as possible.
...
Are there examples and resources (source code and documentation) available which show how a 'New xyz Application' or 'New xyz Document' wizard can be created with Delphi which then will appear in the new project / new file dialog of the Delphi IDE?
What I want to do: for some of my libraries I would like to add a new project type and a ...
User should open only "KLADR.DBF" file. I'm setting "Filter" property to "kladr.dbf" and dialog shows only required file, but in the same directory there are another ".DBF" file (STREET.DBF) and user can open it by typing it's name in "Filename:" edit box. How can I prevent this and let users select only required "KLADR.DBF" file?.
Here...
Hello,
Is there a difference and what type of between PAnsiChar and PChar? (in Delphi previous 2007)
Thank you, in advance!
...
How can I disconnect any process from the Internet? PID process and IP (local / remote) are known.
...
I´m a 10 years FirebirdSQL user, and now i have a customer wanting to use MSSQL 2008.
I don´t want to start flame wars with this, i just want your advice on data access tecnology.
Im using Delphi MMVI.
Use native ADO or DBExpress?
Use third part?
Any other words of wisdom?
Thanks,
yes i know that i will have to rewrite procedures, ...
I desperately need source control to manage projects between more than one developer.
A long time ago I used Visual Source Safe and it worked quite well.
Can anybody recommend a free substitute? I have the following basic requirements:
I need to host the repository on my own server.
I do not want extra clutter within my source files,...
I need to get the current logged on username? I need this to work properly when I call the code from ASP.NET which is working in Windows Authentication mode. i.e. I do not want to get the ASPNET user in that circumstance, but the impersonated user. This is related to my earlier question. Everything I try returns ASPNET.
...
For Blackfish for Windows which is included in Delphi 2009 I would like to write a Java client and use a JDBC connection. If I understand correctly, this is supported: http://edn.embarcadero.com/de/article/36851
The database clients and servers are
interchangeable. Windows clients can
connect to Java servers and Java
clients ca...