1,826 Topics

Member Avatar for
Member Avatar for Planetdune

Hey all, I'm currently having a file I want to open using a program. The system does NOT have the file-extension associated with said program. However using the standard "let me choose what program to use" box when trying to open the file and selecting the program it runs just …

Member Avatar for dlhale
0
148
Member Avatar for wizard25

Hi I am new to pascal, How to draw on pascal with goto or pixel command? And how can I make a game X-O user vs computer?

Member Avatar for dlhale
0
80
Member Avatar for wiredtoawall

I am trying to make a code for shuffling a deck of 52 cards no jokers. I have generated a deck and I plan on randomly inputing all the values into another array as my shuffling. How should I do that? [CODE]program game; var Deck : Array [1..4,1..13] of integer; …

Member Avatar for dlhale
0
336
Member Avatar for KenAs

Any ideas on detecting the current version of the MySQL ODBC driver? Currently I am reading the registry to obtain the version: [code=delphi] Function MySQLVersion:String; Var TR : TRegistry; SL : TStringList; I : Integer; Begin Result := 'ODBC 3.51'; // Default version SL := TStringList.Create; TR := TRegistry.Create; TR.RootKey …

0
120
Member Avatar for BobPawley

Hi I am attempting to employ the named pipe application “Using Pipes for Messages” which I found at [url]http://www.delphi3000.com/articles/article_2918.asp?SK=[/url] I am running Borland Studio 2006 on Win 7 and need named pipes to communicate to a C# app that I am also building. The example (bottom of page) is supposed …

Member Avatar for pritaeas
0
205
Member Avatar for ReaperUser101

Hi people , I have an easy question(but lack the knowledge in Delphi), I have a piece of code that i want to run but don't want to type it over for every time it has to be run (not very good coding then). Is there a way i can …

Member Avatar for ReaperUser101
0
87
Member Avatar for Zumla

Hello, I am currently using Delphi Prism to try and extract file properties. Below is the code I am currently using which should work, however, the compiler generates an error: Error 1 (PE190) "DSOFile.OleDocumentProperties" is an interface and cannot be instantiated C:\Users\Zumla\Desktop\Comp4\.Net Project\Computing4\Computing4\Main.pas 114 63 Computing4 Help would be much …

0
157
Member Avatar for ReaperUser101

Hi guys The just of what i whant to do is read lines of text from a file until it reaches a delimiter and then execute that text in a query and repeat the process till there is no more text. I am using Delphi 6(don't have a choice) and …

Member Avatar for ReaperUser101
0
217
Member Avatar for ccdsystems

We have a Delphi app that performs user authentication using the activeds.dll library. However, when running on a 64-bit server, even though the WOW64 processing thunks the library to use the psuedo-32-bit version, we're consistently getting an app crash when attempting to use the library. Any helpful suggestions? Thanks

0
119
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
408
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
119
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
191
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
156
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
164
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
239
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
149
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
489
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
46
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
81
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
328
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
228

The End.