Forum: General
01-11-2002, 07:50 AM
|
|
Replies: 1
Views: 219
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, 12:48 AM
|
|
Replies: 1
Views: 430
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, 10:02 AM
|
|
Replies: 5
Views: 286
|
Forum: General
09-30-2001, 12:07 AM
|
|
Replies: 4
Views: 420
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, 05:01 AM
|
|
Replies: 8
Views: 615
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, 04:53 AM
|
|
Replies: 4
Views: 420
|
Forum: General
09-24-2001, 12:49 AM
|
|
Replies: 1
Views: 713
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, 02:40 AM
|
|
Replies: 3
Views: 193
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, 05:14 AM
|
|
Replies: 1
Views: 564
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-10-2001, 11:30 PM
|
|
Replies: 2
Views: 227
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, 11:08 AM
|
|
Replies: 2
Views: 356
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, 12:29 AM
|
|
Replies: 3
Views: 409
|
Forum: General
08-02-2001, 09:00 AM
|
|
Replies: 1
Views: 334
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, 07:10 AM
|
|
Replies: 4
Views: 261
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, 03:46 AM
|
|
Replies: 1
Views: 296
|
Forum: General
07-14-2001, 11:23 PM
|
|
Replies: 1
Views: 432
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, 03:14 AM
|
|
Replies: 4
Views: 339
|
Forum: General
07-08-2001, 10:23 PM
|
|
Replies: 4
Views: 339
|
Forum: General
07-08-2001, 10:19 PM
|
|
Replies: 4
Views: 295
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, 04:08 AM
|
|
Replies: 3
Views: 277
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, 10:25 PM
|
|
Replies: 4
Views: 295
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, 08:39 AM
|
|
Replies: 4
Views: 295
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, 06:45 AM
|
|
Replies: 1
Views: 276
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, 06:42 AM
|
|
Replies: 1
Views: 513
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, 06:37 AM
|
|
Replies: 2
Views: 204
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, 06:58 AM
|
|
Replies: 1
Views: 705
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-11-2001, 11:10 PM
|
|
Replies: 4
Views: 551
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, 04:41 AM
|
|
Replies: 4
Views: 551
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, 04:39 AM
|
|
Replies: 6
Views: 1,261
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, 12:01 PM
|
|
Replies: 4
Views: 409
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, 08:43 AM
|
|
Replies: 1
Views: 812
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, 08:41 AM
|
|
Replies: 4
Views: 661
|
Forum: General
06-01-2001, 05:58 AM
|
|
Replies: 4
Views: 409
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, 05:53 AM
|
|
Replies: 4
Views: 661
|
Forum: General
05-30-2001, 02:02 AM
|
|
Replies: 4
Views: 910
|
Forum: General
05-30-2001, 02:00 AM
|
|
Replies: 1
Views: 302
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, 08:36 AM
|
|
Replies: 2
Views: 388
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, 10:07 PM
|
|
Replies: 4
Views: 323
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, 01:21 AM
|
|
Replies: 1
Views: 282
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, 06:28 AM
|
|
Replies: 2
Views: 1,355
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, 08:13 AM
|
|
Replies: 4
Views: 575
|
Forum: General
04-27-2001, 08:11 AM
|
|
Replies: 4
Views: 575
|
Forum: General
04-27-2001, 07:57 AM
|
|
Replies: 2
Views: 610
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, 08:10 AM
|
|
Replies: 4
Views: 575
|
Forum: General
04-21-2001, 06:23 AM
|
|
Replies: 1
Views: 405
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, 03:22 AM
|
|
Replies: 3
Views: 469
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, 12:18 AM
|
|
Replies: 1
Views: 299
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, 04:42 AM
|
|
Replies: 2
Views: 419
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, 02:39 AM
|
|
Replies: 2
Views: 992
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, 07:58 AM
|
|
Replies: 2
Views: 450
|