Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 77
Search took 0.00 seconds.
Search: Posts Made By: OregonGhost
Forum: General 01-11-2002, 08:50 AM
Replies: 1
Views: 310
Posted By OregonGhost
RE: Digital Mars

I don't know the Digital Mars Compiler, but if it's a ANSI C++ Compiler, you may use any ANSI C++ debugger, for example the GNU Debugger or the Cygnus Compiler Tools. You may find the GNU Debugger on...
Forum: General 10-13-2001, 01:48 AM
Replies: 1
Views: 624
Posted By OregonGhost
RE: translucent forms

The problem is, that nothing can be seen through a window. You must take a screenshot of the section where the window will be placed. Then you have to draw this one onto your window, and then you...
Forum: General 09-30-2001, 11:02 AM
Replies: 5
Views: 450
Posted By OregonGhost
RE: Is there another way to catch all top level windows? - Got it...

would be great if you could post your solution.

Oregon Ghost

There are no stupid questions, just stupid answers.
Forum: General 09-30-2001, 01:07 AM
Replies: 4
Views: 678
Posted By OregonGhost
RE: Using C# dlls in Delphi programming

The question was how to call CLASSES from a DLL, wasn't it?

STDCALL exists in EVERY language available for Windows as it is not part of a language but of the Win32 Platform SDK.

Oregon Ghost
...
Forum: General 09-29-2001, 06:01 AM
Replies: 8
Views: 946
Posted By OregonGhost
RE: Filelistbox and a memo

In the TFileListBox.OnClick Event:


