Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.33 seconds.
Search: Posts Made By: Eddy-B
Forum: General 04-03-2009, 03:34 PM
Replies: 2
Views: 1,144
Posted By Eddy-B
RE: C++ Builder (2009)

If you want to export functions from C++ use this format:
extern "C" __declspec(dllexport)
The dllexport tells the compiler to export your function, and the extern "C" part ensures that it won't...
Forum: General 12-11-2008, 08:36 AM
Replies: 2
Views: 1,359
Posted By Eddy-B
RE: How to set the Mouse or cursor point in a component in Delphi?

You probably mean the caret (which is NOT the mouse cursor, but the keyboard input cursor).

To save the location you will have to save some extra information onto disk to "remember" where it was,...
Forum: General 10-30-2008, 11:33 AM
Replies: 1
Views: 903
Posted By Eddy-B
RE: build with runtime packages

Amos,
I hope you understand that runtime packages were invented so you can use them from any executable (exe or dll) whithout having to include them into those executables. In the end, it saves...
Forum: General 10-30-2008, 11:21 AM
Replies: 1
Views: 828
Posted By Eddy-B
Double question

Please ask questions only once.

An expert will get to it eventually, even if it takes a day or so..



Eddy-B

Please click Accept as answer if this helped
Forum: General 10-30-2008, 11:19 AM
Replies: 1
Views: 2,082
Posted By Eddy-B
RE: Max integer value exceeded

If your pkey is a VARCHAR why oh why are you requesting it as an number[/i] ?!?

--------------------------------------------------------------------------


Your problem is this:
(not knowing...
Forum: General 10-30-2008, 11:05 AM
Replies: 1
Views: 1,750
Posted By Eddy-B
RE: Component problem

I currently don't have Delphi installed, but i have designed some components over the years. Here's some advice:

don't use Repaint; use Invalidate instead.
have you tried it without your...
Forum: General 10-30-2008, 10:46 AM
Replies: 1
Views: 896
Posted By Eddy-B
RE: set focus problem

How about something like this:

procedure FormShow
begin
CloseTab:=false;
end;

procedure PageControlDblClick
begin
CloseTab:=true;
Forum: General 10-30-2008, 10:37 AM
Replies: 1
Views: 984
Posted By Eddy-B
RE: Zoom Imagesin Scrollbox

Step 1: don't use a scrollbox, use a TScrollBar instead.
Step 2: create an OnScroll event:
Step 3: depending on the position of the bar, resize the image

Eddy-B

Please click Accept as answer...
Forum: General 10-30-2008, 10:33 AM
Replies: 1
Views: 3,948
Posted By Eddy-B
RE: TGridPanel + TScrollBox

Use the AutoScroll property of TForm to automaticly put scrollbars on your form when your controls don't fit on it.

To have center-functionality: put 1 panel in the middle of your form and put...
Forum: General 10-30-2008, 10:28 AM
Replies: 8
Views: 5,946
Posted By Eddy-B
RE: TMainMenu Background Color with Windows XP-Style

If you include an XPManifest into your resource it will all look fine (with XP style VCL components).

Just do a search in this forum (or on google) to find out how to insert it into your...
Forum: General 06-15-2008, 10:15 AM
Replies: 2
Views: 1,333
Posted By Eddy-B
RE: How to make ListBox.Scrollbar invisible ?

I think what you want is not possible with a default listbox (although i have never tried what you sugguest).

The width of a scrollbar is user-specific and is determined by the SystemMetrics.
...
Forum: General 06-15-2008, 10:08 AM
Replies: 1
Views: 695
Posted By Eddy-B
RE: How does an application find and load the dll

Windows first looks in the SAME folder where the calling executabel is located.
If it cannot find the DLL, it continues scanning the PATH and the windows/system folders.

check the MSDN...
Forum: General 06-15-2008, 10:05 AM
Replies: 5
Views: 963
Posted By Eddy-B
RE: Secondary form resizing

Create smaller windows, or have your application require a minimal resolution.
(i always turn Scaled off, because to totally f*cks up your forms if you leave it on, and then change resolution).
...
Forum: General 06-06-2008, 05:01 AM
Replies: 6
Views: 1,205
Posted By Eddy-B
RE: Modal Form in DLL returning 2 Dates?

That's what it does!

You have to include the code i sugguested (procedure GetDates) in the DLL. The code will create the form, wait for it to execute and put the 2 resulting dates in the 2 vars...
Forum: DB-Aware 06-05-2008, 03:36 AM
Replies: 3
Views: 5,900
Posted By Eddy-B
RE: SQL query to Delete record from DBGrid only if it exists in table

Add the following lines:
Query1.SQL.Add('SELECT FROM StudDB WHERE RollNo="'+RN.Text+'"');
Query1.Open;
if Query1.IsEmpty then ShowMessage( ... );
else begin
Query1.Close;
Query1.SQL.Clear;...
Forum: General 06-05-2008, 03:28 AM
Replies: 3
Views: 1,222
Posted By Eddy-B
RE: Searching problem ...!

1) If your want to use the search/locate functionality of TDataSet you need to index the required field.

