1,899 Topics

Member Avatar for
Member Avatar for DelphiGuy

I've heard about keyboard hooks before but I can't really understand how to make them as there isn't much tutorials on it. I was wondering if anyone could make a very simple keyboard hook which detects me pressing the UP ARROW key and explain the code to me. Also are …

Member Avatar for pritaeas
0
64
Member Avatar for rtr18

Hi! I'm trying to restrict my exe to only one at any time. I've used the following code: [CODE] var Mutex : THandle; Mutex := CreateMutex(nil,False,'MyMutexName'); [/CODE] I got the following error in CreateMutex: 'Invalid Number of Parameters". How to create a Mutex in Delphi?

Member Avatar for TrustyTony
0
197
Member Avatar for freakvista

Hello! I want to make the tetris game in pascal... here it's what i've done so far... [CODE]uses crt; var x,y,i,c:byte; begin x:=5; y:=1; repeat clrscr; for i:=1 to y-1 do writeln('| |'); if y<49 then begin writeln('| a |'); writeln('| a |'); writeln('| a |'); writeln('| aaa |'); for …

Member Avatar for freakvista
0
3K
Member Avatar for evaldaskowka

Hi again, With silly question... I read about generating random numbers random(10); but it gives numbers from 0 to 10 and i need for example from 10 to 100. I tried random([10..100]); but i can't compile this :/ Could somebody help me?

Member Avatar for Wolfgan
0
176
Member Avatar for evaldaskowka

Hello, I'm working on a snake based game in pascal. I'm using graph window. But here is the problem: Yesterday i was doing great my project compiled and everything, today i turned on my computer, open my project and it wouldn't compile... I checked the code the was nothing strange …

Member Avatar for TrustyTony
0
306
Member Avatar for rtr18

Hi! I'm using Inno Setup to create setup file for my application. Inno Setup is based on Delphi Script. I searched for Inno Setup forums and I could not create an user account with any of them. That's why I've decided to post here. While installing I've to check the …

Member Avatar for Duoas
0
148
Member Avatar for vmirce

I would like to display blank value when the value is equal to zero, but when it is a non-decimal number to be displayed with preceeding zeros, example: when it's equal to two, i want it to be presented as 2.00. I tried with '0.00' but it shows literaly 0.00 …

Member Avatar for pritaeas
0
96
Member Avatar for jack4321

Hey guys first time i heard about pascal. So if you guys help me knowing what is pascal and how its work.

Member Avatar for TrustyTony
0
82
Member Avatar for wiredtoawall

I cannot read the info I stored into the files and I need help. Whenever I give the user the option of saving more records or simply retrieving a record, it always stops on the retrieving part. [CODE] Type Str25 = String[25]; TBookRec = Record Title, Author, ISBN : Str25; …

Member Avatar for wiredtoawall
0
179
Member Avatar for jero-skyer

i need to make a program windows application to insert an image and when the mouse is over the image a new form or frame get visible with a new image can some one explain stet to step of how to do it plz

Member Avatar for jack4321
0
78
Member Avatar for Morten Brendefu

Dear knowledgeable ones A new problem have arisen. I have now an SQL database file with about 100 tables in it. I would like to automatically go through all of these tables and check if the column "Owner" exist. If this field does not exist, then it should be created …

Member Avatar for Morten Brendefu
0
170
Member Avatar for sacros

hey there i just started learning informatics and im currently learning pascal and im liking it a lot, its my first time with programming too, only problem i have is we dont have any computer in the classroom to try the code and unfortunately i dont have a laptop or …

Member Avatar for TrustyTony
0
287
Member Avatar for amoarg69

HI! Thanks in advance. I wanna make comething like this: [CODE]Procedure GETDATA( VAR x : TCaption ) ; Begin .... x := '1' ; ... End ; ... ... a( SOMEString ) ; a( SOMETEDit.Text ) ; a( SOMETLabel.Caption ) ; end;[/CODE] HOw can I solve it? Thanks!!!

Member Avatar for pritaeas
0
861
Member Avatar for ztparker

Hi all, I am trying to produce a basic till system, and at current am using an ADOquery to bring up the items ordered along with their relevant prices in a DBGrid. What I now need to be able to do is use the price values contained within the DBGrid …

