HOw do I convert a string to a pansichar
var
Textstring : string;
edita : hwnd;
ebitb : hwnd;
begin
Textstring := GetText(XHandle); // GetText returns a string
notepad := FindWi...
Let's suppose i wanted to call LoadLibrary then call Getprocaddress to get the pointer to say ShowBox
Result:=LoadLibrary('thedll.dll');
Pointer:=GetProcAddress(Result,'yourfunction');
...
I need to create a TLB from and IDL file. Looking around, it seems like midl.exe (and midlc.exe) is the answer.. After countless frustrations with environment variables and missing files, dll'...
Hi,
How can I force Windows Vista to execute (run) my application as a user with full Administrator-rights?
Currently Vista will user a Virtual Store to allow user that don't have full Adm...
Greetings..
I'm having problems with posting files witch over 3.5mb to IIS servers with the Indy IdHttp component.
I get this error: "Socket Error # 10054 Connection reset by peer"
In thi...
I am having problems passing a .CHM file mapID value into a ShellExecute procedure. Although the .CHM file launches, the context ID (mapID) page does not appear as the default. Here's the co...
Good day
I would like to know how can I read all usb ports on a computer and determine how much free space are available on the port and how can I copy data to the port
Hi,
I am writing a CGI program and need to ensure that the unsafe characters passed in parameters are encoded/decoded correctly. Now I understand URL encoding overall, with unsafe characte...
Hello Experts!
Two questions:
1. why does it take ages and crashes at the end?
procedure XYZ;
var LMemoryStream,
LMemoryStream2 : TMemoryStream;
begin
LMemoryStream :=...
Hi all,
I'm trying to write a small app that examines all files in a specified directory and gets a certain value from each file, then output the results somewhere (memo pad at the moment)....
Hello All,
I am working on a project that involves Delphi 7 and Crystal Reports XI (developer) and have no clue where to start. The included documentation tells me how to pull up already cr...
Hi all,
Having a few problems trapping 'Asynchronous Socket Error 10053' in my application - written in delphi 2005, using TCP ClientSocket and ServerSocket.
I have tried placing the 'Er...
I have the following form with ListView1 in Reported mode. I need to write a code which will sort columns when I click on them. For example when I click on INFO1 column, this column needs to b...
Hello
I have a problem. In my app i'm creating a couple forms. everything is fine when only one of them is shown using showmodal. When a modal form views another modal form it's fine also, ...
INTRODUCTION
____________
In a recent question, I raised a question about whether or not a string variable is like a PChar variable. My understanding was that they are different and that st...
FIND OPEN FILE HANDLE
How to find file handle ?
And it is not close, and it is open ?
For example if it is open like that :
FileOpen('C:\TEST.TXT', fmOpenReadWrite);
and if it is NO...
Dumb question: either I am stupid, or I am too smart for
the simple answer
I put the TabControl.....
I put a PageControl.....
Where (the H***) do I find the TTabSheet for making different pa...
Dear experts:
I'm back with more of my lack of knowledge in Delphi ;)
For those of you that remember my RAS application, well it's working very well thanks to the EE experts, although I'...
I have a ListView component with it´s ViwStyle = vsReport. In it I have 3 Coloumns. Example:
With some values on only two columns, like:
Description | Value | Total
Keyboard ...
can someone give me a link where i can download a file foe delphi the file I want is
Dsgnintf.dcu
thanks
Hi, why do I get an error using this code? "Operation not allowed in context (or something like that). Can anyone see the problem? I'm using a dynamic stored procedure, taking a SQL command as...
I'm trying to insert the ' character into a string, but how do I escape it so delphi does not read it as a string terminator?
IE: string := 'This is a 'test' string.'
String would then r...
I have a Delphi WebBrowser component on my form that browses to a web page. Filling in some boxes and clicking a Submit button on the form does a POST which opens up the results in a separate...
I have a client that is using a program developed under Delphi 4, that we wrote.
Client bought a new computer and was making the move from old computer to new and now gets an Error on the ...
I need an advanced delphi keylogger
it must catch characters (~!@#$%^&*())
it must catch BackSpace and Enter
it must catch Capital Latters And Small Letters (not all cap or small)
Thx
P...