Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 46 of 46
Search took 0.06 seconds.
Search: Posts Made By: SilverBoy
Forum: General 11-04-2011, 04:17 AM
Replies: 3
Views: 9,881
Posted By SilverBoy
If you use delphi 2009 or latter you can use...

If you use delphi 2009 or latter you can use FindFiles method of TDirectory class from IOUtils unit like below to find all file in a directory and delete theme :

var
Str: String;
begin
for...
Forum: General 11-01-2011, 07:21 AM
Replies: 1
Views: 4,189
Posted By SilverBoy
Visit below link ;) ...

Visit below link ;)
http://www.delphipages.com/forum/showthread.php?t=208779
Forum: General 09-24-2011, 03:41 AM
Replies: 3
Views: 2,173
Posted By SilverBoy
You don't need it ...

You don't need it ...
Forum: General 09-23-2011, 03:47 AM
Replies: 3
Views: 2,173
Posted By SilverBoy
You must write your own EntryPoint for your DLL :...

You must write your own EntryPoint for your DLL :

function CallPluginVersion: integer;
// function PluginMain(Event: PChar; Data: Pointer): Integer; cdecl;

implementation

uses uMain;

var
Forum: General 08-22-2011, 09:02 AM
Replies: 4
Views: 4,465
Posted By SilverBoy
We change the entry point of dll to own event and...

We change the entry point of dll to own event and call it when dll attach to process , it is not possible to do it when dll deattach from process , windows do it automatically , you can test it ,...
Forum: General 08-20-2011, 07:22 AM
Replies: 4
Views: 4,465
Posted By SilverBoy
You should do it like this : library...

You should do it like this :

library Project1;

uses
Windows,
SysUtils,
Classes,
ExtCtrls;
Forum: General 07-31-2011, 11:33 AM
Replies: 2
Views: 2,304
Posted By SilverBoy
Put your class code here .

Put your class code here .
Forum: General 07-21-2011, 03:38 PM
Replies: 1
Views: 1,711
Posted By SilverBoy
Hi Mohsen , There is such book - "Delphi...

Hi Mohsen ,

There is such book - "Delphi for fun and seriously. That hackers" (M.E.Flenov
www.vr-online.ru) are able. There there is a ready example of a firewall.
Forum: General 07-15-2011, 03:01 PM
Replies: 1
Views: 1,719
Posted By SilverBoy
You should use psFile from psTools...