Member Avatar for PlotHost
0
136
Member Avatar for horserider

i m new to delphi.i have coded in vb,php, c etc..now i have to learn delphi.I was wondering if there are any good websites or books, where I could learn the delphi.. ???

Member Avatar for PlotHost
0
105
Member Avatar for Pundia

Hi, I'm working on a simple calculator in Delphi. The assignment is convert C code to Delphi code. My problem is that I've tried for days and I can't come up with something to replace "getchar" from the C code. This is the code in C: [CODE]#include <stdio.h> #include <stdlib.h> …

Member Avatar for Battlesnake
0
599
Member Avatar for gruffy321

hi guys , what am i doing wrong here, i have instigated several approaches, in assembly 8086 using borland/turbo 7.0 pascal on win 98se (so i can communicate easily to parallel port and stipulation of assignment) my issue lies with being able to allow execution of a looped routine but …

Member Avatar for gruffy321
0
605
Member Avatar for agrarian

I am creating a Delphi program that needs to extract data from our database and create an Excel report. I would prefer to use the Delphi components TExcelApplication, TExcelWorkbook and TExcelWorksheet, but I haven't been able to get them to work. Most of the examples I have found are fairly …

Member Avatar for Wolfgan
0
2K
Member Avatar for ChaosKnight11

Hi, I am trying to install the Python4Delphi components, but it doesn't compile (from python4delphi.googlecode.com/svn/trunk). It also seems out of date. What is the best current way to use Python inside Delphi? Any advice or help will be greatly appreciated. Thanks!

0
116
Member Avatar for josh48

I've written some code below and I can't get it to compile. I think I have my While and If in the wrong place. Any help is greatly appreciated! Here is the structured english: [CODE]PlayerOneScore <- 0 PlayerTwoScore <- 0 OUTPUT ‘How many balls do you wish to face?’ INPUT …

Member Avatar for TrustyTony
0
124
Member Avatar for Ineedhlp

program primo; uses crt; type tipo=file of integer; var scelta:integer; num:tipo; procedure inserisci(n:tipo); var nome,x:string; i:integer; begin write('Nome del file:'); readln(nome); x:='F:\File\Esercizi'+nome; assign(n,x); rewrite(n); write('Inserisci 20 numeri:'); for i:=1 to 20 do write(n,i); close(n); end; procedure scrivi(n:tipo); var nome,x:string; i:integer; begin write('Nome del file:'); readln(nome); x:='F:\File\Esercizi'+nome; assign(n,x); reset(n); while not …

Member Avatar for TrustyTony
0
67
Member Avatar for Morten Brendefu

Dear knowledgeable ones. I started on a project to be able to use a smart card and a smart card reader in order to limit access to a program. I had some sample code written in Visual Basic, and wanted to translate this to Delphi instead, something I think I …

Member Avatar for pritaeas
0
824
Member Avatar for dobleseis

Hi, need help with this. I have a text file with info in that format: [CODE]product1 description stock product2 description stock[/CODE] And want to save that values to a record like this: [CODE]prod=record name:string; des:string; sto:integer; end; [/CODE] forget the "assign" and "reset" part, I got this, I actually need …

Member Avatar for dobleseis
0
208
Member Avatar for Morten Brendefu

I did an experiment regarding sorting of 256.000 random "names" using TListBox component. A friend of mine say that TListBox is faster than my code at sorting, so I wanted to test this out of curiosity. Method of testing. When I have created 256 thousand random textstrings, each 6 characters, …

Member Avatar for TrustyTony
0
2K
Member Avatar for tky

how to divide frames in the program (pascal)? a program which can display different part through frame.

Member Avatar for TrustyTony
0
50
Member Avatar for TrustyTony

I did this code to compare to Delphi code in Delphi forum [URL="http://www.daniweb.com/software-development/pascal-and-delphi/threads/357771"]TListBox and sorting[/URL] which ran in my computer compiled in free Lazarus environment at time 7,235 s for generate and insert to listbox, 13,265 s sorting the listbox.

0
586
Member Avatar for Krefie

ola, Please help, stuck on this error "class TJvGifAnimator not found" and the web is of no use, anyone know of a way to fix this or what path I could include in CodeGear to fix this. I've re-installed all library packages from Jedi component library (JCL) and JVCL. Am …