2) if you want to edit records you need to inform the BDE to do so:Table2.Edit;
{ do your...
Forum: General 06-05-2008, 03:24 AM
Replies: 6
Views: 1,205
Posted By Eddy-B
RE: Modal Form in DLL returning 2 Dates?

It's been quite some time since i actually programmed in Delphi (i've been using C++ for many years now), but this should work fine:

procedure GetDates(var date1, date2: TDateTime);
begin
...
Forum: General 06-05-2008, 12:49 AM
Replies: 4
Views: 6,666
Posted By Eddy-B
RE: Error: Unable to create process: The parameter is incorrect??

What you describe is what happens when the project destination DLL is not the one being called from the exe.


The essence is: the DLL and EXE need to be in the same folder: you compile the exe...
Forum: General 06-05-2008, 12:40 AM
Replies: 4
Views: 862
Posted By Eddy-B
RE: One more dll question

If you load a library and call a function within the dll from another module (either exe or another dll), control will not be turned back to the calling module, until the function returns.

This...
Forum: General 06-05-2008, 12:26 AM
Replies: 1
Views: 707
Posted By Eddy-B
RE: Check fields of text file

I don't like chewing someone else's food, so here's a few pointers that should help you along the way:

1) open the file you want to read using FileOpen('NAME OF FILE',fmOpenRead)

2) read the...
Forum: General 06-05-2008, 12:19 AM
Replies: 3
Views: 4,742
Posted By Eddy-B
RE: Problem with Panel repaint/refresh

To instruct Windows to repaint a control, you should use the function Invalidate like this:nPan.Invalidate;

Eddy-B

Please click Accept as answer if this helped
Forum: General 06-05-2008, 12:17 AM
Replies: 4
Views: 6,666
Posted By Eddy-B
RE: Error: Unable to create process: The parameter is incorrect??

This is not the way to debug the dll.

You would run your dll by selecting a host exe as you have done. Then you just start your program (press run in Delphi). It will load the exe, and in turn the...
Forum: General 05-26-2008, 10:14 AM
Replies: 1
Views: 2,122
Posted By Eddy-B
RE: BitBtn Button OnMouseEnter and OnMouseLeave ?

You'll have to track the mouse event using the TrackMouseEvent function as follows:

procedure OnMouseMove(Sender: TObject);
begin
if not TrackingMouse begin
...
Forum: General 04-18-2008, 06:13 AM
Replies: 1
Views: 864
Posted By Eddy-B
RE: save soundwave in sampling data

WAV = Sampling data format (+ a small file header).

So basicly, if you save it as a wavefile, and just remove the header, you'd get what you want. BUT; without the header, there will be no way to...
Forum: General 02-13-2008, 02:42 AM
Replies: 3
Views: 1,037
Posted By Eddy-B
RE: bit operations

http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-3.html#HEADING3-42

Eddy-B

