1,899 Topics

Member Avatar for
Member Avatar for Bilal gulbaz
Member Avatar for november_pooh
Member Avatar for Bilal gulbaz
2
3K
Member Avatar for EkoX

Hi.. how to calculate distance between two points.. each point have a coordinates (x,y). please help..

Member Avatar for Jx_Man
2
419
Member Avatar for livingsword

hi, im a beginner. i hav an assignment on Pascal's triangle. i saw some post over the topic but couldnt get it to work with my code. heres what i have done so far.... [code=c] #include<stdio.h> #include<conio.h> void main() { int a[10][10]; int i,j,c,n; clrscr(); printf("Enter how many lines do …

Member Avatar for vipinkumar512
0
727
Member Avatar for corl45

ok, im making a basic program in pascal. like a text based calculator (i dont know how to make GUIs) so lets say i have a peice of code like this: [CODE]program test; var A,B,C:real; begin writeln('enter the first number'); readln(A); writeln('enter the second number'); readln(B); C:=A/B; writeln('your answer is: …

Member Avatar for passw
0
123
Member Avatar for Morten Brendefu

A "normal" Delphi snippet: [CODE]Procedure help_me1(Sender: TObject); BEGIN {100 lines of code} END; Procedure help_me2(Sender: TObject); BEGIN {100 lines of copy and paste code} END;[/CODE] [COLOR="Green"]How can I make this so that I end up with ONE procedure with 100 lines of code?[/COLOR] [CODE]Procedure much_reuseable_code(choice:BYTE); BEGIN {100 lines of code} …

Member Avatar for Morten Brendefu
0
194
Member Avatar for gravexxx

I am not showing all the code it is not necassary. TheInternets : TWebBrowser; I wrote a program to navigate to a server that my friend has up. Then it should get a result and display it. This takes about a second to execute which is really bad for my …

Member Avatar for Wolfgan
0
158
Member Avatar for jigneshdesai
Member Avatar for Zumla

Hi, Does anyone know a simple way of extracting file information such as that shown in the details tab of file properties? I am new to Delphi and I don't have much experience, codes on the internet which I have found are not very helpful and only successfully extract file …

0
165
Member Avatar for ReaperUser101

Hi everyone Im trying to take my SQl and "SCRIPT" it to a .sql file(accomplished) and add it to my Delphi(accomplished) and then [U]connect them[/U] and show the data in a TDBGrid but seem to be battling. The .sql file adds and creates the Database in delphi but I don't …

Member Avatar for pritaeas
0
241
Member Avatar for annsampson

high my program is not running properly the run screen never stays on error message "error linking" Program Auto_Company; Var carmodel:ARRAY[1..10]OF STRING; category:ARRAY[1..10]OF string; noofcars:integer; rentalfee:real; totalrentalcost:real; carentry:string; appcar:integer; A:char; B:char; C:char; Chevrolet:string; HondaCivic:string; NissanPrimera:string; NissanB14:string; Subaru:string; MitsubishiLancer:string; Mazda:string; Mercedes:string; BMW:string; Peugeot:string; R:INTEGER; Procedure INTRODUCTION; BEGIN Writeln('Welcome to program Auto_Company'); …

0
62
Member Avatar for ClanTag

Heyyy everyone =). Im a freshman in Highschool taking a computer programming class. I was just wondering if you guys could look over my code and see if there is anything that I could have done more efficiently (i.e. using less ram, less code). The objective of this program is …

Member Avatar for pritaeas
0
153
Member Avatar for Fudgey

Hi Everyone, I am having some trouble with the libmysql.dll file in Delphi 7. When I try to connect to a database with the dbexpress MySQL driver, i get the error "Unable to load libmysql.dll". I have tried the following to resolve my problem: [LIST] [*]installing different versions of MySQL …

Member Avatar for Simon180
0
494
Member Avatar for Planetdune

Hey fellow delphirinos, I am currently using the following code to get an application in my application: [CODE]procedure TForm1.Button1Click(Sender: TObject); begin ShellExecute(Application.Handle,'Open','Notepad.exe' ,nil,nil,SW_NORMAL); //Wait for it to be loaded. Sleep(500); //Get the handle of the other program using the caption of the window. wHandle := FindWindow(NIL,'Untitled - Notepad'); //Now change …

Member Avatar for drjoeblack
0
105
Member Avatar for NicAx64

Hi , I hate the hard copy versions of the Books. Those books are really weight than me . I get hard time in carrying them. what I need is CHM or PDF or djvu , html or txt ebooks. where I can transaction (pay money and download ) those …

Member Avatar for smithjackson
0
111
Member Avatar for douglaspr