0
84
Member Avatar for falgunpatel

What are the four major sections of a Delphi Unit? What is the difference between an Object and a Class? In the context of a class what does “static” mean? Why would you use it? How would you create a thread in Delphi? What are the issues that you can …

Member Avatar for TrustyTony
0
106
Member Avatar for Krefie

Hi guys/gals Ok here is my problem, when importing data from excel using ADO, delphi doesn't seem to be able to import mixed column values...e.g. the column is formatted to integer and the integer values correctly import into delphi, but the same column contains string values it imports nothing or …

Member Avatar for Wolfgan
0
164
Member Avatar for Morten Brendefu

I am trying to draw a few items on a canvas using Canvas.TextOut mainly. My problem is that when I grab the form holding the canvas and then move the form outside of the screen and back again, all text and drawings have vanished, as if they have been erased. …

Member Avatar for Wolfgan
0
141
Member Avatar for Morten Brendefu

I am designing a lot of TCheckBox at runtime, and uses mathematical formulas for placing these in columns and rows afterwards on a form. I assign an on click event that is exactly the same on all of them, and everything work, except... Color. My OnClick event is made like …

Member Avatar for Wolfgan
0
3K
Member Avatar for globusak

I have a problem that i need to solve, and dont know how to do it. I have two arrays of 80 numbers (array[1..80] of integer) and i want to multiply them, saving the result in another array. I am beginner in pascal, learning it at school, so i have …

Member Avatar for Wolfgan
0
704
Member Avatar for DelphiGuy

Basically I have a label which I do the following with on start up of my application: [code] with Label1 do begin Caption := 'Computer Locked'; Align := alClient; Alignment := taCenter; Top := 400; end; [/code] Now the problem I have is the alClient and taCenter work perfectly making …

Member Avatar for Wolfgan
0
403
Member Avatar for ReaperUser101

Hi everyone I'm trying to connect and display data in a TDBGrid (component) from an .mdf (made in sql) and connect it to a Delphi application. the .mdf is on the desktop and my databases name is Attach. If anyone has any clues or advice please let me know! Many …

Member Avatar for Wolfgan
0
136
Member Avatar for DelphiGuy

Hello guys, basically I have two Delphi applications which I want to communicate and work with each other, the only problem is I don't know how. Can anyone help me create a as simple as possible programs so that when I press a button in the first program, it would …

Member Avatar for DelphiGuy
0
1K
Member Avatar for hness1

After searching around for along time... I've found nothing. I need to be able to grab an image from an imagelist. I tried searching through the properties and methods, but found nothing that looked like it would help. [CODE] begin PicArray[WhichCol, WhichRow].Picture := {Image from imagelist} end; until Imageindex[WhichCol, WhichRow] …

Member Avatar for Wolfgan
0
2K
Member Avatar for EkoX

hi, i try to make a square number but its not limited by 2. number and the square can be any numbers. so its like n^n. please help me.. i confused how to do this.. any help will be appreciated. thanks.

Member Avatar for Wolfgan
0
221
Member Avatar for darkagn

Hi all, Can someone tell me if this is a delphi bug? I am using a Controls.TDate to store a date and using the SysUtils.EncodeDate function to set the value. [code] Invoice.DateReceived := EncodeDate(2011, 03, 16); [/code] When I store it in a MS SQL database field, it is adding …

Member Avatar for Wolfgan
0
166
Member Avatar for hness1

Hello! I have a little project of my own to convert a memory game puzzle from VB.Net into Delphi (Not a big Delphi fan). I was doing fine so far until a control would not be recognized (outlined in red and green). It is an imagelist containing 8 images. [LIST=1] …

Member Avatar for Wolfgan
0
148
Member Avatar for Vega_Knight

Hi masters,, how can i count how many words in sentences using pascal? thanks before and best regards.

Member Avatar for Vega_Knight
0
1K
Member Avatar for AKJo

I have problems to play video files from different cameras with the media player supplied with Delphi. Does anyone know of a free compnent that I could test in stead?

Member Avatar for dannyniu
0
108
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
151
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
85
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
395
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
121
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
213
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
90
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
159
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
220
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
122

The End.