Please click Accept as answer if this helped
Forum: General 02-08-2008, 06:33 AM
Replies: 10
Views: 3,355
Posted By Eddy-B
RE: Print to Excel

read this post (http://www.delphipages.com/threads/thread.cfm?ID=186867&G=186832).
Searching this forum (or google) for the word excel and you'll find a lot of good help as well.

Eddy-B

Please...
Forum: General 01-28-2008, 05:22 AM
Replies: 3
Views: 1,206
Posted By Eddy-B
RE: Using a 'Non Default' cursor

Sometimes i hate it when this forum does not allow editing after posting...
anyway.. it should read "Cursor" not "Caret" in the first sentence

Eddy-B

Please click Accept as answer if this...
Forum: General 01-28-2008, 05:19 AM
Replies: 3
Views: 1,206
Posted By Eddy-B
RE: Using a 'Non Default' cursor

Depending on your delphi version, you can use OnMouseEnter and OnMouseExit to change the mouse pointer (=Caret). If you have and older version (i don't know when these methods were implemented, but...
Forum: General 01-28-2008, 04:58 AM
Replies: 3
Views: 3,362
Posted By Eddy-B
RE: Checkbox in Stringgrid - help

It may help if you assign them a parent

procedure TForm1.DrawCheckboxs;
var i: Integer;
chk: TCheckBox;
begin
for i := 0 to StringGrid.Rowcount do begin
chk :=...
Forum: General 01-24-2008, 04:47 AM
Replies: 6
Views: 6,076
Posted By Eddy-B
RE: FormClose

Isn't it better in this case, to not show the form at all if the password is incorrect ?

if password='PASSWORD' then Form.Show;

Eddy-B

Please click Accept as answer if this helped
Forum: General 12-31-2007, 12:22 AM
Replies: 4
Views: 1,690
Posted By Eddy-B
RE: Compiler questions (C++)

This looks like a pretty normal C++ form source.#include <string.h>
#include <string> <-- errorThere does seem to be something odd with the header: you've include string.h and then...
Forum: General 12-27-2007, 01:40 PM
Replies: 4
Views: 1,690
Posted By Eddy-B
RE: Compiler questions (C++)

C++ Builder has always been like that. Top be honest, i was amazed how fast it could compile a simular program made in Delphi!

The things you need to check is the precompiled headers:
Anything...
Forum: General 12-19-2007, 04:19 AM
Replies: 2
Views: 910
Posted By Eddy-B
RE: wm_user doesnt work

Also take into account Borland also uses message IDs beyond WM_USER
Your message may already be assigned to a borland-specific message.

For example, the following messages ALL translate to...
Forum: General 12-18-2007, 05:24 AM
Replies: 3
Views: 739
Posted By Eddy-B
RE: Component.. Please Help

Once you have created the frame, you can "drop" it into a form by clicking the frame icon on your component toolbar (or tool palette, if you're using BDS); it looks like a window inside another...
Forum: General 12-17-2007, 02:06 AM
Replies: 3
Views: 1,878
Posted By Eddy-B
RE: Sort In ListBox ?

Why not just use the TListBox.Sorted property ?
That way you don't even NEED a quicksort routine!

Eddy-B

Please click Accept as answer if this helped
Forum: General 12-13-2007, 10:38 PM
Replies: 3
Views: 928
Posted By Eddy-B
RE: ListBox Jump (C++)

As i said: you can get the index of the item you just entered from the Add method (or from IndexOf).
USE that information to jump right back:

ListBox1->ItemIndex=ListBox1->Items->Add("string");
...
Forum: General 12-13-2007, 10:07 PM
Replies: 3
Views: 928
Posted By Eddy-B
RE: ListBox Jump (C++)

ListBox->Items->Add("XXXX") will return the index of the item you just added.
In addition, you can retrieve the first occurance of a string by calling IndexOf:

int...
Forum: General 12-12-2007, 06:39 AM
Replies: 3
Views: 1,406
Posted By Eddy-B
RE: UrlDownloadToFile (C++)

Don't worry
I've always been amazed about Pascal (delphi) programmers and their ability to inconsequently use CAPS. It's inconsistent, it's stupid, and above all: it creates problems when porting to...
Forum: General 12-11-2007, 11:34 PM
Replies: 3
Views: 1,406
Posted By Eddy-B
RE: UrlDownloadToFile (C++)

Did you know C++ is CaSe SenSitiVe ?
the correct function name is: URLDownloadToFile

Eddy-B

Please click Accept as answer if this helped
Forum: General 12-10-2007, 02:48 AM
Replies: 2
Views: 943
Posted By Eddy-B
RE: Delphi and Excel

http://dialspace.dial.pipex.com/town/pipexdsl/r/arbd00/raffle/
http://www.djpate.freeserve.co.uk/Automation.htm
and of course:
http://www.delphipages.com/threads/index.cfm?LSR=1&SR=excel

Eddy-B...
Forum: General 12-10-2007, 02:46 AM
Replies: 7
Views: 2,908
Posted By Eddy-B
RE: CSV Import

well, thanx :)

Eddy-B

Please click Accept as answer if this helped
Forum: General 12-06-2007, 10:22 PM
Replies: 7
Views: 2,908
Posted By Eddy-B
RE: CSV Import

I'm assuming the Delimiter also contains a #9 string.
Delphi help:if P equals 0 after that instruction, you may have found a bug in the delphi subsystem.

Eddy-B

Please click Accept as answer...
Forum: General 12-05-2007, 10:38 PM
Replies: 7
Views: 2,908
Posted By Eddy-B
RE: CSV Import

Have you debugged it ?

You should break on the second line [ P := Pos(Delimiter, S); ] and see if it finds the tab, and if in fact there IS a tab in the source string (inspect S and see whats in...
Forum: General 12-05-2007, 10:34 PM
Replies: 2
Views: 1,465
Posted By Eddy-B
RE: How to include swf file into exe file?

You can include it in the resource, and load it from there.

There are resource managers available (i use XN Resource Editor and ResourceHacker before). You can add any resource type using the...
Forum: General 12-05-2007, 10:27 PM
Replies: 1
Views: 849
Posted By Eddy-B
RE: reg. date time error

This happens when you set both date and time to zero.
DateTimePicker uses a zero-date for the 'unchecked' value.

If you set the time to something other than zero (i.e. midnight) you should be...
Forum: General 12-04-2007, 06:19 AM
Replies: 2
Views: 754
Posted By Eddy-B
RE: LoadFromStream doesn't work in Win98/Me

Read of address-errors occur when you have not yet created the object you are refering ot, or have destroyed it already. Please check to see if your TStream is created correctly and at the right time...
Forum: General 12-04-2007, 06:17 AM
Replies: 5
Views: 1,330
Posted By Eddy-B
RE: Strings in code visible to debuggers/hex editors?

Creating a simple scrambler is fairly easy: it doesn't have to be good, it has to only make the string unrecognisable, without looking through the code itself.

A simple letter-replacement routine...
Forum: General 12-03-2007, 12:35 AM
Replies: 1
Views: 1,106
Posted By Eddy-B
RE: Skins - change color gradients for the window title bar border

You'll have to handle the WM_NCPAINT messages.
Windows sends them to your application when it needs to paint the frames and caption of a window. Read your win32 SDK help files on this topic.
...
Forum: General 12-03-2007, 12:32 AM
Replies: 5
Views: 1,330
Posted By Eddy-B
RE: Strings in code visible to debuggers/hex editors?

Theoretically, one can always unpack/unscramble .. the executable has to unscramble itself to be able to run. So if your exe can do that, so can someone else, with the use of a tool. I think the best...
Forum: General 11-30-2007, 06:49 AM
Replies: 9
Views: 1,806
Posted By Eddy-B
RE: how calculate the age but, year monh days ?

The TDateTime structure in Delphi is a floating point value, which means one can simply subtract one date from another to find the diference between them. The result is the number of days between the...
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 05:54 AM.


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