Good evening, was wondering how can I read data record from a text file, if they want to read data from a text: (Offset : $4C8259; MemDump :($A1, $38, $BD, $4C, $00, $8B, $00, $8B, $4D, $FC, $BA, $C0, $82, $4C, $00, $E8, $1F, $F1, $FF, $FF, $33, $DB, $E8, …

Member Avatar for delphiman
0
204
Member Avatar for killhha

I have been using Pascal for around 3-5 months now. I still haven't figured out how to return random answers. for instance there are 5 integers: var a,b,c,d,e : integer; and now the computer will tell you a random integer like: writeln(c); this is just an example of course because …

Member Avatar for pritaeas
0
4K
Member Avatar for nla1kor

i need a code/function to suppress security messages in Windows 7 (Eg: Do you want to run install updatesetup.exe yes or no... i need to go ahead with yes instead of displaying such messages.

0
47
Member Avatar for _Ada_

This is a trivial question that Im having a blonde moment over. Been a while since I did any serious programming, Ada, Pascal, C etc etc I have two forms created at design time. Form1 and Form2. Form 1 has a button which when clicked should open Form 2 Could …

Member Avatar for Wolfgan
0
73
Member Avatar for Planetdune

Hey, I have a online mysql database and it has a table with a few thousand records. Now nothing special there, my question is however. One of the fields of every row has content like this: 2 9 14 119 5 543 1479 35 90 .... <-- this field will …

Member Avatar for pritaeas
0
158
Member Avatar for tucode

HI..I'M DEVELOPING AN APPLICATION USING DELPHI. NOW, I AM CONVERTING MY APPLICATION TO SERVICE TYPE BUT IT HAS ERROR. THE ERROR IS IN THIS CODE "Application.Exename". NOW I JUST WANNA ASK, WHAT IS THE EQUIVALENT OF "Application.Exename" IN SERVICE? THIS CODE IS WORKING ONLY IN APPLICATION TYPE BUT NOT IN …

Member Avatar for pritaeas
0
82
Member Avatar for tsbrownstone

I am attempting to run a delphi 7 developed application on a windows 7 64bit laptop. I've placed the redistributables in the system32 folder, like always. the application has been installed in the program files (x86) directory (it didn't work at all under the program files directory) when I go …

Member Avatar for tsbrownstone
0
335
Member Avatar for TRCSR

I have a program for data acquisition and process control. I use TeeChart for real time plotting of data. I also have a legend window on top of the chart. I can print or save to disk the TeeChart, but would prefer to print/save the entire screen including the legend …

Member Avatar for dlhale
0
229
Member Avatar for JacobBruce

Just wondering if someone can tell me what I'm doing wrong here, I just can't seem to work this out, I keep getting errors. [CODE]function GetColorFromBmp(XX, YY: Integer; Bmp: TBitmap): TColor; var Line: PRGB32Array; begin Line := Bmp.ScanLine[YY]; Result := RGBtoColor(Line^[XX].R, Line^[XX].G, Line^[XX].B); end; procedure SetColorOnBmp(XX, YY: Integer; Color: TColor; …

Member Avatar for JacobBruce
0
193
Member Avatar for lelejau

Hello. How can I protect my application against Memory Editors? Like, Cheat Engine, Debuggers, etc.

Member Avatar for FreeBirdLjj
0
88
Member Avatar for FlamingClaw
Member Avatar for JacobBruce

Does anyone know which of these are quicker? [CODE]procedure SetMousePos(Point: TPoint); begin Mouse.CursorPos := Point; end; function GetMousePos: TPoint; begin Result := Mouse.CursorPos; end;[/CODE] [CODE]procedure SetMousePos(Point: TPoint); begin SetCursorPos(Point.X, Point.Y); end; function GetMousePos: TPoint; begin GetCursorPos(Result); end;[/CODE]

Member Avatar for pritaeas
0
311
Member Avatar for Maggy0426

Hello everyone, I am using Delphi2010 and I'm trying to do an insert into multiple tables. I don't know the best way to do this. What I'm wondering is if there is a possible way to do one insert using one of Delphi's tools like the TQuery or TClientDataSet or …

Member Avatar for Maggy0426
0
204
Member Avatar for tucode

hi,is there a delay function in delphi?coz' i dont want to use sleep because sleep is not doing right it hangs the program.

Member Avatar for Wolfgan
0
66
Member Avatar for RobMan2000

greetings all. this is my first post on these forums so excuse me if i'm not familier with etiquettes! im looking for a way of making my program wait before continuing on to the next line of code. i know a function does exist, it is even one i have …

Member Avatar for Wolfgan
0
2K

The End.