1,899 Topics
![]() | |
I have receive from my friend a project.exe (application console) made from delphi. I want to know how can i open it with delphi to edit the codes. | |
Please help, got this code below that i need to add to a program im making and for some reason i cant work out why it doesnt work. [code] program dbase1; uses Crt; const fileName = 'C:\TEMP\NAMES.TXT'; maxRecords = 100; var name : array [1..maxRecords] of String; address : array … | |
I Was Just Wondering is Ther Anyway At All To Reproduce A VB Step Increment in Delphi. VB Example: for i = 0 to 100 step 10 Delphi: ??? Any Help Would Be A Blessing Thanks, gh0sts :) | |
I have designed an age calculator which given a person's age, works out given a person's age, works out how many days they have lived for, and how many hours they have lived for. My answer: var age, month, day, hour: integer; begin writeln ('How old are you?'); readln (age); … | |
I am trying to count a few different types of characters in a string and I am running into a few problems. I need to be able to count the vowels and blanks/spaces and then just everything esle and I am having problem with the everything else(by everything else i … | |
To design a program that works out the powers of numbers. For example 3^5 = 3*3*3*3*3 = 243 2^3 = 2*2*2 = 8 Please help me again? | |
I need to write a program that asks a user for their new password, to check that they have entered it correctly they must verify it by entering it again. If the two passwords matach then you accept the change and tell the user that they have been successful on … | |
Question: I am to write a comparison program that outputs true mathematical statements. Ask the user for two numbers, and then output one of the following statements number1>number2 number1<number2 or number1=number2 The user must also be able to keep running the program with different numbers, when they have finished running … | |
A positive integer is entered from the keyboard. If it's even, all even integers from 2 up to and includng the entered integer are displayed. If odd, all odd integers from 1 up to and including the entered integer are summed, and the sum displayed. Please help me again. | |
so i have this animation (yes i know its very long): [code=animation] begin; {main program starts} clrscr; {clears screen of any text} textcolor(9); {turns the text blue for the logo animation} writeln('MMMMMMMMMMMM MMMMMMMMMMMMM'); {logo animation starts} delay(logo); writeln('MMMMMMMMM MMMMMMMMMM'); delay(logo); writeln('MMMMMMM MMMMMMMM'); delay(logo); writeln('MMMMM8 ..MMMMMM'); delay(logo); writeln('MMMM. MMMMM'); delay(logo); writeln('MMM, … | |
I've got a project where I need to draw a a series of bitmaps then save each as a frame in an AVI video, but the drawing process takes too long to reliably do this at the frame rates I want the video to have (25-30 fps). I've seen and … | |
I want to display a multiline text with certain font size. How to determine the font size in windows? How to convert it into point size? I want to print next line very close to the first line ., means the gap should be minimum. I have x, y co … | |
A given year is a leap year if it is divisible by 4. However there are a few exceptions to this rule, if any of these years are divisible by 100 they are not leap years unless they are also divisible by 400 - so 1990 is not a leap … | |
I have got a question which come together with my answer but I found that it does not too match with the question. Can you help me to make it changes? Question: A letter of the alphabet is to be input from the keyboard, and a message output as to … | |
Can anyone provide me with an example how to create a program using Delphi that randomizes and shows 2 words out of 78 with a click of a button? The words are: [CODE] Afghanistan Albania Argentina Australia Ausria Blegium Bhutan Bolivia Brazil Bulgaria Canada Chile Colombia Communist_China Costa_Rica Cuba Czechoslovakia … | |
Hi everyone, I'm making yet another program, and i am needing a login screen. The first form has 2 edit boxes and 2 buttons. The cancel button closes the program, the login button checks the username password if there correct or not. I have written the code for the login … | |
I'm having a little trouble shutting down a thread that might or might not be executing when the program closes. The thread, actually there are two of them, is started in an OnTimer event, and in OnDestroy I stop the timers then I want to close the threads. The thread … | |
Hello, I am new to delphi. I have a problem. I have a string which can be of any length. Sometimes with delimiter characters for printing in new line. Now I need to distinguish whether the received string is a number (both -ve and +ve) or any other alpha numeric … | |
-------------------------------------------------------------------------- Hi people. I have a little problem. How can I use bluetooth libs with Delphi 7 or where I can download them (if they exist)? -------------------------------------------------------------------------- Please help me.... :cheesy: | |
Please help me again. I have 2 questions in this time. Question 1. Write a program that asks for a start and stop letter and then produces the following: Question one: This time create an array of 7 numbers. Fill each slot with a randomly generated number between 1 and … | |
im making a program and when you select exit in the menu i want it to be like: Are you sure you want to exit? Yes No Enter Esc so when you press enter it will exit and when u press esc it will go back to the menu. everything … | |
I've got a lot of text to display in an app I am working on. I know that this eats of resources so I'd like to put them somewhere else, like maybe a file that I stuff into the resource file, if that is possible. Also, I'm thinking to the … | |
I've stored an array in an html hidden input and now need to transfer that array to my delphi function. I've tried: [code=delphi] var fileArray : array of string; fileArray := formvar('fileArray', ''); [/code] but this gives an incompatible types error when I compile. How can I convert the string … | |
i am trying to use an if statement which will say some thing if points is greater than or equal to 15 AND less than 20. like this: [code] if points >= 15 and < 20 then writeln('Nice!'); [/code] but this code doesnt work. how would i do it? | |
To create a game of Heads or Tails against the computer. Write a program that asks the user for Heads or Tails, then simulates a toss of a coin and then tells the user whether they have guessed correctly. DISPLAY a title for the program Issue the statement that stops … | |
I'm learning Pascal in school. I've come across a run time error that's been eluding me these past few days. The error message I get is: [QUOTE]ERROR: line 86, access made to undefined variable[/QUOTE] I've been searching t'internet for a while trying to find out some help, alas Pascal as … | |
is it possible to end actions that are happening? example: [code=pascal] repeat writeln('example'); until c=1; {the c is an example. im asking if it would be possible to change c to something like 'until readkey'} [/code] readkey doesnt work. i hope you can understand what im tring to ask here. … | |
the program im trying to make will select a random movie from a list of movies and tell the user which 1 he should watch. first the program will ask how many movies there are. it will then ask for the titles of each movie and then it will output … | |
Hello to alll programmers out there. Here i am trying to design a custom pascal triangle where the user can specify the TOP ELEMENT as well as both the CORNER elements. The problem i am facing is that the prog works well till the 3rd row but starts giving rubbish … | |
Below is a procedure that gathers all the contacts email address and puts them into a new email window of Outlook. The procedure works fin but the companies Outlook is set so that the user is only allowed to enter 99 email address per email window. I am struggling to … | |
hi, I work with Delphi 5 and I need to modify a .COM file but I don't know how... may you please help me? thanks! | |
Hi, Does anyone know of some source code or methods that can be used to monitor the CPU utilization in Delphi? | |
hi, I need to wirite code in delhi5 using the API of a software but I don't know wher I have to begin... ;) | |
hi, ive got a text file which has multiple lines, how can i display all the lines? [CODE] BEGIN assignfile(filea, user); reset(filea); while not eof(filea) do BEGIN readln(filea,textstring); writeln(textstring); end; closefile(filea); readln; END[/CODE] Thanks | |
Hi, Does anybody know how can I return the time format from the system regional settings ? I need something like "hh mm ss" returned ( or whatever the current system time format is) to pass it as argument for FormatDateTime() function along with a given time; I`m using Delphi … | |
Hello everyone! i found some days ago a really nice algorithmic problem, and i am trying to solve it (implement it in pascal in the end). I know it is a shortest path problem, (it is obvious) but i still can't seem to find any proper approach to it! Any … | |
I just ran across some code that declares a complex packed record: aSInt = Integer; [ICODE]entity = packed Record Enttype : byte; field2 : double; ... //continues with other standard fields and then uses this case CASE aSInt OF entlin: (linpt1, linpt2: point); entln3: (ln3pt1, ln3pt2: point); entmrk: (mrkpnt, mrkvec: … | |
Alright, I'm trying to write a program that finds the highest, lowest, and average number of a set of undetermined data. The program also needs to shut off when a negative number is entered. This is what I have so far, the only thing working is the highest number and … | |
Just a short question.. Does declaring your program as "unsafe" mean your program's memory is no longer managed? | |
Hello, I have a question (might be pretty easy, but please help!!): on my application's main form I have two buttons: open that opens Form1 and another one that opens Form2. Now, from Form1 I need to open Form2, and from Form2 I need to open back Form1, and go … | |
I have a Client and a server application, very simple code and it is working. But with the client, I can send one time a message, do I want another, it does not appear at the server. No response, nothing. Here is my code: Client: [CODE=pascal] procedure TForm1.FormCreate(Sender: TObject); begin … | |
I am working on a project for a Cad program in which I must embed data in the Cad file. The tools for doing so in the cad program allow for embedding boolean, integer, double byte and string values, one at a time. There is a lot of data and … | |
I'm pretty green at Delphi. I have a program that must call a MS SQL stored procedure before executing the rest of its logic. Here's the code I've written (changes have been made here and there to protect confidentiality): [code=delphi] theProcedure := TStoredProc.Create( NIL ) ; theProcedure.DatabaseName := theTDatabase.DatabaseName ; … | |
Hi, I would like to know how to port this code in Delphi [CODE] a : Word; b : ^Word; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin b := @a; Inc(b^); //Display a end; [/CODE] To code in .NET, The problem is converting the pointer. The Migrating Pointer Types section … | |
I have to write a program which generates a pascal's triangle. The user inputs the height of the triangle and it supposed to generate one. This is what I have so far and I don't know how you would keep adding rows after the second one. I'm so lost :( … | |
This is a poor implementation of quicksort in pascal. I will use it in the classroom for a demonstration in sorting algorithms (divide and conquer). I would appreciate if someone could help me a little with some improvements. [code=pascal] program quicksort; uses wincrt; const max = 10; type table = … | |
I'd like to be able to send a text message to a person from the program I am working on. I've been researching on the web and found a few code examples that according to the comments sometimes worked and sometimes didn't. I've also found some very capable looking software … | |
A day or so ago I got thoroughly stuck solving a frustrating problem in my little program that somehow has grown to 14000+ lines of new code. It turned out to be an issue where creating a from would change my data before I could display it in the form. … | |
I'm finally getting around to using COM+ in Delphi 6 Pro, and I need a little help. My COM+ components palette has a TCOMAdminCatalog component, but it seems to be missing the other two, TCOMAdminCatalogCollection and TCOMAdminCatalogObject. How can I get them back? Did I ever have them? I've got … | |
Their are commercial/delphi solutions to reading GPS input from the USB port but these do maybe 10, 20 or a 100 things whereas I used to read input via the COM port and then do whatever after that. Is there a small (?) piece of delphi (7 or lower) code … |
The End.