Memo1.Lines.Add(Copy(FileListBox1.FileName, 0, Length(FileListBox1.FileName) - Length(ExtractFileName(FileListBox1.FileName));

This should work. Maybe you...
Forum: General 09-29-2001, 05:53 AM
Replies: 4
Views: 678
Posted By OregonGhost
RE: Using C# dlls in Delphi programming

I think it's the same it is with C++ classes in DLLs: You can't call them from Delphi.


Oregon Ghost

There are no stupid questions, just stupid answers.
Forum: General 09-24-2001, 01:49 AM
Replies: 1
Views: 876
Posted By OregonGhost
RE: Transparent icons

Since Win98, you can use
AlphaBlend(
HDC hdcDest,
int nXOriginDest,
int nYOriginDest,
int nWidthDest,
int hHeightDest,
HDC hdcSrc,
int nXOriginSrc,
int nYOriginSrc,
Forum: General 09-22-2001, 03:40 AM
Replies: 3
Views: 281
Posted By OregonGhost
RE: procedure trouble

If the compiler wants a pointer, give it a pointer.

Onaccept:= @mysockaccept;




Oregon Ghost

There are no stupid questions, just stupid answers.
Forum: General 09-21-2001, 06:14 AM
Replies: 1
Views: 808
Posted By OregonGhost
RE: How can i use .pls and .m3u files??

>are there any components that will allow me use the .pls and .m3u playlist files like winamp and other mp3 players use?
yes, your mind.
Look into a pls or m3u file and you will see that each...
Forum: General 08-11-2001, 12:30 AM
Replies: 2
Views: 320
Posted By OregonGhost
RE: Closing another application of my own.

The best solution is to continue using FindWindow(). Maybe the Window Title changes, but in most cases the Window Class is always the same. Use FindWindow to scan for the Class Name. If you don't...
Forum: General 08-10-2001, 12:08 PM
Replies: 2
Views: 563
Posted By OregonGhost
RE: Dynamical registry reading

Unfortunately I cannot give you an example but a point where to start: Look into the MSDN or Win32 Programmer's Reference, the functions RegQueryMultipleValues(), RegQueryInfoKey() and - most...
Forum: General 08-06-2001, 01:29 AM
Replies: 3
Views: 650
Posted By OregonGhost
RE: How do I move a control like TEdit with the mouse ?

I never did this in Delphi, but in C:
The Edit Window must get the style WS_CAPTION. This will give it a caption, so the Edit is now like any other Top Level Window (even if it's a child). The...
Forum: General 08-02-2001, 10:00 AM
Replies: 1
Views: 536
Posted By OregonGhost
RE: C++ DLL call from Delphi

The function declaration in Delphi must include the same calling convention as the declaration in C. WINAPI is a macro that stands for __STDCALL, so the correct declaration in Delphi would be:...
Forum: General 07-31-2001, 08:10 AM
Replies: 4
Views: 404
Posted By OregonGhost
RE: About MessageDlg and its buttons.

A simple way would be the API-function MessageBox.
Result := MessageBox(0, 'text', 'caption', uType);

For uType specify the Buttons (i.e. MB_YESNO or MB_OKCANCEL), the icon (i.e....
Forum: General 07-31-2001, 04:46 AM
Replies: 1
Views: 515
Posted By OregonGhost
RE: Why is this not working properly (API EnumResourceTypes)

any function that is supposed to be called must use the calling convention stdcall. This is the same as CALLBACK. So the correct function head would look like this:
function CBFunc(AhModule:...
Forum: General 07-15-2001, 12:23 AM
Replies: 1
Views: 589
Posted By OregonGhost
RE: Coding Games for Windows

If you want to use OpenGL or "real" DirectX (not DelphiX), you should have a look at www.gamedev.net.

The only Delphi Game Engine I know is 3D and from the NeoBrothers:
www.neobrothers.de
...
Forum: General 07-10-2001, 04:14 AM
Replies: 4
Views: 545
Posted By OregonGhost
RE: RE: RE: how can i set a running program in my application ?

>can you give me an example please ?
... The German language provides the word "Jein" which means both yes and no. This would be my answer to your question...

So, if you are creating a window,...
Forum: General 07-08-2001, 11:23 PM
Replies: 4
Views: 545
Posted By OregonGhost
RE: how can i set a running program in my application ?

Why do you want a program to run in your window? I think this is not possible. The only possibility would be if the program accepts a handle (as parameter) and uses that handle as a parent window.
...
Forum: General 07-08-2001, 11:19 PM
Replies: 4
Views: 507
Posted By OregonGhost
RE: RE: RE: function import problem...strange...

Well, Microsoft Visual C++ IS the best IDE, although the compiler produces much bigger EXE files than my compiler does. I am using Bloodshed Dev-C++ with the MinGW32-Compiler. The Borland (freeware)...
Forum: General 07-08-2001, 05:08 AM
Replies: 3
Views: 466
Posted By OregonGhost
RE: cpaturing window text

First you need the handle of the Edit Window. You can get it i.e. with WindowFromPt. Then use GetWindowText to get the text in that Edit Window. That's all.

Oregon Ghost

There are no stupid...
Forum: General 07-07-2001, 11:25 PM
Replies: 4
Views: 507
Posted By OregonGhost
RE: function import problem...strange...

Well, I solved the problem by using the cdecl calling convention instead of stdcall. But now the DLL won't compile because I am using GDI functions... but now this is a c problem.

Maybe Delphi has...
Forum: General 07-07-2001, 09:39 AM
Replies: 4
Views: 507
Posted By OregonGhost
function import problem

I have compiled a C DLL with the following function definition:
extern "C" __declspec(dllexport) __stdcall BOOL ImportedFunction(HWND H, HINSTANCE HI)
{
//doing some stuff here
return...
Forum: General 07-02-2001, 07:45 AM
Replies: 1
Views: 409
Posted By OregonGhost
RE: About MOUSE in DelphiX help plz (++)

I am not sure as it as a long time ago I last worked with DI, but I think DI does not use Events. You request the mouse movement from the system and also the button states, and if the mouse is...
Forum: General 07-02-2001, 07:42 AM
Replies: 1
Views: 779
Posted By OregonGhost
RE: HPSTR Datatype

typedef CONST void far *LPCVOID;
LPCVOID is a far const pointer. I think the "far" is not important any more, it was in DOS. You may use a "Pointer" instead.
typedef char _huge * HPSTR; ...
Forum: General 07-02-2001, 07:37 AM
Replies: 2
Views: 353
Posted By OregonGhost
RE: Execution of htm files from an application

If you mean you want to load the file in a browser, this code should work:

ShellExecute(0, 'open', 'thefile.htm', nil, nil, SW_SHOWNORMAL);


Oregon Ghost

There are no stupid questions, just...
Forum: General 06-28-2001, 07:58 AM
Replies: 1
Views: 1,222
Posted By OregonGhost
RE: Kill Task

Modify the function so that the parameter is not a string but a handle, and the comparison should not be done between "ExeFileName" and "FProcessEntry32.szExefile" but between the handle and...
Forum: General 06-12-2001, 12:10 AM
Replies: 4
Views: 846
Posted By OregonGhost
RE: RE: RE: ALT-Tab and how to intercept?

call GetActiveWindow. It should return a valid handle if one of your thread's windows is active and 0 if none is active. So, if GetActiveWindow returns 0, your application lost focus, if it's...
Forum: General 06-11-2001, 05:41 AM
Replies: 4
Views: 846
Posted By OregonGhost
RE: ALT-Tab and how to intercept?

You wrote the solution: When the Application (its mainform loses focus, switch the resolution back to the original one), and when it's activated again, switch the resolution to your one.

Oregon...
Forum: General 06-11-2001, 05:39 AM
Replies: 6
Views: 1,889
Posted By OregonGhost
RE: How to prevent a form from minimize?

I think there must be a message sent to the window by Windows when minimizing all. Try to catch that message and return non-zero (indicating that your program does not agree with this).

And I...
Forum: General 06-03-2001, 01:01 PM
Replies: 4
Views: 692
Posted By OregonGhost
RE: RE: RE: How do file formats work?

Do you know what you're doing?
Maybe, but your computer does not.
A program does not know if it is receiving a character or a pixel. It receives just a byte and it is your, the programmer's,...
Forum: General 06-01-2001, 09:43 AM
Replies: 1
Views: 1,151
Posted By OregonGhost
RE: Convert a boolean array to hex number string

I don't know how to do this in Delphi, but in C++ there's a container class called bitset that is capable of converting between byte and bool values. Maybe there's something like that in Delphi too?...
Forum: General 06-01-2001, 09:41 AM
Replies: 4
Views: 1,071
Posted By OregonGhost
RE: RE: RE: How to get the Dlls that a executable file uses?

I'm sorry to disappoint you, but FileInfo cannot really check the program's language. It detects a program written in Borland Delphi, maybe because Delphi compiles some information into the...
Forum: General 06-01-2001, 06:58 AM
Replies: 4
Views: 692
Posted By OregonGhost
RE: How do file formats work?

In most cases the binary file is just a binary file and nothing else. The program reading it in is aware of what type of file it is. It is the programmers mission to let the program read in the...
Forum: General 06-01-2001, 06:53 AM
Replies: 4
Views: 1,071
Posted By OregonGhost
RE: How to get the Dlls that a executable file uses?

One problem is that only MFC-programs use the MFC40.dll.
Applications written in Delphi or in C/C++ without MFC (dynamically bound (!) ) won't use the DLL.

The Process Status Helper API provides...
Forum: General 05-30-2001, 03:02 AM
Replies: 4
Views: 1,239
Posted By OregonGhost
RE: RE: RE: How to get text under mouse cursor in another program

The function to get the window handle is WindowFromPoint.

Oregon Ghost
Forum: General 05-30-2001, 03:00 AM
Replies: 1
Views: 477
Posted By OregonGhost
RE: Taskbar Applet

If you want to use the standard windows taskbar, you only have to change Application.Title. Doing this in a loop or in an OnTimer-Event will look like this:

Application.Title :=...
Forum: General 05-06-2001, 09:36 AM
Replies: 2
Views: 606
Posted By OregonGhost
Additional

It may be that the Extended Window Style WS_EX_TRANSPARENT will help you. A window with WS_EX_TRANSPARENT will receive the WM_PAINT message after all windows behind it reveived (and I think answered)...
Forum: General 05-03-2001, 11:07 PM
Replies: 4
Views: 586
Posted By OregonGhost
Maybe this is not what you wanted to hear

I think it is possible to hook the Window Procedure of the IE using SetWindowsHookEx, but I don't know how. Looking into the API-Help may give you the needed informations about this.

But another...
Forum: General 05-01-2001, 02:21 AM
Replies: 1
Views: 422
Posted By OregonGhost
RE: geting handle properties

A Handle does not have any properties as it is an Integer-Value!
You can get properties of some system objects using API-functions, but it will depend on the type of the Handle.
For example, if you...
Forum: General 04-30-2001, 07:28 AM
Replies: 2
Views: 1,788
Posted By OregonGhost
RE: How to get the hex value of a TColor?

hexString := IntToHex(color);

while (Length(hexString) < 6) do
hexString := '0' + hexString;

//I think this should result in a hex Value that is always 6 chars long.

hexString := '#' +...
Forum: General 04-27-2001, 09:13 AM
Replies: 4
Views: 1,000
Posted By OregonGhost
OOOPS - forgot something

at the end of the OnTimer event, add this line:

OldPos := NowPos;

;c)
Forum: General 04-27-2001, 09:11 AM
Replies: 4
Views: 1,000
Posted By OregonGhost
RE: RE: RE: Does anybody help me? [OnMouseMove, screen, cursorposition....]

// this has to be added to the var section of your SRC:
OldPos, NowPos: TPoint;
justStarted: Boolean;
dx, dy: Integer;
d, Distance: Double; // you may use Extended here

// in the OnCreate...
Forum: General 04-27-2001, 08:57 AM
Replies: 2
Views: 988
Posted By OregonGhost
RE: How to get "Processes" information from OS ?

I think there must be an API function called "EnumProcesses" or something like that.
In Addition, you will need a callback function, I don't know if Delphi supports that.

Sorry I don't have MSDN...
Forum: General 04-24-2001, 09:10 AM
Replies: 4
Views: 1,000
Posted By OregonGhost
RE: Does anybody help me? [OnMouseMove, screen, cursorposition....]

Use the API-function
GetCursorPos(var P: TPoint);
for example in a timer. It writes the Cursor Position into the TPoint P. You should declare another TPOint, e.g. OldPos, globally.
Then you should...
Forum: General 04-21-2001, 07:23 AM
Replies: 1
Views: 633
Posted By OregonGhost
RE: Convert JPEG to Bitmap?

load the JPEG-Image:

var jp: TJPEGImage; bm: TBitmap;
begin
jp := TJPEGImage.Create;
jp.LoadFromFile('filename');

// then create a Bitmap and draw the JPEG onto it:
bm := TBitmap.Create;...
Forum: General 03-13-2001, 04:22 AM
Replies: 3
Views: 724
Posted By OregonGhost
RE: Get all running applications???

BOOL EnumProcesses(
DWORD * lpidProcess, // array to receive the process identifiers
DWORD cb, // size of the array
DWORD * cbNeeded // receives the number of bytes...
Forum: General 03-10-2001, 01:18 AM
Replies: 1
Views: 462
Posted By OregonGhost
RE: sprites

If it is your application's window, it's very easy:
In the OnMouseDown-Event, you can do the following:
Form1.Canvas.Pixels[X, Y] := clBlue;
Look into the Help under TCanvas to understand.
...
Forum: General 03-07-2001, 05:42 AM
Replies: 2
Views: 647
Posted By OregonGhost
RE: Menus without border??!!

One possibility is:
Write your own Menu!
It's very easy to create a window and make it act like a menu, and it is as customizable as you want it to be...

Oregon Ghost
Forum: General 03-03-2001, 03:39 AM
Replies: 2
Views: 1,817
Posted By OregonGhost
RE: RE: FORM Caption Alignment

You can draw the TitleBar self:

var c: TCanvas;

c := TCanvas.Create;
c.Handle := GetWindowDC(Form.Handle);
//now you can draw. To get the area where to draw call...
Forum: General 02-22-2001, 08:58 AM
Replies: 2
Views: 757
Posted By OregonGhost
RE: GetNearestColor(bmp.Canvas.Handle, $00BFBFBF) returns same color ;(

Of course, it returns clSilver as this is RGB(192, 192, 192) and your color is RGB(191, 191, 191). You see, it works.
Oregon Ghost
Showing results 1 to 50 of 77

 
Forum Jump

All times are GMT. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2014, vBulletin Solutions, Inc.