Search found 52 matches

by Claes
Sun Aug 15, 2004 6:47 pm
Forum: madDisAsm
Topic: How to disasamle code from another process?
Replies: 6
Views: 27452

It would be a nice Demo-project if you could provide some source code for that, Mathias. The Demo folder under madDisAsm is still "under construction"... :sorry:
by Claes
Wed Aug 11, 2004 11:16 pm
Forum: madCodeHook
Topic: DLL that Exports functions and using HookAPI
Replies: 3
Views: 5419

Oops - the word "if" is missing in front of "I do not use"... sorry for the misspelling...

mad-hooks works on ONE specific process. However, the SetWindowsHook is system-wide.
by Claes
Wed Aug 11, 2004 8:45 pm
Forum: madCodeHook
Topic: DLL that Exports functions and using HookAPI
Replies: 3
Views: 5419

DLL that Exports functions and using HookAPI

Hi, I'm building a library that both Exports some functions that implement SetWindowsHookEx-hooks, and it also uses HookAPI. The main program imports these functions, and I also use InjectLibrary here. However this crashes the target app :( I do not use InjectLibrary the mad-hooks doesn't seem to be...
by Claes
Sun Aug 01, 2004 4:11 pm
Forum: madDisAsm
Topic: Help needed with assembler code..
Replies: 4
Views: 19766

Thanks, guys! ;)
by Claes
Fri Jul 30, 2004 3:52 pm
Forum: madDisAsm
Topic: Help needed with assembler code..
Replies: 4
Views: 19766

Will this work?

Code: Select all

function MakeWord(L,H: Byte): Word;
begin
  MakeWord := (H shl 8) + L;
end;
by Claes
Fri Jul 30, 2004 3:50 pm
Forum: madDisAsm
Topic: Help needed with assembler code..
Replies: 4
Views: 19766

Help needed with assembler code..

Can anyone help make the below code work? function MakeWord(L, H: Byte): Word; { macro creates a word from low and high bytes } inline( $5A/ { pop dx } $58/ { pop ax } $8A/$E2); { mov ah, dl } It seems that Delphi no longer understand "inline"...? Anyhow I'm no assembler guy AT ALL, so I c...
by Claes
Thu Jul 29, 2004 9:11 am
Forum: madCollection
Topic: mad-units in a package
Replies: 4
Views: 7275

I installed madCollection 2.1.0.1 just after installing the Delphi 7.1. upgrade. Maybe it has something to do with the upgrade?
by Claes
Wed Jul 28, 2004 7:35 pm
Forum: madCollection
Topic: mad-units in a package
Replies: 4
Views: 7275

Actually, it seems the problem was related to madShell_.bpl was not in the system path. I copied all mad*_.blp to delphi\bin directory, and the problem was solved.
by Claes
Wed Jul 28, 2004 6:33 pm
Forum: madCollection
Topic: mad-units in a package
Replies: 4
Views: 7275

mad-units in a package

Hi,

Just installed a new madCollection. After restarting Delphi, and loading my working project containing a homemade component that requires some mad-units, Delphi says it can't load the package. After opening and recompiling the package everything was fine.

No big deal, just wanted to let you. ;)
by Claes
Tue Jul 20, 2004 9:29 am
Forum: madCodeHook
Topic: ExtTextOut plus DrawText and DeviceContext
Replies: 4
Views: 7704

It's a good guess! But the window in question is a Delphi TStringGrid component. I checked the source, and it doesn't use any bitmaps. To draw the text in the grid, he calls TextRect of TCanvas, which is implemented as follows: procedure TCanvas.TextRect(Rect: TRect; X, Y: Integer; const Text: strin...
by Claes
Mon Jul 19, 2004 11:16 pm
Forum: madCodeHook
Topic: ExtTextOut plus DrawText and DeviceContext
Replies: 4
Views: 7704

Actually, it seems to work on DrawText, but before/after ExtTextOut is called, the handle returned from WindowFromDC is always zero! Could this be a Win2K bug?
by Claes
Mon Jul 19, 2004 4:25 pm
Forum: madCodeHook
Topic: ExtTextOut plus DrawText and DeviceContext
Replies: 4
Views: 7704

ExtTextOut plus DrawText and DeviceContext

I'm hooking ExtTextOut and DrawText. These API's work on a DeviceContext (DC). My question is: For filter purposes, I'd like to know WHICH window (hWnd) is drawing on the DC. I tried using WindowFromDC, but this seems to work solely on what is called a Form in Delphi - it doesn't work on child windo...
by Claes
Sun Jul 18, 2004 1:12 am
Forum: fun talk
Topic: How to refer to Handle in a Components constructor?
Replies: 11
Views: 15283

madshi wrote:And what happens if you somewhen decide that your girl friend is more important than being moderator?
I've been married too long for that to happen! :o :lol: But hey, I get your point, and respect your decision... ;)
by Claes
Fri Jul 16, 2004 4:55 pm
Forum: fun talk
Topic: How to refer to Handle in a Components constructor?
Replies: 11
Views: 15283

You COULD leave it alone by assigning a moderator to filter the mad-stuff to the other forums. I'll be happy to do that, if you want me to. ;)

Btw, I really hate newsgroups.. ;)
by Claes
Fri Jul 16, 2004 1:09 am
Forum: fun talk
Topic: How to refer to Handle in a Components constructor?
Replies: 11
Views: 15283

I tried seaching for a solution to this problem there. I got lots of hits, but the solutions wasn't visible until I paid them. :( And the really sad thing is: To cancel your subscription, you need to fax or snailmail them a form - you can't cancel online! :sorry: And unless you cancel, they'll withd...