You should use psFile from psTools (http://technet.microsoft.com/en-us/sysinternals/bb896649) package .
Forum: General 07-15-2011, 02:56 PM
Replies: 1
Views: 1,903
Posted By SilverBoy
You can use TFileStream or TMemoryStream class to...

You can use TFileStream or TMemoryStream class to do it .
Forum: General 06-19-2011, 06:50 PM
Replies: 8
Views: 3,606
Posted By SilverBoy
You should first create your object with an owner...

You should first create your object with an owner then set the parent of it to other window , do it like this :

var
Hand: THandle;
Object1: TButton;
begin
Hand := ...
Forum: General 06-14-2011, 03:01 PM
Replies: 8
Views: 3,606
Posted By SilverBoy
Your last code must don,t work because you send...

Your last code must don,t work because you send Handle of main window of Notepad as parent to CreateParented method , you must find the child of notepad main window useing FindWindowEX .

i don,t...
Forum: General 06-12-2011, 11:35 AM
Replies: 8
Views: 3,606
Posted By SilverBoy
The code work correctly , are you sure your...

The code work correctly , are you sure your ClassName & WindowName in FindWindow function is exists ?
Forum: General 06-09-2011, 02:21 PM
Replies: 2
Views: 5,284
Posted By SilverBoy
var StrArray: Array of String; I:...

var
StrArray: Array of String;
I: Integer;
begin
SetLength(StrArray, ListBox1.Items.Count);
for I := 0 to ListBox1.Items.Count - 1 do
StrArray[i]:= ListBox1.Items.Strings[i];
end;
Forum: General 06-08-2011, 03:10 PM
Replies: 5
Views: 2,926
Posted By SilverBoy
You should check that Sender contain TListBox...

You should check that Sender contain TListBox object data , if true then Typecast it to TListBox and finally check it , write below code in MyListBoxOnClick event :

if (Sender is TListBox) then...
Forum: General 05-17-2011, 09:21 AM
Replies: 5
Views: 2,293
Posted By SilverBoy
You can do it using Fast Report component package...

You can do it using Fast Report component package .
Forum: General 04-29-2011, 03:56 AM
Replies: 4
Views: 6,017
Posted By SilverBoy
Select "Project" and then "View Source" , add...

Select "Project" and then "View Source" , add "ShareMem" unit to uses of your project , remember that "ShareMem" must be the first unit uses in project .

Delphi note this on start creating a DLL :...
Forum: VCL 04-27-2011, 07:12 PM
Replies: 3
Views: 3,260
Posted By SilverBoy
var before, after: string; begin before...

var
before, after: string;
begin
before := DateToStr(Date);
after := StringReplace(before, '/', '-', [rfReplaceAll]);
ShowMessage(after);
end;
Forum: General 04-13-2011, 07:37 AM
Replies: 2
Views: 2,080
Posted By SilverBoy
You can draw your image using Canvas.StretchDraw...

You can draw your image using Canvas.StretchDraw method .
Forum: General 01-17-2011, 05:50 AM
Replies: 10
Views: 3,032
Posted By SilverBoy
for return it to normal style do like below : ...

for return it to normal style do like below :
Font.Style := [];
Forum: General 12-24-2010, 03:12 PM
Replies: 1
Views: 1,835
Posted By SilverBoy
You should load your picture from a dynamic path...

You should load your picture from a dynamic path , for example we have a folder beside your executable application file called "Image" for load an image from it you should use path like this :...
Forum: General 12-19-2010, 01:51 PM
Replies: 1
Views: 1,712
Posted By SilverBoy
Search about Mapped Files & ReadProcessMemory &...

Search about Mapped Files & ReadProcessMemory & WriteProcessMemory in MSDN .
Forum: Samples 12-19-2010, 01:45 PM
Replies: 1
Views: 7,566
Posted By SilverBoy
You can do this using idIPWatch component of Indy...

You can do this using idIPWatch component of Indy component package .
Forum: General 12-05-2010, 01:13 PM
Replies: 6
Views: 3,300
Posted By SilverBoy
Are you use Delphi 2009 or later ? In Delphi 2009...

Are you use Delphi 2009 or later ? In Delphi 2009 and later you can use "for in" statment , use function that i wrote in #Post2 , if you use Delphi 7 say .
Forum: VCL 12-04-2010, 07:51 AM
Replies: 1
Views: 10,390
Posted By SilverBoy
Set Pen.Style method of Canvas to psClear , for...

Set Pen.Style method of Canvas to psClear , for example :

Canvas.Pen.Style:= psClear;
Canvas.Brush.Color:= clRed;
Canvas.Rectangle(10,10,100,100);
Forum: General 12-04-2010, 05:38 AM
Replies: 6
Views: 3,300
Posted By SilverBoy
Your code is wrong , you collation an integer by...

Your code is wrong , you collation an integer by a char , your code will change like this :


aStr:='this is a text "sample" in this box.';
if Pos('"',aStr) > 0 then
begin
while...
Forum: General 12-03-2010, 08:06 PM
Replies: 2
Views: 1,756
Posted By SilverBoy
You can Overload Constructor of your TfrmMain...

You can Overload Constructor of your TfrmMain class to give file name as parameter like this :

unit Unit2;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,...
Forum: General 12-03-2010, 11:15 AM
Replies: 6
Views: 3,300
Posted By SilverBoy
function StrReplace(Const SearchStr: String):...

function StrReplace(Const SearchStr: String): String;
var
Check: Boolean;
Chr: Char;
begin
Result:= '';
Check:= False;
for Chr in SearchStr do
begin
if Chr= '"' then
Forum: General 12-03-2010, 03:57 AM
Replies: 11
Views: 9,715
Posted By SilverBoy
Use SetCaretPos API function.

Use SetCaretPos API function.
Forum: General 12-02-2010, 03:39 PM
Replies: 2
Views: 1,974
Posted By SilverBoy
What,s your problem ? var Dmod:...

What,s your problem ?

var
Dmod: TDataModule;
T: TTimer;
begin
Dmod:= TDataModule.Create(Self);
Dmod.Name:= 'MyDataModule';
T:= TTimer.Create(Dmod);
T.Name:= 'MyTimer';
Forum: VCL 11-30-2010, 03:43 PM
Replies: 3
Views: 5,364
Posted By SilverBoy
Hi, You can get handle of control that mouse...

Hi,

You can get handle of control that mouse cursor on it by WindowFromPoint API , then you can get the name of that control using FindControl function like below code :

var
H: THandle;
...
Forum: General 11-23-2010, 06:13 PM
Replies: 3
Views: 1,998
Posted By SilverBoy
Hi, if you set DataSource property of...

Hi,

if you set DataSource property of DBGrid to DataSource that DBNavigator use it , automatically when you navigating the records DBGrid highlight current record .
Forum: VCL 11-21-2010, 12:18 AM
Replies: 1
Views: 3,758
Posted By SilverBoy
Hi, Your code work correctly on Delphi 2010...

Hi,

Your code work correctly on Delphi 2010 and return below text :
{"responseData": {"translatedText":"domaće zadaće"}, "responseDetails": null, "responseStatus": 200}
Forum: General 11-01-2010, 03:54 AM
Replies: 2
Views: 1,505
Posted By SilverBoy
ADOTable1.Filtered := False; ADOTable1.Filter...

ADOTable1.Filtered := False;
ADOTable1.Filter := 'age >= ' + '20' + ' and age <= ' + '30';
ADOTable1.Filtered := True;
if ADOTable1.RecordCount< 1 then
ShowMessage('Nothing found');
Forum: VCL 10-26-2010, 09:32 PM
Replies: 2
Views: 2,242
Posted By SilverBoy
Hi amir, Today i reply to your question on...

Hi amir,

Today i reply to your question on Barnamenevis forms, but I say again here too :

You should set AlphaBlend property to True and set the value of AlphaBlendValue between 0 to 255 .
...
Forum: VCL 10-26-2010, 06:07 AM
Replies: 5
Views: 2,989
Posted By SilverBoy
The WinpCap library dont include demo but you can...

The WinpCap library dont include demo but you can find some samples on google.
Forum: VCL 10-24-2010, 04:36 AM
Replies: 5
Views: 2,989
Posted By SilverBoy
You must write a Device Driver , it is not simple...

You must write a Device Driver , it is not simple but you can use present Device Driver, in Delphi you can use WinpCap .

Regard, Silverboy.
Forum: Tools 10-02-2010, 08:38 AM
Replies: 9
Views: 32,643
Posted By SilverBoy
Cool USB Detector compoenent

Hi ,

Last day i need to detect wich USB device connected to or disconnected from computer in my project , so i wrote this component .

The component has two events :
1. OnArrival
2....
Forum: General 09-02-2010, 08:22 PM
Replies: 17
Views: 5,897
Posted By SilverBoy
Yes , i think you need to know which line of memo...

Yes , i think you need to know which line of memo has searched text , you can easily change that procedure i wrote in my first post to do that you need .
Forum: General 09-02-2010, 04:21 PM
Replies: 17
Views: 5,897
Posted By SilverBoy
Hi again , You can use Count method of...

Hi again ,
You can use Count method of TStringList class in this case :
SearchResult.Count;
Forum: VCL 09-02-2010, 02:25 PM
Replies: 3
Views: 15,548
Posted By SilverBoy
Hi , The last parameter passed to CopyFile...

Hi ,
The last parameter passed to CopyFile function is FailIfExists , when you pass it True the function do not overwrite the data if exists but when you pass this parameter as False , the function...
Forum: General 09-02-2010, 10:31 AM
Replies: 17
Views: 5,897
Posted By SilverBoy
Hi , I wrote sample procedure for you : ...

Hi ,
I wrote sample procedure for you :

Procedure SearchInMemo(Memo: TMemo; TextToSearch: String; var StrList: TStringList);
var
LineNO: Integer;
begin
for LineNO:= 0 to Memo.Lines.Count...
Forum: General 08-20-2010, 10:33 AM
Replies: 2
Views: 1,161
Posted By SilverBoy
Hi , You shoul write your code like this : ...

Hi ,
You shoul write your code like this :
var
Entries, Total : Integer;
MyList : TStringList;
begin
MyList:= TStringList.create;
try
MyList.LoadFromFile('Test.txt');
...
Forum: General 08-14-2010, 10:06 PM
Replies: 2
Views: 1,189
Posted By SilverBoy
Cool StackOver flow in thread searching

Hi evrey one ,

I wrote a sample APP for my self that search for all file in selected drive ( path ) , i use thread to have a better performance & speed , now when i select a drive like system...
Forum: DB-Aware 07-01-2010, 06:30 AM
Replies: 1
Views: 2,107
Posted By SilverBoy
Hi , I write sample for you , see Attachment.

Hi ,
I write sample for you , see Attachment.
Forum: General 07-01-2010, 05:42 AM
Replies: 9
Views: 4,135
Posted By SilverBoy
Hi , You can use TSizeControl component .

Hi ,
You can use TSizeControl component .
Showing results 1 to 46 of 46

 
Forum Jump

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


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