Search Results

Showing results 1 to 40 of 71
Search took 0.01 seconds.
Search: Posts Made By: Micheus
Forum: Pascal and Delphi Sep 30th, 2008
Replies: 12
Views: 4,133
Posted By Micheus
Just another way to do this - introducing recursivity (http://en.wikipedia.org/wiki/Recursion):
function Reverse(var value :string; start :integer) :string;
var
StrTmp :string;
begin
if...
Forum: Pascal and Delphi Sep 29th, 2008
Replies: 6
Views: 1,642
Posted By Micheus
Sorry. I'm a stupid. I have talking just the opositive in the post #2.

Now I have tested.
program Project1;
{$R *.res}
uses
Windows,
Messages,
SysUtils,
Variants,
Forum: Pascal and Delphi Sep 27th, 2008
Replies: 6
Views: 1,642
Posted By Micheus
ops... writing in portuguese!!! :icon_cheesygrin:
Sorry by don't answer you before - I was not notified by e-mail.

You will need to write procedure code normally and assigned to the events at...
Forum: Pascal and Delphi Sep 14th, 2008
Replies: 6
Views: 1,642
Posted By Micheus
If You don't have dfm to the form You cannot make by this way. You will need to create your form step-by-step in the source code. Try this:
program Project1;
{$R *.res}
uses
Windows, Messages,...
Forum: Pascal and Delphi May 26th, 2008
Replies: 1
Views: 1,107
Posted By Micheus
sheady, take a look at this sample (http://www.swissdelphicenter.ch/torry/showcode.php?id=1655) at Torry's Delphi Pages - there is two ways - the first is more simple.

Rich reference - msdn...
Forum: Pascal and Delphi May 16th, 2008
Replies: 10
Views: 2,364
Posted By Micheus
Thank you by this support Duoas. I forgot to explain this.

both is the same thing - pointing to same memory address.

You must use bp to move across memory allocated to pTcpHdr.
If you change...
Forum: Pascal and Delphi May 15th, 2008
Replies: 10
Views: 2,364
Posted By Micheus
I'm not sure about Delphi I, but maybe you can do something like this:
var
PtrSource :^Byte;
begin
PtrSource := pTcpHdr;
Inc(PtrSource, sizeof (VPNSEC_HEADER));
Move(pTcpHdr^,...
Forum: Pascal and Delphi May 15th, 2008
Replies: 10
Views: 2,364
Posted By Micheus
I think that you can use this procedures (bellow) from System unit:
memmove or memcpy: procedure Move(const Source; var Dest; Count: Integer);

memset: procedure FillChar(var X; Count: Integer;...
Forum: Pascal and Delphi May 14th, 2008
Replies: 2
Views: 761
Posted By Micheus
Olsi009, start with this changes:
Procedure Kontrollo_listen(Var l:fjale;fj2:str);
Var tmp,tmp2,koka:fjale; c:boolean;
Begin
c:=False;
tmp:=l; koka:=l;
If tmp=nil then
Begin
...
Forum: Pascal and Delphi May 13th, 2008
Replies: 8
Views: 4,458
Posted By Micheus
If you omit {$APPTYPE CONSOLE} your application will run in "hidden mode".

Put a icon in systray will exige a window handle to interaction with your application (I think). Is possoble create a...
Forum: Pascal and Delphi May 13th, 2008
Replies: 12
Views: 2,983
Posted By Micheus
There is some options:
- use an other query with calculated fields and OnCalcFields event, if you using DBGrid ;
- use join in SQL, if your data is only to be read;
- use an other query to show...
Forum: Pascal and Delphi May 13th, 2008
Replies: 12
Views: 2,983
Posted By Micheus
Not all. Only use a query component with restricted SQL instruction - use WHERE clause in order to get only the respective record at once - and in SELECT clause, use only the necessary fields (not...
Forum: Pascal and Delphi May 8th, 2008
Replies: 8
Views: 4,458
Posted By Micheus
mfran2002, You can use SetTimer API function to do this and pass 0 (null) to function in hwnd param.

But is necessary that You use the GetMessage and DispatchMessage API's functions in order to...
Forum: Pascal and Delphi May 8th, 2008
Replies: 2
Views: 675
Posted By Micheus
You can use TMediaPlayer component.
Take a look on this Abolut.com page (http://delphi.about.com/library/bluc/ucappsmultimedia.htm) and download the sample Media Walker.

Bye
Forum: Pascal and Delphi May 8th, 2008
Replies: 2
Views: 685
Posted By Micheus
jamesbond110, see this points:
- that "end" in the program main block must be ended with point (.), not a semicolon (;)
- your "c" variable is defined like a tClasses (a record type), so You can't...
Forum: Pascal and Delphi May 7th, 2008
Replies: 12
Views: 2,983
Posted By Micheus
when you must to initilize it.

You can't.
DisableControls only will "stops" to update any data-aware control connected to this dataset. Moving across dataset will trigger this evento in order to...
Forum: Pascal and Delphi May 7th, 2008
Replies: 8
Views: 4,458
Posted By Micheus
mfran2002, the OnTimer event expect that a TNotifyEvent be assigned to it.
see, from the help:
type TNotifyEvent = procedure (Sender: TObject) of object;think it like a procedure of a object. So,...
Forum: Pascal and Delphi May 7th, 2008
Replies: 12
Views: 2,983
Posted By Micheus
Does you have looked in the help file and search for OnCalcFields event?

MoZo1, this event occurs in many circumstances and many times. See this small portion:
OnCalcFields is called frequently,...
Forum: Pascal and Delphi May 4th, 2008
Replies: 14
Views: 2,523
Posted By Micheus
BDS load some thing; Your app uses it; BDS stop but this "thing" still is used by your app.
It sounds similar to a dll module load by an application...

At this point, when BDS was started, your...
Forum: Pascal and Delphi May 2nd, 2008
Replies: 14
Views: 2,523
Posted By Micheus
I think that it's the best way to confirme if there is some diferente thing loaded by BSD.

I recommend Process Explorer v11.13...
Forum: Pascal and Delphi Apr 22nd, 2008
Replies: 3
Views: 816
Posted By Micheus
manutd4life230, just try this:
subtract:= -GetUserInput('Enter another number:') +GetUserInput('Enter a number:');
just because:
Enter a number = 1stValue
Enter another number = 2ndValue

then:...
Forum: Pascal and Delphi Apr 18th, 2008
Replies: 2
Views: 1,079
Posted By Micheus
In design-mode, just drop a TPicture component (Additiona pallete) to your form, then double-click it, click Load... button and select bmp file.
Forum: Pascal and Delphi Apr 17th, 2008
Replies: 4
Views: 1,385
Posted By Micheus
lespitts, may be this help You, but could it not be a better solution.

It is equivalente to press key Print Screen (screen shot):
Keybd_Event(VK_Snapshot, 0, 0, 0);

It is equivalente to press...
Forum: Pascal and Delphi Apr 17th, 2008
Replies: 6
Views: 2,111
Posted By Micheus
Hi simps0n,

Without taking in consideration any others questions, You must to call randomize procedure just an once time in Your project (take a look in help about it).

So, put the call to this...
Forum: Pascal and Delphi Apr 17th, 2008
Replies: 2
Views: 1,254
Posted By Micheus
Hi ecostas, try this my function that simules keyboard pressed:
procedure ForcedDropDownList(OpenList :Boolean);
begin
if OpenList then
begin
keybd_event(VK_MENU, MapVirtualKey(VK_MENU,...
Forum: Pascal and Delphi Mar 25th, 2008
Replies: 2
Views: 2,378
Posted By Micheus
Thew, try to add faDirectory to file attribute search param:
if ALWinInetFTPClient11.FindFirst(Path + FileName, faDirectory or faAnyFile, Rec) = 0 then

Bye
Forum: Pascal and Delphi Mar 25th, 2008
Replies: 2
Views: 3,419
Posted By Micheus
Hi Thew.

first, one of your problem is assigned to wrong value that You pass to Read/Writeblock buffer size parameter. You are using 1, that means You will read or write 1 Byte only - it's not...
Forum: Pascal and Delphi Mar 5th, 2008
Replies: 16
Views: 2,303
Posted By Micheus
There are many time that I stop to use BP/BPW but I think I can help with this thread. Let me try...

Are You sure that the error message shows crt.tpu and not crt.tpw?

I question You about this...
Forum: Pascal and Delphi Feb 28th, 2008
Replies: 9
Views: 3,344
Posted By Micheus
I download it with no problem...

So, try download than from my shared resources on 4Shared (http://www.4shared.com/dir/573181/3065a3a3/sharing.html). Looking for Programacao folder and expand it....
Forum: Pascal and Delphi Feb 27th, 2008
Replies: 5
Views: 1,918
Posted By Micheus
Made use from procedures. To menu, use CASE like Duoas sugest You and try some thing lik this:
procedure ProcessMenu;
begin
clrscr;
gotoxy(31,1);
write('Peters Petrol Pump');
...
Forum: Pascal and Delphi Feb 27th, 2008
Replies: 9
Views: 3,344
Posted By Micheus
I have a sample, but I build than with Delphi7 compiler, using TServerSocket and TClientSocket from Internet pallete.

It shows how to:
- save the connected client in order to interchange data;...
Forum: Pascal and Delphi Feb 6th, 2008
Replies: 9
Views: 1,155
Posted By Micheus
And You have had implement this at first. You just will need to use the code that You post at first in this thread and change it by using the Douas approach.

Your code was working. Isn't it right?...
Forum: Pascal and Delphi Feb 5th, 2008
Replies: 9
Views: 1,155
Posted By Micheus
You must test the code that Duoas post for You. I think You don't.

Just try Duoas's code by other way - may be You can see:var s1, s2, s3: string;

procedure zero;
begin
s1 := s1 +' _ ';
...
Forum: Pascal and Delphi Feb 3rd, 2008
Replies: 1
Views: 1,705
Posted By Micheus
This is very simple to solve. Take a look at this article Running Flash animations with Delphi (http://delphi.about.com/od/graphics/l/aa040103a.htm) (at About.com)

but...
It is more complicated....
Forum: Pascal and Delphi Feb 3rd, 2008
Replies: 6
Views: 2,168
Posted By Micheus
Ok.
I have searched for some example that help you and I found one at Torry's Delphi Pages (link (http://www.swissdelphicenter.ch/torry/showcode.php?id=1095)). It will show how to use this function...
Forum: Pascal and Delphi Jan 29th, 2008
Replies: 6
Views: 2,168
Posted By Micheus
As I have said, I cannot help you much more, because I cannot try an implementation for this case. But, I think you could replace InternetOpen by InternetConnect function.
If You looked at msdn link...
Forum: Pascal and Delphi Jan 28th, 2008
Replies: 6
Views: 2,168
Posted By Micheus
I cannot help you much more, but take a look in InternetConnect (http://msdn2.microsoft.com/en-us/library/aa384363(VS.85).aspx) function (from msdn).

bye
Forum: Pascal and Delphi Jan 6th, 2008
Replies: 7
Views: 9,151
Posted By Micheus
Ops...
I was looking for my mistake and found it here (http://www.daniweb.com/forums/post496476-8.html). I'm very sorry and will try don't make it again. :$

Here is common some people to write...
Forum: Pascal and Delphi Jan 6th, 2008
Replies: 7
Views: 9,151
Posted By Micheus
Duoas, congratulations for this excelent tutorial.

First, let me add that DateUtils unit (delphi 7) provide a lot of other functions to manipulate date and time (if someone look for it on Delphi...
Forum: Pascal and Delphi Dec 22nd, 2007
Replies: 10
Views: 2,693
Posted By Micheus
Good Duos, right to the point!
But (every time has a but... :icon_smile:) at line 13 I think that something is wrong. I think It must be:
result := xs[high( xs )];


At this point, I have to...
Showing results 1 to 40 of 71

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC