Search Results

Showing results 1 to 40 of 58
Search took 0.03 seconds.
Search: Posts Made By: Lord Soth ; Forum: Pascal and Delphi and child forums
Forum: Pascal and Delphi Apr 23rd, 2007
Replies: 3
Views: 4,057
Posted By Lord Soth
selectedword := words[random(high(MAX_WORDS))];

Assuming words array is 0 based like :

words : array [0..MAX_WORDS] of string;
Forum: Pascal and Delphi Jan 3rd, 2007
Replies: 7
Views: 3,619
Posted By Lord Soth
Hi,

One of the best resources on Delphi is the built-in help itself. It is more than a simple language reference.
http://www.crimsonksoft.com/delphihelp.GIF
Same is also valid for Visual...
Forum: Pascal and Delphi Jan 2nd, 2007
Replies: 4
Views: 10,151
Posted By Lord Soth
Writeln -> Write Line (to the console which is screen)
Forum: Pascal and Delphi Jan 2nd, 2007
Replies: 1
Views: 2,538
Posted By Lord Soth
Hi,

You can use Lazarus as an IDE with freepascal instead of dev-pascal (although I really like and recommend the bloodshed products and dev-c++). Lazarus is a pretty much Delphi like IDE with a...
Forum: Pascal and Delphi Jan 2nd, 2007
Replies: 7
Views: 3,619
Posted By Lord Soth
Hi,

try this :

edit6.text := edit1.text + edit2.text + edit3.text + edit4.text + edit5.text;

or even beter this :

edit6.text := '(url=' + edit2.text + '(b)' + edit4.text +...
Forum: Pascal and Delphi Jan 2nd, 2007
Replies: 4
Views: 10,151
Posted By Lord Soth
Hi,

Randomize just seeds the Random Number Generator (RNG) of Pascal/Delphi with the current time. You better put it as the first line of the code or before the first call to random() function....
Forum: Pascal and Delphi Jan 2nd, 2007
Replies: 12
Views: 3,923
Posted By Lord Soth
Hi,

It might sound off-topic too but all modern IDEs (Integrated Development Environment) incorporate a powerfull help which not only includes reference but also all kinds of tutorials. i.e. :...
Forum: Pascal and Delphi Dec 29th, 2006
Replies: 3
Views: 1,565
Posted By Lord Soth
Hi,

You need a resource editor like "Resource Hacker" which can show you the resource section (where icons, cursors and strings are stored in an EXE,DLL file) of an exe or a DLL file. Actually...
Forum: Pascal and Delphi Oct 17th, 2006
Replies: 10
Views: 14,282
Posted By Lord Soth
Hi,

Unless you need native (unmanaged) code support right now, there is no point in stopping your c# studies. Keep an eye on .Net 3 codename WinFX

Loren Soth
Forum: Pascal and Delphi Oct 15th, 2006
Replies: 2
Views: 3,550
Posted By Lord Soth
Hi,

1.Try this :
writeln('Shopping List');
writeln('Product Price');
writeln(prod+' '+price);

2.Instead of :
read([something]);
readln;
Forum: Pascal and Delphi Oct 15th, 2006
Replies: 2
Views: 4,345
Posted By Lord Soth
Hi,

FLV is a proprietary format and there isn't any component or API around to work with them natively although the format specs are published to some extend. You can convert the FLV to AVI...
Forum: Pascal and Delphi Oct 15th, 2006
Replies: 1
Views: 4,169
Posted By Lord Soth
Hi,

1. It is possible. 2. Manually set the selection property to the text part for which you want to adjust font and use font property of selection of richedit. 3. Check the RichEdit Demo on...
Forum: Pascal and Delphi Oct 15th, 2006
Replies: 10
Views: 14,282
Posted By Lord Soth
Hi,

I pretty much agree with borthwis. The Delphi line after version 7 and Kylix should be evaluated as a different family of IDEs and compilers. Although they support native code too, Delphi 7...
Forum: Pascal and Delphi Oct 15th, 2006
Replies: 1
Views: 10,584
Posted By Lord Soth
Based on http://astronomy.swin.edu.au/~pbourke/geometry/insidepoly/
Converted to Delphi by Lord Soth
Forum: Pascal and Delphi Oct 15th, 2006
Replies: 1
Views: 2,696
Posted By Lord Soth
Hi,

Attached is a Delphi code (Pascal Syntax) for checking wether a point lies within a polygon. You can also check my code snippets from the code snippets link or by clicking Lord Soth's...
Forum: Pascal and Delphi Oct 15th, 2006
Replies: 1
Views: 1,383
Posted By Lord Soth
Hi,

a: array[1..1000] of ^integer; is an array of pointers to integer
a: array[1..1000] of integer; is an array of actual integers;
x: ^a; this would give an error unless those are all defined...
Forum: Pascal and Delphi Oct 15th, 2006
Replies: 1
Views: 3,392
Posted By Lord Soth
Hi,

You can use the FormatDateTime function to convert a TDateTime structure to a string with a formatting of your choice. While accessing database record fields use AsDateTime then FormatDateTime...
Forum: Pascal and Delphi Aug 29th, 2006
Replies: 5
Views: 3,905
Posted By Lord Soth
Hi,

http://www.microsoft.com/whdc/device/input/Scancode.mspx
http://www.glue.umd.edu/~nsw/ench250/scancode.htm

Loren Soth
Forum: Pascal and Delphi Aug 12th, 2006
Replies: 2
Views: 1,650
Posted By Lord Soth
Hi,

You can either create a text file and write the date as a string or you can create a typed file with type of a record you create with date and other related fields and write directly those...
Forum: Pascal and Delphi Aug 8th, 2006
Replies: 14
Views: 3,949
Posted By Lord Soth
Hi,

On the case of C vs C++ remember that you can't code time critical code with full object orientation, that's why Linux and Windows kernels and drivers are both written in C without OO.
...
Forum: Pascal and Delphi Aug 8th, 2006
Replies: 14
Views: 3,949
Posted By Lord Soth
Hi,

I generally don't advocate technologies, companies or solutions but in the case of Delphi and Pascal, I have some arguments to present :
First off all languages are only as restrictie as...
Forum: Pascal and Delphi Aug 5th, 2006
Replies: 5
Views: 3,905
Posted By Lord Soth
Hi,

Do you want to know how to obtain scan codes from keyboard or how to translate them to ASCII ?

Loren Soth
Forum: Pascal and Delphi Aug 5th, 2006
Replies: 6
Views: 3,037
Posted By Lord Soth
Hi,

Does your input file contain each field in a separate line or each record in a single line with some kind of delimiter (comma, semicolon, tab, space) ? If the former then you can't read it...
Forum: Pascal and Delphi Jul 27th, 2006
Replies: 4
Views: 11,173
Posted By Lord Soth
Hi,

Unmanaged (non .Net) Delphi (Delphi 7 and below) has no automatic garbage collection at all. If you are referring to COM objects automatic disposing when ref count reaches zero, the...
Forum: Pascal and Delphi Jul 24th, 2006
Replies: 1
Views: 6,255
Posted By Lord Soth
Hi,

Try this :


type sample = record
_type,arg1,arg2 : integer;
{ type is a reserved word in Delphi, and integer type is 32 bit wide; for 16 bit unsigned you can use Word or for 8 bit...
Forum: Pascal and Delphi Jul 24th, 2006
Replies: 4
Views: 11,173
Posted By Lord Soth
Hi,

Delphi's TXMLDocument class isn't coded by Borland but is a wrapper to MSXML COM object. You might try "XMLReader := TXMLDocument.Create(self);" or if the code isn't in a method of the form...
Forum: Pascal and Delphi Jul 11th, 2006
Replies: 2
Views: 2,718
Posted By Lord Soth
Hi,

To prevent it from crashing put the conversion code in a try except block, if there will be a problem Delphi will throw an exception and you can handle it on the except part. To prevent...
Forum: Pascal and Delphi Jul 11th, 2006
Replies: 6
Views: 6,729
Posted By Lord Soth
Hi,

Do you need to create Palindromes or check wether the word entered by user is a palindrom ?

Loren Soth
Forum: Pascal and Delphi Jul 11th, 2006
Replies: 4
Views: 2,768
Posted By Lord Soth
Hi,

As Micheus stated in his post you should put the nick and client version ending with #0 instead of Delphis own String type. The MSG_CHAT_CLIENT_LOGIN structure you provided doesn't seem to...
Forum: Pascal and Delphi Jul 11th, 2006
Replies: 6
Views: 6,729
Posted By Lord Soth
Hi,

Ths last " IF (Choice = 'Y') OR (Choice = 'y') THEN " is unnecessary, the while loop's conditional takes care of that. You seem to have implemented the queue correctly but why is you...
Forum: Pascal and Delphi Jul 11th, 2006
Replies: 4
Views: 2,768
Posted By Lord Soth
Hi,

I don't think your problem is the packet length, because there isn't a length field in the MSG_CHAT_CLIENT_LOGIN structure; and when you use " TcpClient1.Sendln (Length(#... " you just send...
Forum: Pascal and Delphi Jul 9th, 2006
Replies: 4
Views: 3,039
Posted By Lord Soth
Hi,

You can post here or PM me with a link to current application and I would look what I can do.

Loren Soth
Forum: Pascal and Delphi Jul 8th, 2006
Replies: 1
Views: 4,445
Posted By Lord Soth
Hi,

Is the application you mention a WebApplication (like .aspx pages) or a WinForms application (Desktop application) which communicates with a WebService ? You might pass variables to a HTML...
Forum: Pascal and Delphi Jul 8th, 2006
Replies: 4
Views: 3,039
Posted By Lord Soth
Hi,

Does the tool send the request automatically or whet you hit copy request it put's it on the clipboard and then you send it by post (or e-mail) pasting the generated text ? With out the...
Forum: Pascal and Delphi Apr 11th, 2006
Replies: 3
Views: 3,425
Posted By Lord Soth
Hi,

Use Application.Terminate; as suggested by previous post (or Halt; ). Never call ___.Destroy; call ___.Free; to release an instance of an object that you created.

Loren Soth
Forum: Pascal and Delphi Apr 5th, 2006
Replies: 1
Views: 5,819
Posted By Lord Soth
Hi,

Just set one Win XP as dial-up server (Control Panel->Network Connections) and create a secure dial-in account. Create a dial-up connection from the other to this ones phone number. Dial-in...
Forum: Pascal and Delphi Apr 5th, 2006
Replies: 3
Views: 5,318
Posted By Lord Soth
Hi,

There is no standarts specification or .dat extension so it is hard to tell anything without seeing their contents but you have to parse the data from .dat to your records. I can help you...
Forum: Pascal and Delphi Mar 31st, 2006
Replies: 1
Views: 4,988
Posted By Lord Soth
Hi,

You can use a TChecklistbox to show out videos by a check; you can use TListview to assign different icons near items or you can set normal TListbox to ownerdraw and render the text for each...
Forum: Pascal and Delphi Mar 26th, 2006
Replies: 13
Views: 5,136
Posted By Lord Soth
Hi,

just delete the "{$APPTYPE CONSOLE} uses SysUtils;" and put "uses Dos;". It must compile then as there is nothing delphi specific there. If it still won't compile post the error message...
Forum: Pascal and Delphi Mar 25th, 2006
Replies: 5
Views: 2,123
Posted By Lord Soth
Hi,

Unless this is a prank to make me code a computer proof of Fermat's little theorem, please read my previous post and explain me the things I stated as I didn't get and answer the questions I...
Showing results 1 to 40 of 58

 


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

©2003 - 2009 DaniWeb® LLC