1,826 Topics

Member Avatar for
Member Avatar for mrtony90
Member Avatar for Wolfgan
0
60
Member Avatar for Petrica7

Hi. What is the fastest way to create a file of a specific size (preferably without writing in it) on a nonNTFS partition..? On a NTFS I use this: [code]var tf: TFileStream; begin .... tf := TFileStream.Create(FileName, fmCreate or fmShareExclusive); tf.Size := [desired value]; tf.Free;[/code] It's very fast. But, for …

Member Avatar for Petrica7
0
397
Member Avatar for pritaeas

I'm in the process of converting a legacy app from D5 to D2009. I'm getting errors on AnsiToNative, NativeToAnsi (both DBTables) and DbiOpenSPParamList (BDE). Apparantly the parameters for these functions have changed. Does anyone here have a ready example on how I should use these in D2009 ? I was …

0
103
Member Avatar for Finarfin34

Olaylar= record 1024Bytes = array[0..1023] of byte; OnRx: procedure(const RxBfr: 1024Bytes; const DataLen: word); stdcall; OnTx: procedure(const TxBfr: 1024Bytes; const DataLen: word); stdcall; end;

Member Avatar for Wolfgan
0
120
Member Avatar for ChuckNZ2002

I hope that you folks can help? I have ten IP cameras strategically located around my property. I capture video from these cameras with no problems. The cameras have the ability to pan and tilt, if I send commands to them. I can send something like the following to the …

Member Avatar for ChuckNZ2002
0
232
Member Avatar for lietuva

I have to create a program that uses 2 loops to calculate the average of any number of grades, and run the program any number of times. So far this is what I have, I'm sure it's at least 99% wrong, but if someone could please help me get in …

Member Avatar for saeedk
0
6K
Member Avatar for prgmwitch

I need to write a program where the user enters a paragraph, the program reads in, stores every fifth word in a separate bank (array), and outputs the paragraph with the fifth words removed and replaced with 15 spaces. As usual, I finished the code, edited repeatedly, and can't find …

0
84
Member Avatar for EAnder
Member Avatar for L3gacy

Hello everyone, I have been programming in C++ for a while although I am not an expert yet, I would like to take a small break and learn another programming language that's a tad easier and I decided on Delphi. I looked for the stuff I need to no avail, …

Member Avatar for Dervish1
0
255
Member Avatar for StanRogo

Now I have been doing pascal for three months. I am now trying to create a simple calculator program. However, the TEdit box is not working. I type in the value but it seems it is not recording since when converted to either a float or int it states that …

Member Avatar for StanRogo
0
195
Member Avatar for Petrica7

Hi. I want to save the configuration of my program into its exe file (directly or in resources). I know I can use registry or a separate configuration file but I prefer to save in exe. Could you please help me..? Thank you in advance. Best regards, Petrica

Member Avatar for NotNil
0
194
Member Avatar for ltp_lonestar

Well, I recently acquired Delphi for no apparent reason /shrug. And since I'm about to start learning a new programming language (haven't decided which one), I was wondering in Delphi uses Pascal. And if so, what can be done with Delphi/Pascal. What are some good resources for Pascal/Delphi. Online references …

Member Avatar for madtm
0
249
Member Avatar for vmirce

I use D7 and I've working with TDBgrid and TStringGrid, but I actually need something more advanced. I need a Grid component which provides using a combobox within a cell, limiting a cell to accept only numbers, inserting a picture into a cell... Is there such a component ?

Member Avatar for pritaeas
0
62
Member Avatar for franciscar

// HookDLL.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include "HookDLL.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { //Flesh out the entry point pending full implimentation // reserve the DLL handle ghModule = (HINSTANCE)hModule; // register system-wide message SWM_TRAYMSG = RegisterWindowMessage("TRAY_ACTIVATED"); …

0
73
Member Avatar for mawoodard@pilot
Member Avatar for davecoventry
0
172
Member Avatar for marietta_kan

i want to create a based on delphi project...does anyone has something in mind but for mac??

Member Avatar for pritaeas
0
60
Member Avatar for getnit

Hi, I am trying to perform a few basic operations on MySql database through my delphi application. I am using MySql server 5.1 with Delphi 7 Here is what I have done( please correct me if I am wrong with the approach) - Created DataSource with MYSQL ODBC 5.1 driver …

Member Avatar for Simon180
0
137
Member Avatar for Simon180

Hey daniweb, I have a small problem am looking to add a shortcut key using control key and it will act like a button but the problem is I been trying to make it so you must have the control key pressed down to keep the funcation active but it …

0
55
Member Avatar for goldfield

I am attempting to write a program that uses the files in a folder and use those files as to resort them. I am using freepascal compiler, can anyone help me?

0
74
Member Avatar for goldfield

Hello all, I am attempting to write a program that takes the filenames of a number of files in a folder and sends the filenames to a text file. I am using freepascal compiler, can anyone help me?

0
123
Member Avatar for TheBW

I have to design a relatively simple game-type programm on pascal It has to generate a way, which the player will have to guess. They way can only go horizontaly or verticaly. Im usign 10x10 array for this. The problems start, when im making the way for player and checking …

Member Avatar for TheBW
0
109
Member Avatar for TheBW

So heres my procedure: [CODE]procedure inf_output; Begin Repeat Begin Writeln('Please choose by what info you will search!'); Writeln('1. Name'); Writeln('2. Registration number'); Writeln('3. Adress: Street name'); Writeln('4. Adress: Street number'); Writeln('5. Adress: Postal index'); Writeln('6. Name of City'); Writeln('7. Telephone number'); readln(x); end; Until (x>0) and (x<7); Case x of …

Member Avatar for TheBW
0
243
Member Avatar for Elihu5991
Member Avatar for MorisK
-1
249
Member Avatar for getnit

Hi, My front end has a Tshape(Cirle) Over a Panel and I am trying to move the circle on the panel and get the X and Y values and send these values through comport for serial communication. However I am able to retrieve the values but the shape is flickering …

Member Avatar for getnit
0
934
Member Avatar for onsir

how to show data from database to treeview. example: data like this code Menuname l_evel parent M01 Maintenance 2 File M0101 Area 3 M01 M0102 Terms 3 M01 M0103 Category 3 M01 M010401 Rate Maintenance 4 M0104 M0106 Customer 3 M01 M010601 Customer Maintenance 4 M0106 please give code. thx

Member Avatar for Kazmirus
0
206
Member Avatar for celieaoi92

How can i copy fileteks A to another fileteks? fileteks A : there are N kingdom. each kingdom has a name of a string with no spaces and maximum of 8 characters. each kingdom had fought each other as much as M times. a historian has data on wars, year …

0
60
Member Avatar for utd123

using records and types Create a program that will allow a user to store a set of triangle measurements, triangle name, triangle total size and date triangle was entered. Your program will allow the user to enter the size of various triangle and measure their area. The user should also …

Member Avatar for pritaeas
0
98
Member Avatar for NotNil

I am experimenting with the use of WMI from within Delphi. Appears quite simple really however I am running into a problem where the amount of memory used by my application keeps growing. In my sample code below the SendPing() function is executed once every second by a TTimer.... each …

Member Avatar for NotNil
0
727
Member Avatar for ecklcakes

Need help with a program (console application in Lazarus) I need to load a bitmap (bmp) file in FPC and be able to directly edit the pixels (their colour). I then need to be able to save the bitmap again with the same name. Please put as many comments into …

0
91
Member Avatar for douglaspr

Good night, wondering how to get the entrypoint of an executable, and if possible the 32 bits coming after him. grateful.

Member Avatar for Duoas
0
87

The End.