1,899 Topics
![]() | |
i have a little program that searches for[URL="http://en.wikipedia.org/wiki/List_of_perfect_numbers"] perfect numbers[/URL]. now it took it 36 minutes to get to the 5th number(and last one for longint) which is 33550336. as it worked i noticed in the task manager that it only used 25% of cpu the whole time and the … | |
I searched on Google for hours and couldn't find anything useful. Thank you for any reply. | |
[IMG]http://letscoding.files.wordpress.com/2010/12/4.jpg[/IMG]Something goes wrong but I can find it!! plese help!! run program and enter from 12 or larger [CODE=c] //Tolga Kayhan © 2010 //Let'sCoding #include <stdio.h> #include <stdlib.h> //Pascal triangle in this example contains int factorial(int); int C(int,int); void space(int); void writer(int,int); int main() { int last,sender; do{ printf("Enter a … | |
Hello, am currently using overbyte sockets in delphi and am wondering what is the best way to send code commands ? am currently using in my system [code] sendstr('comand'); [/code] but am wondering if there a better way more stable and faster? thanks for the advice! | |
Hi All I've been working on a program that automates a test sequence for testing a product before it is sent to the user. The program controls 12 test stations. There is an object that controls the interactions with each station (12 instances total). One of the challenges of the … | |
(infor[1].name) how can I remove the (.) from (infor[1].name) | |
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 … | |
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 … | |
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; | |
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 … | |
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 … | |
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 … | |
Using FPS IDE with FPC compiler on windows xp. | |
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, … | |
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 … | |
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 | |
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 … | |
what are differences of subroutine of perl with PASCAL? | |
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 ? | |
// 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"); … | |
Does anyone know of a component to allow programmatically reading a PDF? | |
i want to create a based on delphi project...does anyone has something in mind but for mac?? | |
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 … | |
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 … | |
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? | |
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? | |
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 … | |
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 … | |
I've heard of these quite a bit, but am quite unsure of what they are? | |
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 … | |
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 | |
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 … | |
i've been at this problem for hours now, and so thought of asking help from people who are not such newbies to programming as i am. please help me with this: i have to print the result of a specific element in a pascal triangle, taking only rows and position … | |
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 … | |
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 … | |
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 … | |
Good night, wondering how to get the entrypoint of an executable, and if possible the 32 bits coming after him. grateful. | |
Hi, The Question I would like to ask is, where does Delphi stand in terms of application development tool. I have started my career in Delphi as a fresher and have concerns of its existence in the future. I haven't heard of many people using it and preference always goes … | |
Using TMediaPlayer to play parts of .wav files. I would like to copy parts from .wav files and append to an other .wav file. Is there a way to do this, without physically connecting the speaker output to the microphone input and add noice and loose sound quality. I would … | |
Hello, I have an application with two MediaPlayers. MediaPlayer1 I want to play a video and MediaPlayer2 I want to play a sound file. My problem is that I don't know how to control the sound volume from MediaPlayer1. How can I set sound volume to zero for MediaPlayer1? | |
hey I've got a problem how do i display the info in a cell to an edit box?(from the string grid) | |
Hey, I could have posted this in my other thread, but i though this was strange enough to make a thread of it. So im still working on the program mentioned in my other thread, it runs with a main menu procedure. When the user selects a menu option, program … | |
Hi everyone, My program is meant to be / do: A quiz about the bible ( < my teacher decided that <). Using an array of records with a text file (working) it runs the quiz and lets user print off their results at the end. each question must be … | |
Hi for all, I'm newer with Delphi can anybody help me to convert the following c++ code to delphi7 one's. many thanks in advance c++ code : ********************************* #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <ctype.h> #include <string.h> #include <errno.h> #include <sys/param.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <netdb.h> … | |
I am relatively new to delphi. what i am try to do it to open a new form from the main one as a pop-up window, let the user input certain values in there (two integers and a check box), and use these values as parameters in a procedure to … | |
So I started to work on my last Computer Science project for the school year, a maths tutorial application. I'm a bit stuck with displaying a form to explain a mathematical concept. I decided to make a dynamic form on run-time for each grade which then contains all the available … | |
Hello. I need my tag like this: [code] <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <EnviarArquivo xmlns="http:(CLIENT LINK)"> <Sistema>1</Sistema> <Chave>1</Chave> <Solicitacao>1</Solicitacao> <OK>TRUE</OK> <Observacao></Observacao> <Arquivo>1</Arquivo> </EnviarArquivo> </soap:Body> </soap:Envelope> [/code] my when the server get my request its going like this: [code] <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body … | |
Hello everyone, I'm new in the world of Delphi and Pascal, so I could use your help. Here's my first question: I use Delphi7 and I have a DBGrid that is populated with one hundred records. I run the query to refresh the content of the dbgrid after each new … | |
Hi All: We are just learning how to iterate this hash to get key and value, but we do not know how to do it please help. The unit is : [url]http://gpdelphiunits.googlecode.com/svn-history/r4/trunk/src/GpStringHash.pas[/url] We know how to use create hash and add function. After adding data to hash, if we want … | |
How can I solve this [url]http://1soft.moy.su/Untitled.png[/url] in Turbo Pascal thx :) |
The End.